- 
                Notifications
    
You must be signed in to change notification settings  - Fork 307
 
feat: add configurable JWT issuer for local auth development #4388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| 
           This will be also configurable via   | 
    
| 
           Yes, similar to any other auth env variables, this will be also parsed by auth server 👍  | 
    
          Pull Request Test Coverage Report for Build 19035477504Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes. 
 Details
 
 
 💛 - Coveralls | 
    
| "GOTRUE_MAILER_URLPATHS_INVITE=" + utils.GetApiUrl("/auth/v1/verify"), | ||
| "GOTRUE_MAILER_URLPATHS_CONFIRMATION=" + utils.GetApiUrl("/auth/v1/verify"), | ||
| "GOTRUE_MAILER_URLPATHS_RECOVERY=" + utils.GetApiUrl("/auth/v1/verify"), | ||
| "GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE=" + utils.GetApiUrl("/auth/v1/verify"), | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update these as well? Basically to use Config.Auth.JwtIssuer as the base url for every auth callback that user expects to load from their browser.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, not sure. Do we have the ability to set an external for all components i.e a base url instead of 127.0.0.1for studio, api etc?
Summary
jwt_issuerfield to auth configuration in config.tomlMotivation
When developing OAuth integrations, the auth server OAuth discovery endpoint
/.well-known/oauth-authorization-serverreturns URLs referencinglocalhost, which are inaccessible to third-party services trying to integrate with the local instance.This change allows developers to configure the issuer url for the auth server, making it possible to test third-party OAuth integrations locally without deploying to a remote environment.
Relevant: https://github.com/orgs/supabase/discussions/38022#discussioncomment-14815820