Skip to content

Commit

Permalink
Merge pull request #85 from loft-sh/improvements
Browse files Browse the repository at this point in the history
docs: update cluster accounts config snippet
  • Loading branch information
FabianKramm committed Feb 3, 2021
2 parents 921bd07 + 3ad02d5 commit b4f28cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/pages/fragments/auth/sso/account-templates.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
If you configured single sign-on, you may want to give users access to certain clusters when they sign in for the first time, potentially depending on their groups.

To tell Loft to automatically apply certain account templates to new users when they sign in via SSO for the first time, navigate to `Admin > Config` in Loft and add the following lines to your `auth.oidc` section of the config:
```yaml {8-13}
```yaml {8-14}
auth:
oidc:
issuerUrl: 'https://my.issuer.com/'
Expand All @@ -13,8 +13,9 @@ auth:
- name: loft-all-clusters-default # Name of template 1
- name: some-other-account-template # Name of template 2
groupClusterAccountTemplates: # Apply templates depending on the user's groups
admin-group: # Apply if user has group `admin-group`
- name: loft-all-clusters-admin # Name of the account template to apply
- group: admin-group: # Apply if user has group `admin-group`
clusterAccountTemplates:
- name: loft-all-clusters-admin # Name of the account template to apply
```

<figure class="frame">
Expand Down
Binary file modified docs/static/media/ui/auth/cat-oidc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b4f28cb

Please sign in to comment.