Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Cross-client Identity #64

Open
AlanVerbner opened this issue Jan 9, 2015 · 0 comments
Open

Google Cross-client Identity #64

AlanVerbner opened this issue Jan 9, 2015 · 0 comments

Comments

@AlanVerbner
Copy link

Hello! First of all, thanks for a great lib! :)

We are trying to implement Cross-client Identity so we can use the same client_id in web and android apps. To do so, we need to send a special scope while doing login.

Normally, when you ask for an OAuth token, the person using the device sees a challenge, asking them if it’s OK to use their identity to get at some resource or other. But in this case, the system looks at the server-side Client ID in your scope argument, notices that it’s in the same project as your Android app, and gives you the token without pestering the user; they’ve already agreed to a relationship with you, the developer who controls that project. " Source

That being said, we need to send audience:server:client_id:X, where X is the Client ID of for the Web app.

As far as we could see, we cannot change the scope it's used while getting token

token = GoogleAuthUtil.getToken(params[0],
Plus.AccountApi.getAccountName(googleApiClient), scope);

Are you planning to add a way to do so? Do you want us to do a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant