mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
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:
committed by
GitHub
parent
a91b631411
commit
b5179597f3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user