Skip to content

Commit 04e7829

Browse files
committed
Set policy format directly from GAM
1 parent 6ebd469 commit 04e7829

File tree

2 files changed

+1
-90
lines changed

2 files changed

+1
-90
lines changed

gamsaml20/src/main/java/com/genexus/saml20/utils/PolicyFormat.java

Lines changed: 0 additions & 87 deletions
This file was deleted.

gamsaml20/src/main/java/com/genexus/saml20/utils/SamlAssertionUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public static Document createLoginRequest(String id, String destination, String
105105
String samlp = "urn:oasis:names:tc:SAML:2.0:protocol";
106106
String saml = "urn:oasis:names:tc:SAML:2.0:assertion";
107107

108-
PolicyFormat pf = PolicyFormat.getPolicyFormat(policyFormat);
109108

110109
DocumentBuilder builder = createDocumentBuilder();
111110

@@ -126,8 +125,7 @@ public static Document createLoginRequest(String id, String destination, String
126125
request.appendChild(issuerElem);
127126

128127
org.w3c.dom.Element policy = doc.createElementNS(samlp, "saml2p:NameIDPolicy");
129-
assert pf != null;
130-
policy.setAttribute("Format", PolicyFormat.getPolicyFormatXmlValue(pf));
128+
policy.setAttribute("Format", policyFormat.trim());
131129
policy.setAttribute("AllowCreate", "true");
132130
policy.setAttribute("SPNameQualifier", spname);
133131
request.appendChild(policy);

0 commit comments

Comments
 (0)