Grafana Okta Configuration

  • What Grafana version and what operating system are you using?
    Grafana Version: v10.2.2

  • What are you trying to achieve?
    Trying to use okta configuration for Grafana

  • How are you trying to achieve it?
    Have given the below configs in grafana.ini section

  • What happened?

Getting error as " Login failed - login provider denied login request"

  • What did you expect to happen?
  • Should be able to login to Grafana successfully using okta.
  • Can you copy/paste the configuration(s) that you are having problems with?

auth.okta:
name: okta
enabled: true
allow_sign_up: true
client_id: <>
client_secret: <>
auth_url: https://<>/oauth2/default/v1/authorize
token_url: https://<>/oauth2/default/v1/token
api_url: https://<>/oauth2/default/v1/userinfo

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

Not able to find anything specific from the pod logs. Below are the logs for reference.

logger=context userId=0 orgId=0 uname= t=2024-02-26T13:23:28.219849915Z level=info msg=“Request Completed” method=GET path=/api/live/ws status=401 remote_addr=xxxx time_ms=0 duration=180.387µs size=102 referer= handler=/api/live/ws

logger=context userId=0 orgId=0 uname= t=2024-02-26T13:23:34.19484732Z level=info msg= error=“[auth.unauthorized] cannot authenticate request” remote_addr=xxxx traceID=

logger=context userId=0 orgId=0 uname= t=2024-02-26T13:23:34.194943524Z level=info msg=“Request Completed” method=GET path=/api/live/ws status=401 remote_addr=xxxx time_ms=0 duration=165.896µs size=102 referer= handler=/api/live/ws

logger=context userId=0 orgId=0 uname= t=2024-02-26T13:23:42.18292907Z level=info msg= error=“[auth.unauthorized] cannot authenticate request” remote_addr=xxxx traceID=

logger=context userId=0 orgId=0 uname= t=2024-02-26T13:23:42.183021133Z level=info msg=“Request Completed” method=GET path=/api/live/ws status=401 remote_addr=xxxx time_ms=0 duration=149.236µs size=102 referer= handler=/api/live/w

  • Did you follow any online instructions? If so, what is the URL?