Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you use OAuth2 in dart 1.0?

I would like to use what looks like the official library for OAuth2 in Dart. However there doesn't seem to be any complete examples nor documentation beyond the actual comments (and incomplete example) in the oauth2.dart source file. Any kind of normal markdown docs seen with github back modules seem to be missing. Also nothing is showing up in the API reference.

Wanted to add oauth2 to a polymer app but appears from what I can see that the library only supports server side. Is this accurate?

Am I looking in the wrong place for the information?

like image 648
Delaney Avatar asked Oct 20 '22 18:10

Delaney


2 Answers

I found this open issue Sample for OAuth2 login

like image 189
Günter Zöchbauer Avatar answered Oct 27 '22 11:10

Günter Zöchbauer


For more information on using he Google APIs and the different options for OAuth2 take a look at the following packages:

  • https://pub.dartlang.org/packages/googleapis_auth
  • https://pub.dartlang.org/packages/googleapis
  • https://pub.dartlang.org/packages/googleapis_beta

See http://news.dartlang.org/2014/09/new-google-apis-client-libraries-for.html for the announcement of these packages.

There is also additional documentation here: https://www.dartlang.org/googleapis/.

like image 36
sgjesse Avatar answered Oct 27 '22 11:10

sgjesse