authelia/internal/middlewares
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
..
authelia_context.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
authelia_context_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
const.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
errors.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
http_to_authelia_handler_adaptor.go refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
identity_verification.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
identity_verification_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
log_request.go Display correct RemoteIP in logs. 2019-12-11 19:01:16 +01:00
log_request_test.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
require_first_factor.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
strip_path.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
types.go feat(ntp): check clock sync on startup (#2251) 2021-09-17 14:44:35 +10:00