Skip to content

Commit

Permalink
Fix keycloak error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithriel committed Nov 21, 2024
1 parent 82089bf commit b9a3412
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 b9a3412

Please sign in to comment.