6. ❖ Provides authentication flows for web,
desktop, and mobile.
❖ User authentication is delegate to an
HTTP services such as Google.
❖ Relies on informed user consent and
tokens
OAuth 2.0 to the Rescue
7. User
Login
&
Consent
Request
Token
Mobile
App
Authorization
Code
Call
Google
API
with
Token
Access
Token
Refresh
Token
Exchange
Code
for
Token
9. ❖ Nobody wants to create “Yet Another
Login”
❖ Hides a lot of the OAuth 2.0 details
❖ Provides a standard, native experience
❖ Authentication is a Hard Thing
❖ In other words, we’re lazy…
Why Use Google+ Login?
10. Creating an API Project
https://console.developers.google.com/project
15. Now For the Code
Adding Google+ Authentication to a Xamarin.Android App.
16. ① Add Google Play Services to the Android Project
② Update Android Permissions
③ Add Google+ Sign-in Button to UI
④ Initialize a GoogleApiClient
⑤ Respond to callbacks from the GoogleApiClient
Checklist