Here is my use case:
- setup auth.anonymous for anonymous user, they can just view the dashboards in Main Org.
- setup auth.generic_oauth for SSO reason, for these users, they have admin permission in their own org.
Here is my grafana.ini file:
[auth.anonymous] enabled = true [users] auto_assign_org = false default_theme = light [paths] logs = /var/log/grafana [auth.generic_oauth] enabled = true name = keycloak allow_sign_up = true client_id = grafana client_secret = uuidxxx auth_url = http://my.domain.com/auth/realms/keycloak/protocol/openid-connect/auth token_url = http://my.domain.com/auth/auth/realms/keycloak/protocol/openid-connect/token api_url = http://my.domain.com/auth/auth/realms/keycloak/protocol/openid-connect/userinfo
Here is my issue:
http://grafana.com:3000/login/generic_oauth/ just works fine.
http://grafana.com:3000/ not work, cuz it redict to uri: http://grafana.com:3000/login, the login form showed up, so I cant just watch dashboard as anonymous user withou login.
So, is there possible that auth.anonymous work together with other kind of oauth? Or did I miss anything? Let me know if you have any suggestions. Thanks a lot.