You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2024/10/17 15:51:59 UTC

(sling-whiteboard) 01/02: fix(oidc-rp): fix broken IT

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit b00c9dc5489904a2fb39ac6707864335b4322d6b
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Oct 17 17:45:02 2024 +0200

    fix(oidc-rp): fix broken IT
    
    When we receive a state parameter we validate that it matches the state sent by the client.
---
 .../java/org/apache/sling/servlets/oidc_rp/AuthorizationCodeFlowIT.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org.apache.sling.servlets.oidc-rp/src/test/java/org/apache/sling/servlets/oidc_rp/AuthorizationCodeFlowIT.java b/org.apache.sling.servlets.oidc-rp/src/test/java/org/apache/sling/servlets/oidc_rp/AuthorizationCodeFlowIT.java
index b825efd1..b4ac0f3a 100644
--- a/org.apache.sling.servlets.oidc-rp/src/test/java/org/apache/sling/servlets/oidc_rp/AuthorizationCodeFlowIT.java
+++ b/org.apache.sling.servlets.oidc-rp/src/test/java/org/apache/sling/servlets/oidc_rp/AuthorizationCodeFlowIT.java
@@ -220,7 +220,7 @@ class AuthorizationCodeFlowIT {
             .collect(Collectors.toList());
         
         List<Header> headers = new ArrayList<>();
-        headers.add(new BasicHeader("Cookie", "oauth-cookie=" + oauthRequestKey));
+        headers.add(new BasicHeader("Cookie", "sling.oauth-request-key=" + oauthRequestKey));
         sling.doGet(redirectUri.getRawPath(), params, headers, 200);
         
         JsonNode keycloakToken = sling.doGetJson(userPath + "/oauth-tokens/" + oidcConnectionName,0,  200);