Grafana doesn’t seem to work with custom scopes. Tried this with OKTA and doesn’t work. I seem to get the token back from okta but JMESPath expressions result in issues resulting in
Invalid type for: , expected: []jmespath.jpType{“array”, “string”}"
t=2021-05-13T17:10:29+0000 lvl=dbug msg=“OAuthLogin got user info” logger=oauth userInfo="&{Id:00ujq59ewmc5rCao40h7 Name:Alpha Charlie Email:alpha.charlie@gmail.comLogin:alpha.charlie@gmail.com Company: Role: Groups:[]}"
t=2021-05-13T17:10:29+0000 lvl=dbug msg=“Building external user info from OAuth user info” logger=oauth
t=2021-05-13T17:10:29+0000 lvl=dbug msg=“Syncing Grafana user with corresponding OAuth profile” logger=oauth
What kind of error? Be specific: WHAT and HOW did you configure. WHAT is the error, WHERE you see it, … Provide reproducible example, not just “I got en error”.
Apologies… we have fixed the issue. We were previously making requests to our Org Authorization Server, which doesn’t support custom claims. By making instead our requests to any Custom Okta Authorization server (by changing the endpoints to /oauth2/${authServerName}/v1/...), we were able to get any custom scope we needed.
I’m still having issues withe custom scope/claims. I used the right auth server but looks like only the claim groups can be used. if I use a custom claim it shows Login failed, user not a member of one of the required groups. there is nothing much in the logs
logger=authn.service t=2025-01-22T20:29:30.11456266Z level=info msg=“Failed to authenticate request” client=auth.client.okta error=“[auth.oauth.userinfo.failed] user not a member of one of the required groups”