Skip to content

Commit

Permalink
Merge branch 'ext_auth_secure_user' into '5.12.z'
Browse files Browse the repository at this point in the history
Fixes an issue with external authentication for API requests

See merge request cloudforms/cfme-pods!2

(cherry picked from commit 8fdfe31)
  • Loading branch information
Fryguy committed Aug 7, 2020
1 parent 9a4e36a commit aeae78d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manageiq-operator/pkg/helpers/miq-components/httpd_conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ OIDCOAuthIntrospectionEndpointAuth client_secret_post
</Location>
%s
RequestHeader unset X-REMOTE-USER
RequestHeader unset X-REMOTE_USER
RequestHeader unset X_REMOTE-USER
RequestHeader unset X_REMOTE_USER
RequestHeader set X_REMOTE_USER %%{OIDC_CLAIM_PREFERRED_USERNAME}e env=OIDC_CLAIM_PREFERRED_USERNAME
Expand Down Expand Up @@ -350,6 +353,9 @@ func httpdAuthLookupUserDetailsConf() string {

func httpdAuthRemoteUserConf() string {
return `
RequestHeader unset X-REMOTE-USER
RequestHeader unset X-REMOTE_USER
RequestHeader unset X_REMOTE-USER
RequestHeader unset X_REMOTE_USER
RequestHeader set X_REMOTE_USER %{REMOTE_USER}e env=REMOTE_USER
Expand Down

0 comments on commit aeae78d

Please sign in to comment.