ios-oss icon indicating copy to clipboard operation
ios-oss copied to clipboard

MBL-1159: Exchange temporary token for OAuth token and login

Open amy-at-kickstarter opened this issue 1 year ago • 1 comments

📲 What

This implements the MVP of login with OAuth.

It works like this:

  1. Open a web authentication session
  2. If it completes successful, the website redirects to a URL which includes a tempoary authorization code
  3. We exchange that code and a secret for the real OAuth token
  4. We use that OAuth token to fetch the user's information
  5. ...and then save that to the app environment login.

🤔 Why

We are porting the app to use OAuth via a web authentication session to improve security.

👀 See

This snazzy demo!

https://github.com/kickstarter/ios-oss/assets/146007185/19803d96-04c0-4e1c-b596-c9527bc63d8e

amy-at-kickstarter avatar Feb 20 '24 16:02 amy-at-kickstarter

Converting to draft while I write some tests.

amy-at-kickstarter avatar Feb 20 '24 17:02 amy-at-kickstarter