Skip to content

Implement authorization via Discord #99

Description

@vm2052

We're introducing the opportunity to login via Discord (other platforms come later)

  1. Create a button to login via Discord on the Sign-in page
  2. Call GET /auth/discord endpoint by clicking the button
  3. Handle the callback from discord /auth/discord/callback and capture code from the URL (like /auth/discord/callback?code=abc123)
  4. Call the existing POST /users/login endpoint by changing the headers to either X-Firebase-Token ( if calling from the normal firebase sign-in) or X-Discord-Code (if doing it via the discord log-in flow)

The API can be found at https://catbytes-community.github.io/webplatform-backend/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions