Okta integration

Hi all,

I’ve tried to integrate Grafana with Okta but for some reason I’ve got this error:

Login Failed
Login provider denied login request

t=2018-10-31T13:43:50+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/login/generic_oauth status=302 remote_addr=xxx.xxx.xxx.xxx time_ms=0 size=318 referer=http://xxx.xxx.xxx.xxx:3000/login

t=2018-10-31T13:43:50+0000 lvl=eror msg="failed to login " logger=oauth error=access_denied errorDesc=“User is not assigned to the client application.”

Do you know what we should enable on grafana.ini in order to fix it?
Best Bogdan

http://docs.grafana.org/auth/generic-oauth/#set-up-oauth2-with-okta

Hi, I’m getting the similar error with Grafana 6.3.5 and Okta using oauth2. Do I need to create the user in Grafana 1st? Here is the error:

t=2019-09-19T20:31:20+0000 lvl=eror msg="login.OAuthLogin(get info from generic_oauth)" logger=context userId=0 orgId=0 uname= error="User not a member of one of the required organizations"
t=2019-09-19T20:31:20+0000 lvl=eror msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/login/generic_oauth status=500 remote_addr=10.151.66.5 time_ms=696 size=1943 referer=

Never mind. I had an invalid organization entry. Got it working now.