Fixing an issue with OIDC URL for preauth.

This commit is contained in:
mike12345567 2021-08-05 14:36:10 +01:00
parent 42c577ca26
commit 105dfb5eb9
2 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,7 @@
import OktaLogo from "assets/okta-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"
$: show = $organisation.oidc
@ -31,7 +31,10 @@
{#if show}
<ActionButton
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">
<img {src} alt="oidc icon" />

View File

@ -30,7 +30,9 @@ function buildResetUpdateValidation() {
}
function updateTenant(ctx, next) {
if (ctx.params) {
updateTenantId(ctx.params.tenantId)
}
return next()
}