Azure AD support + defaultReadAccess option + All Pages UI work
This commit is contained in:
1 parent
5a010f224f
commit
7c1dd8b92a
17 files changed
+206
-116
No files matched your search
+2
-3
@@ -72,9 +72,8 @@ userSchema.statics.processProfile = (profile) => {
|
||||
}, {
|
||||
new: true
|
||||
}).then((user) => {
|
||||
// LDAP - Handle unregistered accounts
|
||||
// Todo: Allow this behavior for any provider...
|
||||
if (!user && profile.provider === 'ldap') {
|
||||
// Handle unregistered accounts
|
||||
if (!user && profile.provider !== 'local' && (appconfig.auth.defaultReadAccess || profile.provider === 'ldap' || profile.provider === 'azure')) {
|
||||
let nUsr = {
|
||||
email: primaryEmail,
|
||||
provider: profile.provider,
|
||||
|
||||
Reference in new issue
Block a user