title: how to configure grafana with oauth (private ADFS)
body: <p>I would make an o.auth connection with an ADFS server. I followed the doc <a href="http://docs.grafana.org/installation/configuration/#auth-generic-oauth" rel="nofollow noreferrer">http://docs.grafana.org/installation/configuration/#auth-generic-oauth</a>.</p>
  
  <p>Conf:</p>
  
  <pre><code>[auth.generic_oauth]
  enabled = true
  client_id = ID
  client_secret = TOKEN
  scopes = openid
  auth_url = https://GO.tld/adfs/oauth2/authorize
  token_url = https://GO.tld/adfs/oauth2/token
  api_url = https://GO.tld/adfs/userinfo
  allowed_domains = GO.tld
  allow_sign_up = true
  </code></pre>
  
  <p>Log </p>
  
  <pre><code>lvl=dbug msg="HTTP GET https://GO.tld/adfs/userinfo: 200 OK {\"sub\":\"165az5d55s5sa56a5z1ds22tr6h5g5g6za6a6z55z5s=\"}"
  lvl=dbug msg="HTTP GET https://GO.tld/adfs/userinfo/emails: 200 OK {\"sub\":\"165az5d55s5sa56a5z1ds22tr6h5g5g6za6a6z55z5s=\"}"
  lvl=dbug msg="OAuthLogin got user info" logger=context userId=0 orgId=0 uname= userInfo="&amp;{Name: Email: Login: Company: Role:}"
  lvl=info msg="Login provider didn't return an email address" logger=context userId=0 orgId=0 uname=
  lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/login/generic_oauth status=302 remote_addr=IP time_ms=26 size=29 referer=https://grafana.tld:3000/login
  </code></pre>