From cc788cf44e1116f2dff25bca534ef5078d911b1d Mon Sep 17 00:00:00 2001 From: Slawomir Dabek Date: Fri, 13 Jan 2017 18:35:37 +0100 Subject: [PATCH] KEYCLOAK-4222 Remove slash from state parameter --- .../java/org/keycloak/adapters/OAuthRequestAuthenticator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/OAuthRequestAuthenticator.java b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/OAuthRequestAuthenticator.java index 9f12420683..fe8dfdce51 100755 --- a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/OAuthRequestAuthenticator.java +++ b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/OAuthRequestAuthenticator.java @@ -196,10 +196,8 @@ public class OAuthRequestAuthenticator { return sslRedirectPort; } - protected static final AtomicLong counter = new AtomicLong(); - protected String getStateCode() { - return counter.getAndIncrement() + "/" + AdapterUtils.generateId(); + return AdapterUtils.generateId(); } protected AuthChallenge loginRedirect() {