* feat: oidc feat: organization switcher refactor: org context feat: invitations GLM * feat: link current account * refactor: own page for sso registration * feat: per-user account management * refactor: code style * refactor: user existing check * refactor: restrict provider configuration to super admins only * refactor: cleanup / pr review * chore: fix lint issues * chore: pr feedbacks * test(e2e): automated tests for OIDC * fix: check url first for sso provider identification * fix: prevent oidc provider to be named "credential"
9 lines
321 B
TypeScript
9 lines
321 B
TypeScript
const RESERVED_SSO_PROVIDER_IDS = new Set(["credential"]);
|
|
|
|
export function normalizeSsoProviderId(providerId: string): string {
|
|
return providerId.trim().toLowerCase();
|
|
}
|
|
|
|
export function isReservedSsoProviderId(providerId: string): boolean {
|
|
return RESERVED_SSO_PROVIDER_IDS.has(normalizeSsoProviderId(providerId));
|
|
}
|