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

expose Token on server #57

Open
Andersmholmgren opened this issue Jul 5, 2014 · 3 comments
Open

expose Token on server #57

Andersmholmgren opened this issue Jul 5, 2014 · 3 comments

Comments

@Andersmholmgren
Copy link

I want to login to google on the client then send the token to my server and validate it there. i.e. I'm supporting logging into my app with a google account but no immediate plans to access google services on the server beyond validating the token.

Currently the Token class is in the browser part of the api which has a dependency on dart:html.

I don't see any obvious dependencies that the Token class has on dart:html

@Andersmholmgren
Copy link
Author

OK I was wrong it is clearly tied to the client. I assumed wrongly that it was using dart:http to contact the google server for the token validation.

I was going to submit a PR for this change but as there are no tests and I can't open it in the Dart Editor without it going into a spin running pub get over and over, I'll hack my own thing in my own project.

It doesn't look like this project has received any love for a while. Is it still the best api to use for authenticating to google?

@adam-singer
Copy link
Member

@Andersmholmgren it could use some love and PR are always welcome.

@GeReinhart
Copy link

I have followed the https://github.com/dart-gde/dart-google-oauth2-library documentation to get an oAuth2 token on client side.

I would like to use this token to validate the authentication of the user on server side. I guess that the validation should involved the secret String provided by the OAuth2 Autority.

How can i do that?

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

3 participants