Use Post request for SSO login

  • What Grafana version and what operating system are you using?
    V9.2.11 running as a pod in kubernetes ubuntu base image

  • What are you trying to achieve?
    Login to Grafana

  • How are you trying to achieve it?
    Login using SSO to Azure Directory

  • What happened?
    When some users try to login to grafana using sso we get the error

AADSTS90015: Requested query string is too long.

  • What did you expect to happen?
    To login successfully

It seems I need to change the token_request_method to POST which I tried but the request is still a GET

This is my SSO configuration.

    allow_sign_up = true
    allowed_domains =
    request_method = "POST"
    auth_url =
    client_id = 
    client_secret = 
    enabled = true
    name = Azure AD
    role_attribute_strict = false
    scopes = openid email profile
    token_url =