Skip to content

Commit

Permalink
fix(authentication-service): authclientId issue (#468)
Browse files Browse the repository at this point in the history
not able to find clientId in authClientIds
  • Loading branch information
AnkurBansalSF authored Jan 17, 2022
1 parent 9e8ee3b commit de351b6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ export class LoginHelperService {
} else if (!req.client_secret) {
this.logger.error('client secret key missing from request object');
throw new HttpErrors.BadRequest(AuthErrorKeys.ClientSecretMissing);
} else if (
currentUser.authClientIds.indexOf((client.id ?? 0).toString()) < 0
) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} else if ((currentUser.authClientIds as any).indexOf(client.id ?? 0) < 0) {
this.logger.error(
'User is not allowed to access client id passed in request',
);
Expand Down

0 comments on commit de351b6

Please sign in to comment.