@@ -608,14 +608,16 @@ oauthConfig:
608
608
challengeURL: "https://www.example.com/challenging-proxy/oauth/authorize?${query}" <5>
609
609
loginURL: "https://www.example.com/login-proxy/oauth/authorize?${query}" <6>
610
610
clientCA: /path/to/client-ca.file <7>
611
- headers: <8>
611
+ clientCommonNames: <8>
612
+ - my-auth-proxy
613
+ headers: <9>
612
614
- X-Remote-User
613
615
- SSO-User
614
- emailHeaders: <9 >
616
+ emailHeaders: <10 >
615
617
- X-Remote-User-Email
616
- nameHeaders: <10 >
618
+ nameHeaders: <11 >
617
619
- X-Remote-User-Display-Name
618
- preferredUsernameHeaders: <11 >
620
+ preferredUsernameHeaders: <12 >
619
621
- X-Remote-User-Login
620
622
----
621
623
<1> This provider name is prefixed to the user name in the request header to
@@ -639,13 +641,17 @@ replaced with the current query string.
639
641
<7> Optional: PEM-encoded certificate bundle. If set, a valid client certificate
640
642
must be presented and validated against the certificate authorities in the
641
643
specified file before the request headers are checked for user names.
642
- <8> Header names to check, in order, for the user identity. The first header containing
644
+ <8> Optional: list of common names (`cn`). If set, a valid client certificate with
645
+ a Common Name (`cn`) in the specified list must be presented before the request headers
646
+ are checked for user names. If empty, any Common Name is allowed. Can only be used in combination
647
+ with `clientCA`.
648
+ <9> Header names to check, in order, for the user identity. The first header containing
643
649
a value is used as the identity. Required, case-insensitive.
644
- <9 > Header names to check, in order, for an email address. The first header containing
650
+ <10 > Header names to check, in order, for an email address. The first header containing
645
651
a value is used as the email address. Optional, case-insensitive.
646
- <10 > Header names to check, in order, for a display name. The first header containing
652
+ <11 > Header names to check, in order, for a display name. The first header containing
647
653
a value is used as the display name. Optional, case-insensitive.
648
- <11 > Header names to check, in order, for a preferred user name, if different than the immutable
654
+ <12 > Header names to check, in order, for a preferred user name, if different than the immutable
649
655
identity determined from the headers specified in `headers`. The first header containing
650
656
a value is used as the preferred user name when provisioning. Optional, case-insensitive.
651
657
====
0 commit comments