I read the Google Oauth2
documentation and it seems that I can send a login_hint
parameter as part of the authorization request, similar to specifying access_type
.
I am using an offline access_type
for a web server application (Rails application).
I tried setting the parameter on the Client's authorization object as well as passing it as an option when initializing the client but it never auto-fills the login box nor is sent as a query parameter.
All I'm trying to do is, if the user is logged in to Gmail already with a different account then they should be prompted to login / select a different account (which is specified in the login_hint).