Google+ Login - A Primer
-
Upload
tom-opgenorth -
Category
Technology
-
view
32 -
download
1
Transcript of Google+ Login - A Primer
▸ Lecture will begin shortly
Google+ Login - A Primer
❖ Overview ❖ How Does OAuth 2.0 Work? ❖ Setting up Project ❖ Google Play Services
Topics
Overview❖ Sharing passwords ❖ No cross-federated authentication ❖ Everybody had their own username/
password
❖ 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
User Login & Consent
Request Token
Mobile App
Authorization Code
Call Google API with Token
Access TokenRefresh Token
Exchange Code for Token
Google has their own OAuth 2Using Google Play Services
❖ 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?
Creating an API Projecthttps://console.developers.google.com/project
SHA1 Fingerprint
Create a Google API Project
Enable the Google+ API
Create Client ID
Now For the CodeAdding Google+ Authentication to a Xamarin.Android App.
① 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
Show Me The Code!
❖ Source Codehttps://github.com/topgenorth/gplus-quickstart-xamarin.android
❖ Google Developer Consolehttps://console.developers.google.com/
❖ Start integrating Google+ into your Android app https://developers.google.com/+/mobile/android/getting-started
❖ Google+ Sign-in for Android https://developers.google.com/+/mobile/android/sign-in
❖ Google+ Platform Developer Policies https://developers.google.com/+/policies
References
❖ OAuth2 Crash Course ❖ Creating the Google API Project ❖ Examined Working Code
Summary