Skip to content

Commit

Permalink
adding form login disable docs to Single Sign-On Configuration.md (#39)
Browse files Browse the repository at this point in the history
Adding documentation for the feature to disable the form login after SSO has been enabled.
  • Loading branch information
g33z authored Dec 30, 2024
1 parent dbaa2db commit ad71028
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/Advanced Configuration/Single Sign-On Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,29 @@ environment:
SECURITY_OAUTH2_CLIENTID: "<client-id>"
SECURITY_OAUTH2_CLIENTSECRET: "<client-secret>"
```

# Disable Form Login

Once you successfully enabled Single Sign-on (with OAuth2 or SAML), you might want to disable the form login.
This can be done by changing the ``loginMethod`` setting accordingly to your needs, like so:

## Settings file
```
security:
...
loginMethod: oauth2 # Accepts values like 'all' and 'normal'(only Login with Username/Password), 'oauth2'(only Login with OAuth2) or 'saml2'(only Login with SAML2)
```

## Docker

### Docker run
```
-e SECURITY_LOGINMETHOD="oauth2" # to enable oauth2 only
```

### Docker Compose
```
environment:
...
SECURITY_LOGINMETHOD: "oauth2" # to enable oauth2 only
```

0 comments on commit ad71028

Please sign in to comment.