Openid connect roles

How can I get rid of the following message:

Failed to get roles from JWT claims with roles_key 'roles'. Check if this key is correct and available in the JWT payload.

I don’t want to use roles from openid

You just need to remove the roles_key setting from sg_config.completely, e.g.:

    http_enabled: true
    order: 1
      type: jwt
      challenge: false
        signing_key: "..."
        jwt_header: "Authorization"
        roles_key: roles   <---- remove
        subject_key: username
      type: noop

that did the trick, thanks!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.