1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-07 14:40:05 +00:00

fix: no need to restrict api endpoints when ldap auth is applied

This commit is contained in:
2022-09-30 14:41:09 +05:00
parent f915c51b07
commit a14266077d
7 changed files with 126 additions and 120 deletions

View File

@@ -86,7 +86,7 @@ const login = async (
if (!user) throw new Error('Username is not found.')
if (
process.env.AUTH_MECHANISM === AuthProviderType.LDAP &&
process.env.AUTH_PROVIDERS === AuthProviderType.LDAP &&
user.authProvider === AuthProviderType.LDAP
) {
const ldapClient = await LDAPClient.init()