authelia/internal/handlers
Amir Zarrinkafsh e2ebdb7e41
fix: oidc issuer path and strip path middleware (#2272)
* fix: oidc issuer path and strip path middleware

This ensures the server.path requests append the base_url to the oidc well-known issuer information and adjusts server.path configuration to only strip the configured path instead of the first level entirely regardless of its content.

* fix: only log the token error and general refactoring

* refactor: factorize base_url functions

* refactor(server): include all paths in startup logging

* refactor: factorize

* refactor: GetExternalRootURL -> ExternalRootURL

Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-08-10 10:31:08 +10:00
..
const.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
errors.go [MISC] Fixed typo in X-Forwarded headers (#1280) 2020-08-21 11:15:20 +10:00
handler_checks_safe_redirection.go fix: user is now redirected when authenticated (#2082) 2021-08-02 16:15:38 +10:00
handler_checks_safe_redirection_test.go fix: user is now redirected when authenticated (#2082) 2021-08-02 16:15:38 +10:00
handler_configuration.go fix(authorization): configuration reports 2fa disabled with 2fa oidc clients (#2089) 2021-06-18 11:38:01 +10:00
handler_configuration_test.go fix(authorization): configuration reports 2fa disabled with 2fa oidc clients (#2089) 2021-06-18 11:38:01 +10:00
handler_firstfactor.go fix(handlers): make user banned message consistent (#2223) 2021-08-02 16:54:20 +10:00
handler_firstfactor_test.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_health.go [FEATURE] Create dedicated health endpoint (#1489) 2020-11-25 10:20:52 +11:00
handler_logout.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_logout_test.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
handler_oidc_authorization.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
handler_oidc_consent.go feat(oidc): add additional config options, accurate token times, and refactoring (#1991) 2021-07-04 09:44:30 +10:00
handler_oidc_introspection.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
handler_oidc_jwks.go feat(oidc): add additional config options, accurate token times, and refactoring (#1991) 2021-07-04 09:44:30 +10:00
handler_oidc_revocation.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
handler_oidc_token.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
handler_oidc_userinfo.go feat(oidc): userinfo endpoint (#2146) 2021-07-10 14:56:33 +10:00
handler_oidc_wellknown.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
handler_register_totp.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_register_u2f_step1.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_register_u2f_step1_test.go build(deps): update module github.com/golang-jwt/jwt to v4 (#2235) 2021-08-04 07:38:07 +10:00
handler_register_u2f_step2.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_reset_password_step1.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_reset_password_step2.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_sign_duo.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_sign_duo_test.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
handler_sign_totp.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_sign_totp_test.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
handler_sign_u2f_step1.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_sign_u2f_step1_test.go [MISC] Fixed typo in X-Forwarded headers (#1280) 2020-08-21 11:15:20 +10:00
handler_sign_u2f_step2.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_sign_u2f_step2_test.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
handler_state.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
handler_state_test.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
handler_user_info.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
handler_user_info_test.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
handler_verify.go feat(configuration): replace viper with koanf (#2053) 2021-08-03 19:55:21 +10:00
handler_verify_test.go fix(handlers): handle xhr requests to /api/verify with 401 (#2189) 2021-07-22 13:52:37 +10:00
oidc.go feat(oidc): add additional config options, accurate token times, and refactoring (#1991) 2021-07-04 09:44:30 +10:00
oidc_register.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +10:00
oidc_test.go feature(oidc): add support for OpenID Connect 2021-05-05 00:15:36 +02:00
response.go fix: oidc issuer path and strip path middleware (#2272) 2021-08-10 10:31:08 +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: user is now redirected when authenticated (#2082) 2021-08-02 16:15:38 +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