17

CIS 2015 OpenID Connect and Mobile Applications - David Chase

Embed Size (px)

Citation preview

Page 1: CIS 2015 OpenID Connect and Mobile Applications - David Chase
Page 2: CIS 2015 OpenID Connect and Mobile Applications - David Chase

OpenID Connect and Mobile Applications David Chase

Page 3: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Implicit

•  When using the Implicit Flow, all tokens are returned from the Authorization Endpoint; the Token Endpoint is not used.

•  The Access Token and ID Token are returned directly to the Client

•  The Authorization Server does not perform Client Authentication.

Copyright © 2015 Cloud Identity Summit. All rights reserved. 3

Page 4: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Implicit Flow

1.  Client prepares an Authentication Request containing the desired request parameters.

2.  Client sends the request to the Authorization Server. 3.  Authorization Server Authenticates the End-User.

Copyright © 2015 Cloud Identity Summit. All rights reserved. 4

Page 5: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Implicit Flow Continued

4.  Authorization Server obtains End-User Consent/Authorization.

5.  Authorization Server sends the End-User back to the Client with an ID Token and, if requested, an Access Token.

6.  Client validates the ID token and retrieves the End-User's Subject Identifier.

Copyright © 2015 Cloud Identity Summit. All rights reserved. 5

Page 6: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Prepare Authentication Request

•  http://openid.net/specs/openid-connect-implicit-1_0.html#AuthenticationRequest

Copyright © 2015 Cloud Identity Summit. All rights reserved. 6

Page 7: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Preferences

•  System Browser •  Pros

•  May have session •  HTTPS is visible

•  Con •  Poor UX

Copyright © 2015 Cloud Identity Summit. All rights reserved. 7

Page 8: CIS 2015 OpenID Connect and Mobile Applications - David Chase

AuthN & AuthZ

Copyright © 2015 Cloud Identity Summit. All rights reserved. 8

Page 9: CIS 2015 OpenID Connect and Mobile Applications - David Chase

End User grants authZ

•  http://openid.net/specs/openid-connect-implicit-1_0.html#ImplicitOK

Copyright © 2015 Cloud Identity Summit. All rights reserved. 9

Page 10: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Fragment handling

•  http://openid.net/specs/openid-connect-implicit-1_0.html#ImplicitCallback

Copyright © 2015 Cloud Identity Summit. All rights reserved. 10

Page 11: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Validate the ID_token

•  http://openid.net/specs/openid-connect-implicit-1_0.html#IDTokenValidation

Copyright © 2015 Cloud Identity Summit. All rights reserved. 11

Page 12: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Access Token Validation

•  http://openid.net/specs/openid-connect-implicit-1_0.html#AccessTokenValidation

Copyright © 2015 Cloud Identity Summit. All rights reserved. 12

Page 13: CIS 2015 OpenID Connect and Mobile Applications - David Chase

UserInfo Request

•  http://openid.net/specs/openid-connect-implicit-1_0.html#UserInfoRequest

Copyright © 2015 Cloud Identity Summit. All rights reserved. 13

Page 14: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Standard Claims

•  http://openid.net/specs/openid-connect-implicit-1_0.html#StandardClaims

Copyright © 2015 Cloud Identity Summit. All rights reserved. 14

Page 15: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Authorization Code

•  NO NO NO NO! •  Well… sorta

Copyright © 2015 Cloud Identity Summit. All rights reserved. 15

Page 16: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Hybrid Flow

•  When using the Hybrid Flow, some tokens are returned from the Authorization Endpoint and others are returned from the Token Endpoint.

•  An example use case is a native application which passes tokens to backend APIs.

Copyright © 2015 Cloud Identity Summit. All rights reserved. 16

Page 17: CIS 2015 OpenID Connect and Mobile Applications - David Chase

Copyright © 2015 Cloud Identity Summit. All rights reserved. 17

Questions?