Skip to content

Commit

Permalink
Merge pull request #2141 from bcgov/feature/tokentimeout
Browse files Browse the repository at this point in the history
feature/tokentimeout
  • Loading branch information
SodhiA1 authored Dec 5, 2024
2 parents e558205 + 39db91e commit ade85dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ auth.getOidcDiscovery().then(discovery => {
clientID: config.get('oidc:clientId'),
clientSecret: config.get('oidc:clientSecret'),
callbackURL: config.get('server:frontend') + '/api/auth/callback',
scope: discovery.scopes_supported,
scope: 'openid profile',
kc_idp_hint: config.get('server:idirIDPHint')
}, (_issuer, profile, _context, idToken, accessToken, refreshToken, done) => {
if ((typeof (accessToken) === 'undefined') || (accessToken === null) ||
Expand Down
2 changes: 1 addition & 1 deletion backend/src/components/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const auth = {
client_secret: config.get('oidc:clientSecret'),
grant_type: 'refresh_token',
refresh_token: refreshToken,
scope: discovery.scopes_supported
scope: 'openid profile'
}), {
headers: {
Accept: 'application/json',
Expand Down

0 comments on commit ade85dc

Please sign in to comment.