From 6e23879fe938382194d3fa3da78667069b105df9 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 13 Oct 2023 04:14:51 +0000 Subject: [PATCH 1/2] docs: clarify external auth regex --- docs/admin/external-auth.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/admin/external-auth.md b/docs/admin/external-auth.md index 7b9064a5a5aa8..40d2db0a6e465 100644 --- a/docs/admin/external-auth.md +++ b/docs/admin/external-auth.md @@ -101,8 +101,11 @@ provider deployments. CODER_EXTERNAL_AUTH_0_AUTH_URL="https://github.example.com/oauth/authorize" CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://github.example.com/oauth/token" CODER_EXTERNAL_AUTH_0_VALIDATE_URL="https://your-domain.com/oauth/token/info" +CODER_EXTERNAL_AUTH_0_REGEX=github\.company\.org ``` +> Note: The `REGEX` variable must be set if using a custom git domain. + ### Custom scopes Optionally, you can request custom scopes: From f656396ad75e6636667862409b8e2356fab4e230 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 13 Oct 2023 04:15:44 +0000 Subject: [PATCH 2/2] cleanup --- docs/admin/external-auth.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/admin/external-auth.md b/docs/admin/external-auth.md index 40d2db0a6e465..5b005cfe6e28c 100644 --- a/docs/admin/external-auth.md +++ b/docs/admin/external-auth.md @@ -117,9 +117,7 @@ CODER_EXTERNAL_AUTH_0_SCOPES="repo:read repo:write write:gpg_key" ### Multiple External Providers (enterprise) Multiple providers are an Enterprise feature. [Learn more](../enterprise.md). - -A custom regex can be used to match a specific repository or organization to -limit auth scope. Here's a sample config: +Below is an example configuration with multiple providers. ```env # Provider 1) github.com