Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Use correct eppn header value for docker env
Browse files Browse the repository at this point in the history
  • Loading branch information
birkland committed Apr 26, 2019
1 parent caa220c commit 23f1442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/pass-policy-service/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestFedoraIntegration(t *testing.T) {
func invokePolicyService(t *testing.T, client web.Requester, endpoint string, submission string) []byte {

get, _ := http.NewRequest(http.MethodGet, policyServiceURI()+endpoint+"?submission="+url.QueryEscape(submission), nil)
get.Header.Set("Eppn", "[email protected]")
get.Header.Set("Ajp_eppn", "[email protected]")

resp, err := client.Do(get)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion policies/docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"conditions": [
{
"endsWith": {
"@johnshopkins.edu": "${header.Eppn}"
"@johnshopkins.edu": "${header.Ajp_eppn}"
}
}
],
Expand Down

0 comments on commit 23f1442

Please sign in to comment.