From 23f14428db57bfb7bb0f3f75b57b3e6cc347d8ad Mon Sep 17 00:00:00 2001 From: Aaron Birkland Date: Fri, 26 Apr 2019 11:23:23 -0400 Subject: [PATCH] Use correct eppn header value for docker env --- cmd/pass-policy-service/integration_test.go | 2 +- policies/docker.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/pass-policy-service/integration_test.go b/cmd/pass-policy-service/integration_test.go index 39df9ba..cef485d 100644 --- a/cmd/pass-policy-service/integration_test.go +++ b/cmd/pass-policy-service/integration_test.go @@ -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", "someone@johnshopkins.edu") + get.Header.Set("Ajp_eppn", "someone@johnshopkins.edu") resp, err := client.Do(get) if err != nil { diff --git a/policies/docker.json b/policies/docker.json index 25cc0eb..f3cedbe 100644 --- a/policies/docker.json +++ b/policies/docker.json @@ -28,7 +28,7 @@ "conditions": [ { "endsWith": { - "@johnshopkins.edu": "${header.Eppn}" + "@johnshopkins.edu": "${header.Ajp_eppn}" } } ],