google+ login - a primerxamarinuniversity.blob.core.windows.net/guestlectures/go... · 2015. 2....

Post on 15-Sep-2020

0 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

▸ Lecture will begin shortly

Google+ Login - A Primer

❖ Overview ❖ How Does OAuth 2.0 Work? ❖ Setting up Project ❖ Google Play Services

Topics

Some  Image  Related  to  the  Technology  Goes  Here

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.

❖ Release 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

❖ Authentication is a Hard Thing ❖ Nobody wants to create “Yet Another

Login” ❖ Hides a lot of the OAuth 2.0 details ❖ Provides a standard, native experience

❖ In other words, we’re lazy…

Why Use Google+ Login?

Creating a Google API https://console.developers.google.com/project

SHA1 Fingerprint

Create a Google API Project

Enable Google + APIs

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 ⑤ Make API calls

Checklist

Show Me The Code!

Summary

top related