Skip to content

Commit

Permalink
Merge pull request #404 from bcgsc/bugfix/DEVSU-2490-fix-keycloak-err…
Browse files Browse the repository at this point in the history
…or-message

DEVSU-2490-fix-keycloak-error-message
  • Loading branch information
Nithriel authored Nov 21, 2024
2 parents c6b2fb4 + 81f5c14 commit f0d452f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/libs/getUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const getUser = async (req, res) => {
}
// Check for IPR access
if (!decoded.realm_access.roles.includes(nconf.get('keycloak:role'))) {
return res.status(HTTP_STATUS.FORBIDDEN).json({message: 'IPR Access Error'});
return res.status(HTTP_STATUS.FORBIDDEN).json({message: 'IPR Access Error: Keycloak role missing'});
}
const username = decoded.preferred_username;
const expiry = decoded.exp;
Expand Down

0 comments on commit f0d452f

Please sign in to comment.