-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from Nounoursdestavernes/main
feat: update docs
- Loading branch information
Showing
5 changed files
with
43 additions
and
2 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
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,9 @@ | ||
{ | ||
"label": "Security", | ||
"position": 3, | ||
"link": { | ||
"type": "generated-index", | ||
"description": " All the configuration related to security." | ||
} | ||
} | ||
|
20 changes: 20 additions & 0 deletions
20
docs/Configuration/security/detailed_authentication_errors.md
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,20 @@ | ||
# Detailed Authentication Errors | ||
|
||
By default, the authentication error messages are kept simple to avoid leaking sensitive information. | ||
|
||
However, in some cases, you may want to provide more detailed error messages to help users. In this case, you can enable detailed authentication errors. | ||
|
||
:::danger | ||
Enabling detailed authentication errors without a rate limiter or a similar mechanism may expose your application to security risks. (e.g. brute force attacks) | ||
Use [fail2ban](/docs/Configuration/security/Fail2Ban) or similar tools to protect your application. | ||
|
||
Good source for more information about this topic: [OWASP - Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html#authentication-and-error-messages) | ||
::: | ||
|
||
To enable detailed authentication errors, set the `SHOW_DETAILED_AUTH_ERRORS` environment variable to `true`. | ||
|
||
```bash | ||
SHOW_DETAILED_AUTH_ERRORS=true | ||
``` | ||
|
||
After setting this environment variable, the authentication error messages will include more detailed information about the error : "Invalid email or username" and "Invalid password". |
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