Authorizing OAuth2 to Google services

You certainly have already seen websites where you can log in using your Google, Facebook, or Twitter account, instead of having to enter your information all over again. This service is most probably powered by OAuth2, which means (the second version of) the open (web) standard for authorization. It provides secured access to the server side of your application for clients that have been given an access token by a third-party OAuth2 authorization server. The credentials are guaranteed to be verified by the token and are not given to you as the website owner. The Dart team and community have provided us with some nice packages to easily implement this functionality.

How to do it...

If you want to use OAuth2 ...

Get Dart: Scalable Application Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.