-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally disable password accounts (#381)
- Loading branch information
1 parent
9a4188a
commit b16559b
Showing
14 changed files
with
161 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ [email protected] | |
SENTRY_URL= | ||
SESSION_SECRET=changeme | ||
DISABLE_ANONYMOUS_LOGIN=false | ||
DISABLE_PASSWORD_LOGIN=false | ||
DISABLE_PASSWORD_REGISTRATION=false | ||
TWITTER_KEY= | ||
TWITTER_SECRET= | ||
GOOGLE_KEY= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# 🎫 Authentication | ||
|
||
When running a self-hosted instance, you can customise how your users will authenticate to the system. | ||
|
||
You essentially have 3 authentication mechanisms: | ||
|
||
- OAuth (aka Social) authentication (Google, Okta, GitHub etc.) | ||
- Password accounts (the good old email / password combination) | ||
- Anonymous accounts (where the user cannot retrieve his posts and sessions on a different machine) | ||
|
||
By default, OAuth is disabled (because it is not configured), and the other two are enabled. | ||
|
||
|
||
|
||
## OAuth | ||
|
||
This is a subject of a [dedicated page here](oauth). | ||
|
||
## Password accounts | ||
|
||
You have two optional settings for password accounts. | ||
|
||
You can disable them entirely, by setting the environment variable `DISABLE_PASSWORD_LOGIN` to `true`. | ||
|
||
You can also only disable registration, by setting the environment variable `DISABLE_PASSWORD_REGISTRATION` to `true`. | ||
|
||
If you want more details on how to set these environment variables, [read this page](optionals). | ||
|
||
If you disabled registration, it means the administrator will need to create the accounts manually, by using the [admin screen](admin). | ||
|
||
## Anonymous accounts | ||
|
||
If you do not wish your users to use anonymous accounts, and force them to authenticate properly, they can be disabled by setting the environment variable `DISABLE_ANONYMOUS_LOGIN` to `true`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters