Fixing an issue with OIDC URL for preauth.

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

View File

@ -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" />

View File

@ -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()
} }