oauth with facebook and google using

26
OAuth with Facebook and Google Using .NET Sathyaish Chakravarthy, Independent Consultant

Upload: others

Post on 21-Jul-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OAuth with Facebook and Google Using

OAuth with Facebook and Google Using .NET

Sathyaish Chakravarthy, Independent Consultant

Page 2: OAuth with Facebook and Google Using
Page 3: OAuth with Facebook and Google Using
Page 4: OAuth with Facebook and Google Using
Page 5: OAuth with Facebook and Google Using

You

Contacts

Gmail

Resource Owner

Resource Server

Client

Page 6: OAuth with Facebook and Google Using
Page 7: OAuth with Facebook and Google Using
Page 8: OAuth with Facebook and Google Using
Page 9: OAuth with Facebook and Google Using
Page 10: OAuth with Facebook and Google Using
Page 11: OAuth with Facebook and Google Using

OAuth allows you to give a third-party application the

permission to use some of your resources on a resource

server without giving the third party your user name

and password on the resource server.

“”

Page 12: OAuth with Facebook and Google Using
Page 13: OAuth with Facebook and Google Using
Page 14: OAuth with Facebook and Google Using

REGISTERING CLIENTS

Page 15: OAuth with Facebook and Google Using

console.developers.google.com

developers.facebook.com

Page 16: OAuth with Facebook and Google Using

ROLES & FLOWS

Page 17: OAuth with Facebook and Google Using

Implicit

Flow

Authorization

Code

Flow

Resource Server

Client Credentials

Flow

Resource Owner

Password Credentials

Flow

Page 18: OAuth with Facebook and Google Using

DEMO: GOOGLE OAUTH CLIENT (AUTHORIZATION CODE FLOW)

Page 19: OAuth with Facebook and Google Using

DEMO: FACEBOOK OAUTH CLIENT (AUTHORIZATION CODE FLOW)

Page 20: OAuth with Facebook and Google Using

Summary: What’s in it for me?

Page 21: OAuth with Facebook and Google Using

Summary: What’s in it for me?

User

Client

Page 22: OAuth with Facebook and Google Using

Summary: What’s in it for me?

Page 23: OAuth with Facebook and Google Using

Limitations of OAuth 2.0

• No discovery

• Requires HTTPS

• Open redirectors – RFC 6819 – OAuth 2.0 Thread Model and Security Considerations

• Implementations differ widely

Page 24: OAuth with Facebook and Google Using

Further Reading

• RFC 6749 – The OAuth 2.0 Authorization Frameworkhttp://tools.ietf.org/html/rfc6749

• Documentation of the OAuth server

Page 25: OAuth with Facebook and Google Using
Page 26: OAuth with Facebook and Google Using