mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Add SAML XML validation (#5600)
* consolidate SSO settings * update saml settings * fix type error * limit user changes when saml is enabled * add test * add toggle endpoint and fetch metadata * rename enabled param * add handling of POST saml login request * add config test endpoint * adds saml XML validation * add comment * protect test endpoint * improve ignoreSSL and some cleanup * fix wrong schema used * remove console.log
This commit is contained in:
committed by
GitHub
parent
ddfa16cf27
commit
ca66ec8f4d
@@ -1,4 +1,5 @@
|
||||
import config from '@/config';
|
||||
import type { AuthProviderType } from '@/databases/entities/AuthIdentity';
|
||||
|
||||
export function isSamlCurrentAuthenticationMethod(): boolean {
|
||||
return config.getEnv('userManagement.authenticationMethod') === 'saml';
|
||||
@@ -12,8 +13,6 @@ export function doRedirectUsersFromLoginToSsoFlow(): boolean {
|
||||
return config.getEnv('sso.redirectLoginToSso');
|
||||
}
|
||||
|
||||
export function setCurrentAuthenticationMethod(
|
||||
authenticationMethod: 'email' | 'ldap' | 'saml',
|
||||
): void {
|
||||
export function setCurrentAuthenticationMethod(authenticationMethod: AuthProviderType): void {
|
||||
config.set('userManagement.authenticationMethod', authenticationMethod);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user