authelia/internal
James Elliott 50f12bc4a4
[SECURITY] Fix Authentication HTTP Status Codes (#959)
* [FIX] Send correct HTTP status codes for 1FA

* use harmonious func to handle all 1FA attempt errors
* use same harmonious func to handle 2FA attempt errors
* always send a 401 which is correct according to https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
* fix tests
* refactor isTargetURLAuthorized
* fix padding and imports
* harmonize remaining return messages
* fixup docs and layout of verifySessionHasUpToDateProfile
2020-05-06 07:27:38 +10:00
..
authentication [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
authorization [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
commands [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
configuration [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
duo [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
handlers [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
logging [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
middlewares [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
mocks [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
models [MISC] Implement golint recommendations (#885) 2020-04-20 23:03:38 +02:00
notification [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
regulation [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
server [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
session [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
storage [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
suites [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
templates Force TLS and valid x509 certs in SMTP Notifier by default 2020-01-10 17:37:16 +01:00
utils [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00