Skip to content

chore: Add additional path to auth-v1-open-callback#5089

Open
barrownicholas wants to merge 1 commit intosupabase:developfrom
barrownicholas:develop
Open

chore: Add additional path to auth-v1-open-callback#5089
barrownicholas wants to merge 1 commit intosupabase:developfrom
barrownicholas:develop

Conversation

@barrownicholas
Copy link
Copy Markdown

@barrownicholas barrownicholas commented Apr 16, 2026

What kind of change does this PR introduce?

What is the current behavior?

In the new custom OIDC/OAuth provider, it hard-codes the redirect URI to {{KONG-GATEWAY}} /callback. Since Auth/GoTrue can be self-hosted, and not necessarily behind Kong, at /auth/v1, it seems like the callback cannot be modified in Auth/GoTrue (instead, in Kong, (see supabase/auth#2477 (comment))).

What is the new behavior?

The new behavior properly proxies /callback and /auth/v1/callback to GoTrue.

Additional context

See the issue linked above (supabase/auth#2477)

Basically, the below line of code cannot change:

https://github.com/supabase/auth/blob/2d8f2b6168cfc753f55c7bd157bfda6ef05af007/internal/api/external.go#L682

Instead, Kong needs to properly proxy /callback in the same way that it ports /auth/v1/callback

@barrownicholas
Copy link
Copy Markdown
Author

@avallete @sweatybridge could you check this out when you have a second? Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant