首页 > 解决方案 > login.OAuthLogin(missing saved state) - 带有 OKTA 集成的 grafana 社区版

问题描述

我正在尝试使用 Okta 集成配置社区版 Grafana(官方 docker 映像)。

完成 Okta 配置后,Okta 对请求进行身份验证并将请求重定向到我托管它的 grafana,但是,它显示以下错误:

login.OAuthLogin(missing saved state)

我没有使用任何数据库来存储会话。我只想将其保存在本地文件中。

请建议。

标签: grafana

解决方案


I had the same problem, which had to do with the 'email' attribute not being available to Grafana.

  • Make sure that 'api_url' contains 'email'.
  • In Grafana OAuth config, set the following:
    • email_attribute_path
    • email_attribute_name

Example:

[auth.generic_oauth]    
email_attribute_path=email    
email_attribute_name=email

Example Grafana Configuration containing these properties can be found here: https://github.com/grafana/grafana/blob/v6.4.0/conf/sample.ini


推荐阅读