Fixing an issue with OIDC URL for preauth.
This commit is contained in:
parent
f93650efbc
commit
be73ff2c32
|
@ -6,7 +6,7 @@
|
||||||
import OktaLogo from "assets/okta-logo.png"
|
import OktaLogo from "assets/okta-logo.png"
|
||||||
import OneLoginLogo from "assets/onelogin-logo.png"
|
import OneLoginLogo from "assets/onelogin-logo.png"
|
||||||
|
|
||||||
import { oidc, organisation } from "stores/portal"
|
import { oidc, organisation, auth } from "stores/portal"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
$: show = $organisation.oidc
|
$: show = $organisation.oidc
|
||||||
|
@ -31,7 +31,10 @@
|
||||||
{#if show}
|
{#if show}
|
||||||
<ActionButton
|
<ActionButton
|
||||||
on:click={() =>
|
on:click={() =>
|
||||||
window.open(`/api/global/auth/oidc/configs/${$oidc.uuid}`, "_blank")}
|
window.open(
|
||||||
|
`/api/global/auth/${$auth.tenantId}/oidc/configs/${$oidc.uuid}`,
|
||||||
|
"_blank"
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<img {src} alt="oidc icon" />
|
<img {src} alt="oidc icon" />
|
||||||
|
|
|
@ -30,7 +30,9 @@ function buildResetUpdateValidation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTenant(ctx, next) {
|
function updateTenant(ctx, next) {
|
||||||
updateTenantId(ctx.params.tenantId)
|
if (ctx.params) {
|
||||||
|
updateTenantId(ctx.params.tenantId)
|
||||||
|
}
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue