From a0e5fd6ebe3255504ce35aaa002520a892079588 Mon Sep 17 00:00:00 2001 From: Benjamin Peinhardt Date: Fri, 4 Oct 2024 17:46:55 +0000 Subject: [PATCH 1/2] fix some example regexes to properly escape . characters --- docs/admin/external-auth.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/admin/external-auth.md b/docs/admin/external-auth.md index 049b7a80d64d5..5436e2aa254e5 100644 --- a/docs/admin/external-auth.md +++ b/docs/admin/external-auth.md @@ -206,20 +206,20 @@ CODER_EXTERNAL_AUTH_0_ID=primary-github CODER_EXTERNAL_AUTH_0_TYPE=github CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx -CODER_EXTERNAL_AUTH_0_REGEX=github.com/orgname +CODER_EXTERNAL_AUTH_0_REGEX=github\.com/orgname # Provider 2) github.example.com CODER_EXTERNAL_AUTH_1_ID=secondary-github CODER_EXTERNAL_AUTH_1_TYPE=github CODER_EXTERNAL_AUTH_1_CLIENT_ID=xxxxxx CODER_EXTERNAL_AUTH_1_CLIENT_SECRET=xxxxxxx -CODER_EXTERNAL_AUTH_1_REGEX=github.example.com +CODER_EXTERNAL_AUTH_1_REGEX=github\.example\.com CODER_EXTERNAL_AUTH_1_AUTH_URL="https://github.example.com/login/oauth/authorize" CODER_EXTERNAL_AUTH_1_TOKEN_URL="https://github.example.com/login/oauth/access_token" CODER_EXTERNAL_AUTH_1_VALIDATE_URL="https://github.example.com/api/v3/user" ``` -To support regex matching for paths (e.g. github.com/orgname), you'll need to +To support regex matching for paths (e.g. github\.com/orgname), you'll need to add this to the [Coder agent startup script](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/agent#startup_script): From bcadafc4476ad4652ed40436168ba5f41f9a77ca Mon Sep 17 00:00:00 2001 From: Benjamin Peinhardt Date: Mon, 14 Oct 2024 17:22:35 +0000 Subject: [PATCH 2/2] fmt --- docs/admin/external-auth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/admin/external-auth.md b/docs/admin/external-auth.md index 433a9f876bc40..51f11f53d2754 100644 --- a/docs/admin/external-auth.md +++ b/docs/admin/external-auth.md @@ -204,8 +204,8 @@ CODER_EXTERNAL_AUTH_1_TOKEN_URL="https://github.example.com/login/oauth/access_t CODER_EXTERNAL_AUTH_1_VALIDATE_URL="https://github.example.com/api/v3/user" ``` -To support regex matching for paths (e.g. github\.com/org), you'll need to -add this to the +To support regex matching for paths (e.g. github\.com/org), you'll need to add +this to the [Coder agent startup script](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/agent#startup_script): ```shell