Git authentication doing nothing

Hello!

I've setup git auth following the doc (https://coder.com/docs/coder-oss/latest/admin/git-providers) but when i'm trying to clone a private repo, this problem occurs.
  1. Coder shows me this:```Open the following URL to authenticate with Git: https://<my_domain>/gitauth/primary-github```
  2. I click the link
  3. I'm redirected to the homepage of my coder web panel (/workspaces)
  4. Nothing change in my shell after the login
Here's some additional infos:
  • my .env is as follow:
    # git
    CODER_GITAUTH_0_ID=primary-github
    CODER_GITAUTH_0_TYPE=github
    CODER_GITAUTH_0_CLIENT_ID=<my_oauth2_app_client_id>
    CODER_GITAUTH_0_CLIENT_SECRET=<my_oauth2_app_client_secret>
  • my client id and client secret are from the same OAUTH2 app that is responsible for the authentication in Coder
  • this OAUTH2 app is related to another account than the one i'm trying to log into
Learn how connect Coder with external git providers
Was this page helpful?