You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the oauth flow returns a profile with an attributes field type that don't match the expected one, Grafana returns the error "Error decoding user info response".
What you expected to happen:
As I've defined the email_attribute_path in the config, I expect Grafana gets it from there without trying to match it with a specific structure, but it seems that never reaches that part of the code.
How to reproduce it (as minimally and precisely as possible):
Using an oauth profile with an attributes field that don't match the expected type: map[string][]string.
What happened:
When the oauth flow returns a profile with an attributes field type that don't match the expected one, Grafana returns the error "Error decoding user info response".
What you expected to happen:
As I've defined the email_attribute_path in the config, I expect Grafana gets it from there without trying to match it with a specific structure, but it seems that never reaches that part of the code.
How to reproduce it (as minimally and precisely as possible):
Using an oauth profile with an attributes field that don't match the expected type: map[string][]string.
For example:
{ "id": "test", "attributes": [ { "roles": [ "roleA", "roleB" ] }, { "mail": "test@example.com" } ] }
One would expect that adding this in the defaults.ini file, things will go ok:
email_attribute_path = (attributes[].mail)[0]
Anything else we need to know?:
I've created this PR that seems to solve my use-case: #35985
Environment:
The text was updated successfully, but these errors were encountered: