[java-idp-oidc] 09/44: JOIDC-5 Removes any previously set Authorization header before setting a new one.
Henri Mikkonen
henri.mikkonen at iki.fi
Thu Oct 22 13:08:21 UTC 2020
This is an automated email from the git hooks/post-receive script.
hjmikkon pushed a commit to branch main
in repository java-idp-oidc.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-oidc.git;a=commit;h=dd7d4cb1ca9b8e8e5e1a90e0bea8d936ae98a62a
commit dd7d4cb1ca9b8e8e5e1a90e0bea8d936ae98a62a
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Apr 24 14:07:54 2020 +0300
JOIDC-5 Removes any previously set Authorization header before setting a new one.
https://issues.shibboleth.net/jira/browse/JOIDC-5
---
.../org/geant/idpextension/oidc/profile/flow/AbstractOidcFlowTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AbstractOidcFlowTest.java b/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AbstractOidcFlowTest.java
index d326731b..6ca573a5 100644
--- a/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AbstractOidcFlowTest.java
+++ b/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AbstractOidcFlowTest.java
@@ -135,6 +135,7 @@ public abstract class AbstractOidcFlowTest extends AbstractFlowTest {
}
protected void setBasicAuth(final String username, final String password) {
+ request.removeHeader("Authorization");
request.addHeader("Authorization",
"Basic " + new String(Base64.encodeBase64(new String(username + ":" + password).getBytes())));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list