Skip to content

Implement OAuth2 Flow for signing in #5

@alexanderson1993

Description

@alexanderson1993

There should be at least two flows supported:

  • OAuth for native apps for when the user is signing in directly from the Thorium Nova app. This is doable because we can implement an app URL scheme and use that as the redirect URL for the app in question.
  • OAuth for devices for when the user is signing in with a browser connected to a separate server. We can't use a regular browser or SPA flow because there is no way for us to know what the redirect URL should be, and dynamic redirect URLs are a security risk.

Tasks for Native Apps

  • Implement a URL schema for the app
  • Implement authorization API
  • Implement auth page.
  • Implement access token API.

Tasks for Devices

  • Device Code Request
  • Webpage to enter the device code
  • Client polling of authorization server
  • Rate limiting for the auth server

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

🛠 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions