authelia/internal/handlers
Clément Michaud 92d328926d
refactor(handlers): lower case error messages (#2289)
* refactor(handlers): lower case error messages

also refactor verifyAuth function to detect malicious activity both with session
cookie and authorization header.

* refacto(handlers): simplify error construction

* fix(handlers): check prefix in authorization header to determine auth method

* fix(handlers): determining the method should be done with headers instead of query arg

* refacto(handlers): rollback changes of verifyAuth

* don't lowercase log messages

* Apply suggestions from code review

Make sure logger errors are not lowercased.

* fix: uppercase logger errors and remove unused param

* Do not lowercase logger errors
* Remove unused param targetURL
* Rename url variable to not conflict with imported package

Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-17 15:53:40 +10:00
..
const.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
errors.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_checks_safe_redirection.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_checks_safe_redirection_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_configuration.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_configuration_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_firstfactor.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_firstfactor_test.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_health.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_logout.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_logout_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_oidc_authorization.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_oidc_consent.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_oidc_introspection.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_oidc_jwks.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_oidc_revocation.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_oidc_token.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_oidc_userinfo.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_oidc_wellknown.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_register_totp.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_register_u2f_step1.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_register_u2f_step1_test.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_register_u2f_step2.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_reset_password_step1.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_reset_password_step2.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_sign_duo.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_sign_duo_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_sign_totp.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_sign_totp_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_sign_u2f_step1.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_sign_u2f_step1_test.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_sign_u2f_step2.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_sign_u2f_step2_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_state.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_state_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handler_user_info.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_user_info_test.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_verify.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
handler_verify_test.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
oidc.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
oidc_register.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
oidc_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
response.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +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 fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
types_oidc.go feat(oidc): add additional config options, accurate token times, and refactoring (#1991) 2021-07-04 09:44:30 +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