- Notifications
You must be signed in to change notification settings - Fork1k
Closed
Description
When configuring github enterprise account to the docs:https://coder.com/docs/v2/latest/admin/external-auth#github-enterprise
CODER_EXTERNAL_AUTH_4_ID="example-github"CODER_EXTERNAL_AUTH_4_TYPE=github-enterpriseCODER_EXTERNAL_AUTH_4_DISPLAY_NAME="Github - Example"CODER_EXTERNAL_AUTH_4_CLIENT_ID="Iv1.EXAMPLE"CODER_EXTERNAL_AUTH_4_CLIENT_SECRET="example"CODER_EXTERNAL_AUTH_4_VALIDATE_URL="https://github.example.com/api/v3/user"CODER_EXTERNAL_AUTH_4_AUTH_URL="https://github.example.com/login/oauth/authorize"CODER_EXTERNAL_AUTH_4_TOKEN_URL="https://github.example.com/login/oauth/access_token"CODER_EXTERNAL_AUTH_4_REGEX=github\.example.com\.net
The icon is a generic lock

Looks like the docs is not matching with the options
const (EnhancedExternalAuthProviderAzureDevopsEnhancedExternalAuthProvider="azure-devops"// Authenticate to ADO using an app registration in Entra IDEnhancedExternalAuthProviderAzureDevopsEntraEnhancedExternalAuthProvider="azure-devops-entra"EnhancedExternalAuthProviderGitHubEnhancedExternalAuthProvider="github"EnhancedExternalAuthProviderGitLabEnhancedExternalAuthProvider="gitlab"// EnhancedExternalAuthProviderBitBucketCloud is the Bitbucket Cloud provider.// Not to be confused with the self-hosted 'EnhancedExternalAuthProviderBitBucketServer'EnhancedExternalAuthProviderBitBucketCloudEnhancedExternalAuthProvider="bitbucket-cloud"EnhancedExternalAuthProviderBitBucketServerEnhancedExternalAuthProvider="bitbucket-server"EnhancedExternalAuthProviderSlackEnhancedExternalAuthProvider="slack"EnhancedExternalAuthProviderJFrogEnhancedExternalAuthProvider="jfrog"EnhancedExternalAuthProviderGiteaEnhancedExternalAuthProvider="gitea")
Example should be :
CODER_EXTERNAL_AUTH_4_ID="example-github"CODER_EXTERNAL_AUTH_4_TYPE=githubCODER_EXTERNAL_AUTH_4_DISPLAY_NAME="Github - Example"CODER_EXTERNAL_AUTH_4_CLIENT_ID="Iv1.EXAMPLE"CODER_EXTERNAL_AUTH_4_CLIENT_SECRET="example"CODER_EXTERNAL_AUTH_4_VALIDATE_URL="https://github.example.com/api/v3/user"CODER_EXTERNAL_AUTH_4_AUTH_URL="https://github.example.com/login/oauth/authorize"CODER_EXTERNAL_AUTH_4_TOKEN_URL="https://github.example.com/login/oauth/access_token"CODER_EXTERNAL_AUTH_4_REGEX=github\.example.com\.net