oauth2-proxy/pkg
Alexandru Ciobanu 037cb041d3
Watch the `htpasswd` file for changes and update the `htpasswdMap` (#1701)
* dynamically update the htpasswdMap based on the changes made to the htpasswd file

* added tests to validate that htpasswdMap is updated after the htpasswd file is changed

* refactored `htpasswd` and `watcher` to lower cognitive complexity

* returned errors and refactored tests

* added `CHANGELOG.md` entry for #1701 and fixed the codeclimate issue

* Apply suggestions from code review

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

* Fix lint issue from code suggestion

* Wrap htpasswd load and watch errors with context

* add the htpasswd wrapped error context to the test

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
2022-09-01 19:46:00 +01:00
..
apis Inconsistent code-challenge-method CLI flag and config file naming (#1766) 2022-09-01 10:58:43 +01:00
app added tests for basic auth alert message feature 2022-06-30 18:11:43 +03:00
authentication/basic Watch the `htpasswd` file for changes and update the `htpasswdMap` (#1701) 2022-09-01 19:46:00 +01:00
clock Remove mutex from local Clock instances 2021-06-22 17:04:42 -07:00
cookies Add flags to define CSRF cookie expiration time and to allow CSRF cookies per request (#1708) 2022-08-31 23:27:56 +01:00
encryption PKCE Support (#1541) 2022-03-13 10:08:33 +00:00
header Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
http Added ability to specify allowed TLS cipher suites. 2022-08-31 17:55:06 -07:00
ip Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00
logger Request ID Logging (#1087) 2021-03-21 18:20:57 +00:00
middleware Implement refresh relying on obtaining lock 2022-02-16 10:16:13 +00:00
providers Discover signature algorithms from OIDC provider (#1662) 2022-05-29 13:48:09 +01:00
requests Create AppDirector for getting the application redirect URL 2021-06-19 11:23:32 +01:00
sessions adding IdleTimeout with the redis-connection-idle-timeout flag, to ke… (#1691) 2022-08-09 21:57:13 +01:00
upstream Implement configurable timeout for upstream connections 2022-05-18 11:41:17 +01:00
util Fix method deprecated error in lint (#1699) 2022-08-08 23:18:29 +01:00
validation PKCE Support (#1541) 2022-03-13 10:08:33 +00:00
watcher Watch the `htpasswd` file for changes and update the `htpasswdMap` (#1701) 2022-09-01 19:46:00 +01:00