Skip to content

Commit 709441d

Browse files
authored
Merge branch 'main' into 909-ldap-user-group-confirmation
2 parents adfdb96 + 67663a9 commit 709441d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@finos/git-proxy",
3-
"version": "1.17.1",
3+
"version": "1.17.2",
44
"description": "Deploy custom push protections and policies on top of Git.",
55
"scripts": {
66
"cli": "node ./packages/git-proxy-cli/index.js",

src/service/passport/activeDirectory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
const ActiveDirectoryStrategy = require('passport-activedirectory');
22
const ldaphelper = require('./ldaphelper');
33

4-
const type = "activedirectory";
4+
const type = 'activedirectory';
55

66
const configure = (passport) => {
77
const db = require('../../db');
88

99
// We can refactor this by normalizing auth strategy config and pass it directly into the configure() function,
1010
// ideally when we convert this to TS.
1111
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);
1313
const adConfig = config.adConfig;
1414

1515
const { userGroup, adminGroup, domain } = config;

0 commit comments

Comments
 (0)