feat(core): Limit user changes when saml is enabled (#5577)

* consolidate SSO settings

* update saml settings

* fix type error

* limit user changes when saml is enabled

* add test
This commit is contained in:
Michael Auerswald
2023-03-03 10:05:30 +01:00
committed by GitHub
parent a91b631411
commit b5179597f3
5 changed files with 116 additions and 3 deletions

View File

@@ -11,3 +11,9 @@ export function isSsoJustInTimeProvisioningEnabled(): boolean {
export function doRedirectUsersFromLoginToSsoFlow(): boolean {
return config.getEnv('sso.redirectLoginToSso');
}
export function setCurrentAuthenticationMethod(
authenticationMethod: 'email' | 'ldap' | 'saml',
): void {
config.set('userManagement.authenticationMethod', authenticationMethod);
}