Hello, The hd query parameter is useful if you want to limit access to your application for specific domains. You can ignore this query parameter if you want your application to be available for every type of accounts. In this case, if a user is logged into multiple accounts (his domain account and some gmail accounts), the user will first be prompted to choose the account from which to grant access.
You can test this behavior with OAuth Playground<http://googlecodesamples.com/oauth_playground/index.php> : - First log into multiple Google accounts. - Choose some scopes (Contacts for example). - Click the "Request token", "Authorize" and "Access token" buttons in that order. You will be able to see how this application request access to your data according to the selected scopes. Best, Alain On Tue, Jul 12, 2011 at 4:55 PM, Miturbe <[email protected]> wrote: > Hello, > In the past, Google Apps accounts and Gmail.com accounts were seperate > things... now they are all considered "Google Accounts" and this has caused > some problems in my appplications. > > I have an app where a user logs in and/or registers using the OneID API and > can later grant access to their contacts. > > I am using Oauth to request access to their contacts, when the user wants > to grant access to a Google Apps account, I have no problems. I just set the > parameter HD=Somedomain.com > > BUT if the user logs in/signsup with their Google Apps account and then > clicks on "Get contacts from GMAIL", the parameter is hd=default. However > they are still requested to authorize access to their Google Apps account. > > Is there no way to FORCE them to log in into a Gmail.com account? > > I am able to force them to log into another Google Apps account using the > HD parameter, but can't figure out a way for gmail.com accounts. > > Thanks for your feedback. > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://code.google.com/apis/contacts/community/forum.html > -- Alain Vongsouvanh -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
