The OpenID(+OAuth) makes it possible to offer the login only for one
Apps domain, and I would like that to also be possible for the OAuth2 flow.
Hopes this clears it up.
Wouter
--
Ok, so when going through the code I at some point used for an OpenID+OAuth implementation I figured "why not" and simply tried to add the hd (hosted domain) parameter to the query string params given to the redirect page for the dialog and voila - the interface changed itself to only allowing login to one single Google Apps domain. Full example:https://accounts.google.com/o/oauth2/auth?hd=example.com&client_id=<client_id>&redirect_uri=http://www.example.com/oauth2callback&scope=<scopes>&response_type=code
Would anybody be able to answer if this is an undocumented feature that's here to stay?(ps. My consideration for wanting to use OAuth2 over OpenID+OAuth is simple: much less code)