When Grafana try delegate authentication it have an error : msg=“OAuthLogin got user info” logger=oauth userInfo="&{Id: Name: Email: Login: Company: Role:}"
It expect to receive “email” but my oauth provider give “mail”:
{“mail”:“user_email”,“scope”:[“mail”,“scope2”],“grant_type”:“authorization_code”,“realm”:"/AccessManagement",“scope2”:“user_name”,“token_type”:“Bearer”,“expires_in”:86399,“client_id”:“TEST”,“access_token”:“a80dmb97-f3t0-4ab0-b754-96909c9f9494”}"
Those configurations doesn’t work:
- GF_AUTH_GENERIC_OAUTH_EMAIL_ATTRIBUTE_NAME=“mail”
- GF_AUTH_GENERIC_OAUTH_EMAIL_ATTRIBUTE_NAME=“mail:primary”
Any idea?
Thx