I'm trying to configure authentication of my Rstudio Workbench instance with auth0 / OpenID.
What confuses me is that I'm getting the below error in the rserver.log.
Configured username claim is not present in the OpenID response
I have deployed the below action in Auth0 dashboard and I confirm that it is being triggerd once a user logs in.
exports.onExecutePostLogin = async (event, api) => {
if (event.authorization) {
api.idToken.setCustomClaim("preferred_username", "username")
}
};
What needs to be configured in order for the OpenID response to return the claim with the username?