authelia/internal
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
..
authentication fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
authorization fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
commands feat(ntp): check clock sync on startup (#2251) 2021-09-17 14:44:35 +10:00
configuration feat(ntp): check clock sync on startup (#2251) 2021-09-17 14:44:35 +10:00
duo fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
handlers refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
logging fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
middlewares refactor(handlers): lower case error messages (#2289) 2021-09-17 15:53:40 +10:00
mocks fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
models [MISC] Implement golint recommendations (#885) 2020-04-20 23:03:38 +02:00
notification fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
ntp feat(ntp): check clock sync on startup (#2251) 2021-09-17 14:44:35 +10:00
oidc fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
regulation fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
server fix(server): remove obselete memory check warning (#2380) 2021-09-16 12:26:34 +10:00
session fix(session): handle redis logging properly (#2350) 2021-09-09 13:08:21 +10:00
storage fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
suites feat(ntp): check clock sync on startup (#2251) 2021-09-17 14:44:35 +10:00
templates fix(web): improve 2fa enrollment process (#1706) 2021-02-12 16:59:42 +11:00
utils fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00