testing oidc callback

This commit is contained in:
miloschwartz 2025-04-12 15:39:15 -04:00
parent 9cb215295a
commit 480a5f648d
No known key found for this signature in database
15 changed files with 997 additions and 7 deletions

View file

@ -0,0 +1,8 @@
import config from "@server/lib/config";
export function generateOidcRedirectUrl(orgId: string, idpId: number) {
const dashboardUrl = config.getRawConfig().app.dashboard_url;
const redirectPath = `/auth/org/${orgId}/idp/${idpId}/oidc/callback`;
const redirectUrl = new URL(redirectPath, dashboardUrl).toString();
return redirectUrl;
}