From 0f73d882363d1d5adb2bcf464f55339614947ff2 Mon Sep 17 00:00:00 2001 From: Dominik Frantisek Bucik Date: Mon, 4 Apr 2022 08:45:23 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Remove=20RelayState=20fro?= =?UTF-8?q?m=20SAML=20details=20in=20SavedUserAuth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cz/muni/ics/oauth2/model/SamlAuthenticationDetails.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/perun-oidc-server/src/main/java/cz/muni/ics/oauth2/model/SamlAuthenticationDetails.java b/perun-oidc-server/src/main/java/cz/muni/ics/oauth2/model/SamlAuthenticationDetails.java index 504787198..66e6dbf1d 100644 --- a/perun-oidc-server/src/main/java/cz/muni/ics/oauth2/model/SamlAuthenticationDetails.java +++ b/perun-oidc-server/src/main/java/cz/muni/ics/oauth2/model/SamlAuthenticationDetails.java @@ -29,7 +29,6 @@ import org.springframework.util.StringUtils; @AllArgsConstructor public class SamlAuthenticationDetails { - public static final String RELAY_STATE = "relayState"; public static final String LOCAL_ENTITY_ID = "localEntityId"; public static final String REMOTE_ENTITY_ID = "remoteEntityId"; public static final String ATTRIBUTES = "attributes"; @@ -37,14 +36,12 @@ public class SamlAuthenticationDetails { public static final String AUTHN_CONTEXT_CLASS_REF = "authnContextClassRef"; public static final String AUTHENTICATING_AUTHORITIES = "authenticatingAuthorities"; - private String relayState; private String remoteEntityID; private String localEntityID; private Map attributes; private List authnStatements; public SamlAuthenticationDetails(SAMLCredential samlCredential) { - this.relayState = samlCredential.getRelayState(); this.remoteEntityID = samlCredential.getRemoteEntityID(); this.localEntityID = samlCredential.getLocalEntityID(); this.attributes = processAttributes(samlCredential); @@ -104,7 +101,6 @@ public class SamlAuthenticationDetails { } JsonObject json = (JsonObject) JsonParser.parseString(strJson); SamlAuthenticationDetails details = new SamlAuthenticationDetails(); - details.setRelayState(getStringOrNull(json.get(RELAY_STATE))); details.setRemoteEntityID(getStringOrNull(json.get(REMOTE_ENTITY_ID))); details.setLocalEntityID(getStringOrNull(json.get(LOCAL_ENTITY_ID))); @@ -144,7 +140,6 @@ public class SamlAuthenticationDetails { return null; } JsonObject object = new JsonObject(); - addStringOrNull(object, RELAY_STATE, o.getRelayState()); addStringOrNull(object, LOCAL_ENTITY_ID, o.getLocalEntityID()); addStringOrNull(object, REMOTE_ENTITY_ID, o.getRemoteEntityID()); JsonObject attrs = new JsonObject();