Google Apps for Work Custom URL - google-apps

Using Google Apps for Work, there is a possibility to define custom URLs for Google Services (such as GMail, Google Calendar, ...), e.g. calendar.mydomain.com. These URLs redirect you to the respective Google Service and its usual domain URL, in this case https://www.google.com/calendar/b/2/render.
I was just curious whether there was a scenario, in which opening calendar.mydomain.com would not resolve in a redirect to http://www.google.com/calendar/hosted/mydomain.com". As a result you would still see the calendar.mydomain.com instead of the google calendar URL in your browser address bar. The common case seems to be, that invoking calendar.mydomain.com results in a 302 HTTP status code and you get redirected to the Google service.

This is the expected and supported behavior provided by Google as detailed here. I don't believe it'll be possible to prevent the redirection as you've detailed it.

Related

Actions on Google Smart Home

i wrote a smart home skill for Alexa, which interacts with a bunch of REST apis i created. It integrated with my OAUTH2 server, all good.
I've tried reading the limited Actions on Google documentation, and looked at the example Node app on github, and i'm stumped.
The action.json seems to take a single URL - i'm unclear on what that should be, the example takes the easy route of passing a single url, then deciding on sync/execute etc as url param in the index.js, which I don't want to do.
Can someone please explain how this works for them? I see a bunch of other people struggling on here, so i take some comfort that i may be thick, but i'm not alone!
Since you developed an Alexa smart home skill, you should know the skill adapter hosted as a Lambda function.
The example Node.js program works just like the skill adapter.
When Google Home invokes your smart home app, it sends the request to the url in the action.json. You can use the example Node.js app for this url, then write your function to handle sync/execute requests. This part should be very similar to the REST APIs you created for Alexa.

Domain variants http https and Google Webmaster Tools

Hopefully a quick question.
I've just set up and launched a site and with Google's webmaster tools search console thing, I go to add my site which is great.
But I've been looking around to try and find what site URLs I should add. Here, google have a page regarding this:
https://support.google.com/webmasters/answer/34592?hl=en
On there it lists add the http and https sites separately.
I've set the config to redirect all requests to http, http + www and https to go to https://www.sitename if that makes sense.
The question is that in this case, should I add all 4 variants to google's webmaster tools or just the one that I'm using(https://www. version)?
You can add all versions, but that is not necessarily.
Also, you can set up preferred domain for google: https://support.google.com/webmasters/answer/44231
Actually, the best idea is to enter ALL your domain variants, including https variants if you use SSL for this reason: if you get penalties against a variant of your domain and you haven't registered it you will not see the warning messages in Google Search Console (Google Webmaster Tools) and never know what is killing your traffic.

Static Web site served from Google Cloud storage in Google Apps Domain

It seems like this would be really, really easy - but I can't get it to work. All I need to do is to be able to serve files from Google cloud storage while restricting access to my google apps domain. I easily did this before using Google App engine simply by choosing that I wanted to limit access to my domain and setting the app.yaml appropriately. I can't find anything that tells me what I might be missing - I've tried using gsutil to set the ACL to restrict to my domain, which processes successfully through the command line, but then when I try to look at the bucket or object permissions through the cloud web console, I get "unexpected ACL entity type: domain".
I'm trying to access using storage.googleapis.com/bucket/object (of course with my bucket and object name) and I always get a 403 error even though I'm definitely logged in to gmail, and as the administrator of the domain, it seems like it should work because even if the ACL's were otherwise wrong (and I've tried it both with and without the domain restriction), and that it would work for me at least. The only way I can serve content using the above url is if I make it public - which obviously is NOT what I want to do.
I'm sure I'm missing something completely stupid, or some fundamental principles about how this should work - can anyone give me any ideas?
I'm not 100% sure what your use case is, but I'm guessing that your users are attempting to access the objects directly from a web browser. storage.cloud.google.com accepts Google authorization cookies, which means that if a user is logged in to an appropriate Google account, they can access resources restricted to certain users, groups, or domains. However, the other endpoints do not accept cookies as authorization, and so this use case won't work.
These users have permission to access objects using storage.googleapis.com, but doing so requires explicitly authorizing requests.
In othe words, a simple <img src="http://storage.cloud.google.com/bucket/object" /> link will work fine for signed-in users, but using storage.googleapis.com requires explicitly authorizing requests with via OAuth 2.

How can pass the user name / password to iOS external browser for authentication?

Greeting everyone, may I ask your help for following question?
I'm using following code to call external browser in my current iPhone apps:
[[UIApplication sharedApplication] openURL:urls];
urls = "http://myhost.net/home.aspx"
Assume user is already logged in to the apps,
I can to pass the user name password to "home.aspx" if security is not a concern...
e.g. urls = "http://myhost.net/home.aspx?username=xxx&password=123456"
Question 1: Can I pass some information to home.aspx by "post" instead of "get" method?
Question 2
If above solution is not possible, I would like to set basic authentication in IIS 7.
When the external browser called by apps, can users access to "home.aspx" without 2nd login? (e.g. use code to bypass it)
For Q2, here is my current situation for your reference:
1) I have video steaming service provided by Windows IIS, when user type the URL from browser, the login form will prompt. a. e.g. xxxx/video.htm b. The IIS is configured with SSL and basic authentication
2) After user login succeed, the video should be properly displayed in the HTML 5 page.
3) We have the iPad/iPhone apps will open the external browser (i.e. Safari) to see the video page, but I don't know how can by pass the authentication (i.e. user should not see login form) if user already logged in the app within 15 mins.
Many thanks for your attention.
Re: August
About question 2, "[[UIApplication sharedApplication] openURL:urls];"
In theory you can do it for non-video streaming hyperlinks, but there are no solution or workaround for video streaming in similar passthough scenario.
Please also see:
Stream MP4 Video From Seek Position in ASP.NET
Both handler or REST web service require header handling but that might be product limitation because no existing APIs work for it.
Hope this helps.
As far as your question is concern, you can only pass variables to a web url if and only if you a Web Service like REST or SOAP installed on your local or remote server. You can search for Web Service API's for ASP.net that suits your need. From there, you can authenticate any variables by setting the response in every request. You can start with this.
On the other end (in the iphone), you can't just use your code above to send request, this can be done using the native iOS url connection but I do recommend to use libraries like RESTKit or probably ASIHTTPRequest. Both handle requests like get, post, delete and update.

Meta field for Domain Url? Or is it possible to change the index of google?

So I did the misstake of using a temporary url a while ago when launching my web site and called it http://web.mysite.com
Now when google indexes it, even that the web. is not the primary url anymore it still uses that over the http://www.mysite.com
Is there any way I can change this? Unfortunately I cant remove the web.mysite.dom binding from IIS since all Google links refer to that and I cannot use wildcard binding on the actual server.
I have google analytics enabled with the correct url (www.mysite.com).
Is there a way to enter some kind of meta data that enforces the robots to see the address as www.mysite.com?
Thanks
Did resolve by creating the web.mysite.com and put a permanent redirect www.mysite.com (301). Also used google webmaster tools to ensure this was correctly done.