Skip to content

Commit

Permalink
fix: use correct api key
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed May 31, 2024
1 parent 4d51d81 commit fd807f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const testCredentials = async (cfg: Provider, dn: ldapjs.DN, credentials:
} else {
const users = await ids.find({
subject: {
token: cfg.get('apiKey')
token: cfg.get('authentication:apiKey')
},
name: identifier
}).catch((err) => {
Expand Down
2 changes: 1 addition & 1 deletion src/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const mountPaths = (cfg: Provider, server: Server, ids: UserServiceClient
const sendUsers = async (ids: UserServiceClient, cfg: Provider, name?: string): Promise<any[]> => {
const userList = await ids.find({
subject: {
token: cfg.get('apiKey')
token: cfg.get('authentication:apiKey')
},
name
}).catch(() => UserListResponse.fromPartial({}));
Expand Down

0 comments on commit fd807f0

Please sign in to comment.