Skip to content

Commit d71621a

Browse files
committed
fix(reverse-proxy): update OIDC authentication parameters to include authorization scope
1 parent d6fb518 commit d71621a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • packages/reverse-proxy-service/src/middleware

packages/reverse-proxy-service/src/middleware/oidcAuth.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ import {
66
KEYCLOAK_SERVER_URL,
77
} from '../setup/env';
88

9-
function oidcAuth() {
10-
return auth({
9+
function oidcAuth () {
10+
return auth( {
1111
clientID: KEYCLOAK_CLIENT_ID,
1212
issuerBaseURL: KEYCLOAK_SERVER_URL,
1313
baseURL: KEYCLOAK_ORIGINAL_HOST,
1414
secret: KEYCLOAK_SECRET,
1515
authRequired: false,
16-
});
16+
authorizationParams: {
17+
scope: 'openid',
18+
}
19+
} );
1720
}
1821

1922
export default oidcAuth;

0 commit comments

Comments
 (0)