File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
const ActiveDirectoryStrategy = require ( 'passport-activedirectory' ) ;
2
2
const ldaphelper = require ( './ldaphelper' ) ;
3
3
4
- const type = " activedirectory" ;
4
+ const type = ' activedirectory' ;
5
5
6
6
const configure = ( passport ) => {
7
7
const db = require ( '../../db' ) ;
8
8
9
9
// We can refactor this by normalizing auth strategy config and pass it directly into the configure() function,
10
10
// ideally when we convert this to TS.
11
11
const authMethods = require ( '../../config' ) . getAuthMethods ( ) ;
12
- const config = authMethods . find ( ( method ) => method . type . toLowerCase ( ) === "activeDirectory" ) ;
12
+ const config = authMethods . find ( ( method ) => method . type . toLowerCase ( ) === type ) ;
13
13
const adConfig = config . adConfig ;
14
14
15
15
const { userGroup, adminGroup, domain } = config ;
@@ -59,7 +59,7 @@ const configure = (passport) => {
59
59
console . log ( `Error authenticating AD user: ${ err . message } ` ) ;
60
60
return done ( err , null ) ;
61
61
}
62
- }
62
+ } ,
63
63
) ,
64
64
) ;
65
65
You can’t perform that action at this time.
0 commit comments