From 181bac97c02012f66fc5e36ef5bba7e4ed04056d Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 4 Apr 2023 20:58:27 +0000 Subject: [PATCH 1/2] docs: add helm example for OIDC_GROU_MAPPING var --- docs/admin/auth.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/admin/auth.md b/docs/admin/auth.md index fe4dc9ea2016b..182f6bf95cf84 100644 --- a/docs/admin/auth.md +++ b/docs/admin/auth.md @@ -243,6 +243,16 @@ CODER_OIDC_GROUP_MAPPING='{"myOIDCGroupID": "myCoderGroupName"}' --oidc-group-mapping '{"myOIDCGroupID": "myCoderGroupName"}' ``` +Below is an example mapping in the Coder Helm chart: + +```yaml +coder: + env: + - name: CODER_OIDC_GROUP_MAPPING + value: > + {"myOIDCGroupID": "myCoderGroupName"} +``` + From the example above, users that belong to the `myOIDCGroupID` group in your OIDC provider will be added to the `myCoderGroupName` group in Coder. From 8e58c96544c13449ef48c69b92a8b06c6e2ad641 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 5 Apr 2023 19:28:00 +0000 Subject: [PATCH 2/2] fix: fmt --- docs/admin/auth.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/admin/auth.md b/docs/admin/auth.md index eb68fe96b642e..d50f84d03240f 100644 --- a/docs/admin/auth.md +++ b/docs/admin/auth.md @@ -252,9 +252,9 @@ Below is an example mapping in the Coder Helm chart: ```yaml coder: env: - - name: CODER_OIDC_GROUP_MAPPING - value: > - {"myOIDCGroupID": "myCoderGroupName"} + - name: CODER_OIDC_GROUP_MAPPING + value: > + {"myOIDCGroupID": "myCoderGroupName"} ``` From the example above, users that belong to the `myOIDCGroupID` group in your