Reputation: 119
My company is a Google Apps for Education customer and we provide our students the ability to log into their Google Apps accounts using their existing credentials. This is accomplished via SAML SSO to an endpoint which authenticates their existing application credentials. We're able to provide the users links to GMail, Docs and Calendar using the following URL syntax, per the google support documentation (under 'How does enabling SSO affect how users sign in?'):
https://<service>.google.com/a/<your_domain>.com
We're in the process of rolling out Google+ to our users and we haven't been able to find a way to link to Google+ that allows us to specify the domain to use for authentication. Without being able to do so, the user is prompted with the standard Google login page instead of our SAML SSO login page.
Using 'mail', 'docs' (or 'drive'), and 'calendar' as the <service>
parameter in the above URL allows us to send to the user to the SAML SSO login page, but when we try to put 'plus' in as the <service>
parameter, we get a 404 error.
Does anyone know if this is supported functionality for Google Apps customers using Google+? If so, what's the URL format to force a domain-specific login page?
Upvotes: 0
Views: 2465
Reputation: 31
It took me a long time to figure this out, but here's how I solved it:
I found that if :
oauth
call myself, and login_hint
parameter where the value was an email address that would usually see my SAML screen.I found this parameter mentioned here.
Even though that document recommends that you use google+ for login, I couldn't find a way to pass a login_hint
to the google+ login button.
I tried for awhile to get the button to use that parameter, but then gave up and used gapi.auth.authorize
. There I passed in the login_hint
parameter, but only for the case where I want the SAML screen to show.
I found documentation for this here.
Unfortunately, as the documentation mentions, you won't be able to use some of the g+ features (like over-the-air installs) using this method.
In general:
I don't think it's currently supported by the google+ login button.
Upvotes: 2