summaryrefslogtreecommitdiff
path: root/docs/content/guides/auth/saml.md
diff options
context:
space:
mode:
authorDavid Mehren2021-01-11 12:00:33 +0100
committerDavid Mehren2021-01-11 12:00:33 +0100
commit80d8cc79f6843bca557d882db32fae8c55ab425f (patch)
tree22a1c4276cc605c63bfd9d6874d04cd43c2ebf6f /docs/content/guides/auth/saml.md
parent877bc26078c888abaf8bc73da38206ba4dd7b97a (diff)
Docs: Unify code block languages
Use `yaml` for Dockerfiles, `shell` for environment variables and `json` for our config file. Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to '')
-rw-r--r--docs/content/guides/auth/saml.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/guides/auth/saml.md b/docs/content/guides/auth/saml.md
index 80d7dfed..41e8cbaf 100644
--- a/docs/content/guides/auth/saml.md
+++ b/docs/content/guides/auth/saml.md
@@ -30,7 +30,7 @@ you want to match your IdP, you can use more configurations as below.
```
- environment variables
- ```env
+ ```shell
CMD_SAML_ISSUER=myhedgedoc
CMD_SAML_IDENTIFIERFORMAT=urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
```
@@ -46,7 +46,7 @@ you want to match your IdP, you can use more configurations as below.
- *Note:* Default value of all attributes is NameID of SAML response, which is email address if `identifierFormat` is default.
- `config.json`:
- ```javascript
+ ```json
{
"production": {
"saml": {
@@ -62,7 +62,7 @@ you want to match your IdP, you can use more configurations as below.
```
- environment variables
- ```sh
+ ```shell
CMD_SAML_ATTRIBUTE_ID=sAMAccountName
CMD_SAML_ATTRIBUTE_USERNAME=nickName
CMD_SAML_ATTRIBUTE_EMAIL=mail
@@ -77,7 +77,7 @@ you want to match your IdP, you can use more configurations as below.
- *Note:* Evaluates `externalGroups` first
- `config.json`:
- ```javascript
+ ```json
{
"production": {
"saml": {
@@ -91,7 +91,7 @@ you want to match your IdP, you can use more configurations as below.
```
- environment variables
- ```sh
+ ```shell
CMD_SAML_GROUPATTRIBUTE=memberOf
CMD_SAML_REQUIREDGROUPS=hedgedoc-users|board-members
CMD_SAML_EXTERNALGROUPS=temporary-staff