Coder.comC
Coder.com3y ago
24 replies
Le Poulpe

Oauth with Github - redirect_uri_mismatch

Hello there
I can't manage to authenticate with Github, when clicking on the Github button I receive the error :
{"message":"Encountered error in oidc process: redirect_uri_mismatch","detail":"The redirect_uri MUST match the registered callback URL for this application., error_uri: https://docs.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch"}


My conf :
Coder deployed into Kubernetes via Helm and terraform - domain name and SSL certificates

values.yaml file:
coder:
  env:
    - name: CODER_PG_CONNECTION_URL
      valueFrom:
        secretKeyRef:
          name: coder-db-url
          key: url
    - name: CODER_ACCESS_URL
      value: "https://coder.labdevrel.com"
    - name: CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS
      value: "true"
    - name: CODER_OAUTH2_GITHUB_ALLOWED_ORGS
      value: "ovhcloud-devrel"
    - name: CODER_OAUTH2_GITHUB_CLIENT_ID
      value: "a59xxxxxx8d0"
    - name: CODER_OAUTH2_GITHUB_CLIENT_SECRET
      value: "6823xxxxxxxxbd05"
  tls:
    secretNames:
    - labdevrel-tls-secret


My Oauth Github app :
Organization (that I'm member of) : ovhcloud-devrel
Home page url : https://coder.labdevrel.ovh
Callback Url : https://coder.labdevrel.ovh/api/v2/users/oauth2/github/callback
Was this page helpful?