mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-20 11:56:38 +00:00
successful log in loop poc
This commit is contained in:
@@ -91,7 +91,8 @@ const configSchema = z.object({
|
||||
credentials: z.boolean().optional()
|
||||
})
|
||||
.optional(),
|
||||
trust_proxy: z.boolean().optional().default(true)
|
||||
trust_proxy: z.boolean().optional().default(true),
|
||||
secret: z.string()
|
||||
}),
|
||||
traefik: z.object({
|
||||
http_entrypoint: z.string(),
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import config from "@server/lib/config";
|
||||
|
||||
export function generateOidcRedirectUrl(orgId: string, idpId: number) {
|
||||
export function generateOidcRedirectUrl(idpId: number) {
|
||||
const dashboardUrl = config.getRawConfig().app.dashboard_url;
|
||||
const redirectPath = `/auth/org/${orgId}/idp/${idpId}/oidc/callback`;
|
||||
const redirectPath = `/auth/idp/${idpId}/oidc/callback`;
|
||||
const redirectUrl = new URL(redirectPath, dashboardUrl).toString();
|
||||
return redirectUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user