-
Notifications
You must be signed in to change notification settings - Fork 2
fix(auth): point OIDC issuer at auth.berget.ai after Keycloak cutover #89
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,19 +20,19 @@ export function getAuthConfig(options?: { local?: boolean; stage?: boolean }): A | |
| apiBaseUrl = process.env.BERGET_API_URL; | ||
| // Infer keycloak from API URL for custom endpoints | ||
| if (apiBaseUrl.includes('localhost') || apiBaseUrl.includes('stage.')) { | ||
| keycloakUrl = 'https://keycloak.stage.berget.ai'; | ||
| keycloakUrl = 'https://auth.stage.berget.ai'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ good — Verified live: https://auth.stage.berget.ai/realms/berget serves OIDC discovery for realm 'berget'. |
||
| } else { | ||
| keycloakUrl = 'https://keycloak.berget.ai'; | ||
| keycloakUrl = 'https://auth.berget.ai'; | ||
| } | ||
| } else if (options?.local) { | ||
| apiBaseUrl = 'http://localhost:3000'; | ||
| keycloakUrl = 'https://keycloak.stage.berget.ai'; | ||
| keycloakUrl = 'https://auth.stage.berget.ai'; | ||
| } else if (options?.stage) { | ||
| apiBaseUrl = 'https://api.stage.berget.ai'; | ||
| keycloakUrl = 'https://keycloak.stage.berget.ai'; | ||
| keycloakUrl = 'https://auth.stage.berget.ai'; | ||
| } else { | ||
| apiBaseUrl = 'https://api.berget.ai'; | ||
| keycloakUrl = 'https://keycloak.berget.ai'; | ||
| keycloakUrl = 'https://auth.berget.ai'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ good — Verified live: https://auth.berget.ai/realms/berget serves OIDC discovery with issuer matching this URL. |
||
| } | ||
|
|
||
| return { | ||
|
|
||
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.
✅ good — All config branches (default, stage, local, env-override) covered with the new hostname.