Skip to content

Commit 9c8e710

Browse files
committed
fix: incorrect audience settings
1 parent 1a54fcd commit 9c8e710

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server/middlewares/auth.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ if (config.get('auth.provider') === AuthenticationType.keycloak) {
130130
clientID: `${config.get('auth.clientId')}`,
131131
passReqToCallback: true,
132132
...(audience.length > 0 && {
133-
audience: audience.concat(...[`${config.get('auth.clientId')}`]),
133+
audience,
134134
}),
135135
}
136136
: {
@@ -147,7 +147,6 @@ if (config.get('auth.provider') === AuthenticationType.keycloak) {
147147
passReqToCallback: true,
148148
loggingLevel: 'info',
149149
};
150-
console.log(credentials.audience);
151150
passport.use(
152151
new BearerStrategy(credentials, (req, token: ITokenPayload, done) => {
153152
// === USER ===

0 commit comments

Comments
 (0)