Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 375
    • Issues 375
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Merge requests
  • !1127

See #1108: support using OAuth instead of JWT in front when logging in to a different domain

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Agate requested to merge 1108-oauth into develop May 18, 2020
  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 10

See #1108 (closed)

When trying to login with the SPA on a different domain (typically happens in development when pointing the frontend to a different domain), use Oauth instead of JWT:

  • Create an OAuth app and redirect user to authorization screen on the api domain
  • Handle redirection and store oauth app/credentials
  • Use oauth Bearer token instead of JWT for authentication when doing ajax requests
  • Refresh oauth token transparently when it is expired, via axios-auth-refresh
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 1108-oauth