Concourse CI and Gitea OAuth


I am trying to setup concourse ci to authenticate via oauth2 and gitea.

I am working off of: and
Generic oAuth - Concourse CI
I am close, but now getting from concourse:

Failed to authenticate: OAuth connector: failed to get token: oauth2: cannot fetch token: 400 Bad Request Response: {“error”:“unauthorized_client”,“error_description”:“client is not authorized”}

I double checked the client secret and that looks ok.

Started up devoloper tools in chrome. Got this information:

Internal Server Error

Failed to return user’s identity.


  1. Request Method:
  2. Status Code:
    500 Internal Server Error
  3. Remote Address:
  4. Referrer Policy:

I wonder if I have this part wrong:

Its not real clear to me what needs to go there. Any thoughts on how best to proceed?

Thank you.

do you see any requests that fail (error or 404) in gitea.log?