oauth2-proxy/pkg/apis
Segfault16 965fab422d
Add API route config (#1760)
* Add API route config

In addition to requests with Accept header `application/json` return 401 instead of 302 to login page on requests matching API paths regex.

* Update changelog

* Refactor

* Remove unnecessary comment

* Reorder checks

* Lint Api -> API

Co-authored-by: Sebastian Halder <sebastian.halder@boehringer-ingelheim.com>
2022-09-11 16:09:32 +01:00
..
ip Move RealClientIP code to IP packages 2020-05-23 15:17:41 +01:00
middleware Add groups to session too when creating session from token 2022-03-12 18:01:57 +02:00
options Add API route config (#1760) 2022-09-11 16:09:32 +01:00
sessions Remove finicky encryption test 2021-07-01 19:03:01 -07:00