Compare commits

...

1 Commits

Author SHA1 Message Date
Ruben Fiszel
410ae74b6d fix: support Okta custom authorization servers in SSO configuration
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:00:12 +00:00

View File

@@ -18,17 +18,20 @@
function changeDomain(domain, custom) {
if (value) {
let baseUrl = custom ? `https://${domain}` : `https://${domain}.okta.com`
// If baseUrl already contains /oauth2/ (custom authorization server),
// only append /v1/... to avoid duplicating the /oauth2 segment
let authBase = baseUrl.includes('/oauth2/') ? baseUrl : `${baseUrl}/oauth2`
value = {
...value,
login_config: {
auth_url: `${baseUrl}/oauth2/v1/authorize`,
token_url: `${baseUrl}/oauth2/v1/token`,
userinfo_url: `${baseUrl}/oauth2/v1/userinfo`,
auth_url: `${authBase}/v1/authorize`,
token_url: `${authBase}/v1/token`,
userinfo_url: `${authBase}/v1/userinfo`,
scopes: ['openid', 'profile', 'email']
},
connect_config: {
auth_url: `${baseUrl}/oauth2/v1/authorize`,
token_url: `${baseUrl}/oauth2/v1/token`,
auth_url: `${authBase}/v1/authorize`,
token_url: `${authBase}/v1/token`,
scopes: ['openid', 'profile', 'email']
}
}
@@ -77,7 +80,7 @@
<div class="grow flex flex-col gap-1">
<input type="text" placeholder="yourorg" bind:value={value['domain']} />
<span class="text-hint font-normal text-2xs"
>{#if value['custom']}Custom ({'https://<domain>'}){:else}
>{#if value['custom']}Custom ({'https://<domain>'} or {'https://<domain>/oauth2/<authServerId>'}){:else}
Org ({'https://<your org>.okta.com'}){/if}</span
>
</div>