authelia/internal/handlers
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
..
const.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
errors.go [MISC] Fail with an error message when X-Forwarded-* headers are missing (#631) 2020-02-13 13:12:37 +11:00
handler_configuration.go [MISC] Ignore errcheck recommendations for legacy code (#893) 2020-04-22 13:33:14 +10:00
handler_configuration_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_extended_configuration.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
handler_extended_configuration_test.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
handler_firstfactor.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_firstfactor_test.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_logout.go Rename org from clems4ever to authelia 2019-12-24 13:14:52 +11:00
handler_logout_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_register_totp.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
handler_register_u2f_step1.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
handler_register_u2f_step1_test.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
handler_register_u2f_step2.go [MISC] Ignore errcheck recommendations for legacy code (#893) 2020-04-22 13:33:14 +10:00
handler_reset_password_step1.go [MISC] Ignore errcheck recommendations for legacy code (#893) 2020-04-22 13:33:14 +10:00
handler_reset_password_step2.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
handler_sign_duo.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_duo_test.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_totp.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_totp_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_sign_u2f_step1.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_u2f_step1_test.go [MISC] Update durations to notation format and housekeeping (#824) 2020-04-05 22:37:21 +10:00
handler_sign_u2f_step2.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_u2f_step2_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_state.go [MISC] Ignore errcheck recommendations for legacy code (#893) 2020-04-22 13:33:14 +10:00
handler_state_test.go [MISC] Fix goimports ordering for repo (#947) 2020-05-01 16:56:42 +10:00
handler_user_info.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
handler_user_info_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_verify.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_verify_test.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
response.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
totp.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
totp_mock.go [MISC] Update durations to notation format and housekeeping (#824) 2020-04-05 22:37:21 +10:00
types.go [MISC] Implement final golint recommendations (#888) 2020-04-21 10:48:24 +10:00
u2f.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
u2f_mock.go [MISC] Update durations to notation format and housekeeping (#824) 2020-04-05 22:37:21 +10:00