Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioGii committed Jan 30, 2025
1 parent 9ba3192 commit 93f8510
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/Advanced Configuration/Single Sign-On Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ to `true` and `security.loginMethod` to `oauth2` in your `/configs/settings.yml`
security:
enableLogin: true
...
loginMethod: <all|normal|oauth2|saml2>
loginMethod: all | normal | oauth2 | saml2
```
- `enableLogin`: Set to `true` to enable login
Expand All @@ -34,7 +34,7 @@ Next, you will need to configure the OAuth 2 properties for your chosen provider
You also have the option to use a different provider apart from the aforementioned if you wish.

> #### ⚠️ Note
> _The `enableLogin` property must be set to `true` for this to work._
> _The `enableLogin` property must be set to `true` for SSO to work._

<Tabs groupId="provider-configs">
<TabItem value="google" label="Google">
Expand All @@ -44,11 +44,12 @@ You also have the option to use a different provider apart from the aforemention
client:
google:
clientId: <YOUR_CLIENT_ID>
clientSecret: <YOUR_CLIENT_SECRET></YOUR_CLIENT_SECRET>
scopes: https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile # scopes for Google OAuth2
useAsUsername: email
clientSecret: <YOUR_CLIENT_SECRET>
scopes: email, profile
useAsUsername: email | name | given_name | family_name
provider: google
```
> _For the list of scopes Google offers, see [here](https://developers.google.com/identity/protocols/oauth2/scopes#oauth2)_
</TabItem>
<TabItem value="github" label="GitHub">
```yaml
Expand All @@ -59,9 +60,10 @@ You also have the option to use a different provider apart from the aforemention
clientId: <YOUR_CLIENT_ID>
clientSecret: <YOUR_CLIENT_SECRET>
scopes: read:user
useAsUsername: email
useAsUsername: email | login | name
provider: github
```
> _For the list of scopes Github offers, see [here](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes)_
</TabItem>
<TabItem value="keycloak" label="Keycloak">
```yaml
Expand All @@ -73,7 +75,7 @@ You also have the option to use a different provider apart from the aforemention
clientId: <YOUR_CLIENT_ID>
clientSecret: <YOUR_CLIENT_SECRET>
scopes: openid, profile, email
useAsUsername: email
useAsUsername: email | preferred_name
provider: keycloak
```
</TabItem>
Expand All @@ -87,7 +89,7 @@ You also have the option to use a different provider apart from the aforemention
clientSecret: <YOUR_CLIENT_SECRET>
autoCreateUser: true
blockRegistration: false
useAsUsername: email
useAsUsername: email | name | given_name | nickname | preferred_name
scopes: openid, profile, email
provider: authentik
```
Expand Down

0 comments on commit 93f8510

Please sign in to comment.