File tree Expand file tree Collapse file tree
src/main/java/com/onelogin/saml2/authn
samples/java-saml-tookit-jspsample/src/main/webapp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 <groupId >org.apache.santuario</groupId >
6262 <artifactId >xmlsec</artifactId >
6363 <version >2.2.0</version >
64+ <version >2.1.5</version >
6465 </dependency >
6566 <dependency >
6667 <groupId >commons-codec</groupId >
117118 <configuration >
118119 <rules >
119120 <evaluateBeanshell >
120- <condition >javax.crypto.Cipher.getMaxAllowedKeyLength("AES") > 128</condition >
121+ <condition >javax.crypto.Cipher.getMaxAllowedKeyLength("AES") > 128</condition >
121122 </evaluateBeanshell >
122123 </rules >
123124 </configuration >
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ private StrSubstitutor generateSubstitutor(Saml2Settings settings) {
224224 valueMap .put ("issueInstant" , issueInstantString );
225225 valueMap .put ("id" , String .valueOf (id ));
226226 valueMap .put ("assertionConsumerServiceURL" , String .valueOf (settings .getSpAssertionConsumerServiceUrl ()));
227+ valueMap .put ("protocolBinding" , settings .getSpAssertionConsumerServiceBinding ());
227228 valueMap .put ("spEntityid" , settings .getSpEntityId ());
228229
229230 String requestedAuthnContextStr = "" ;
@@ -247,7 +248,7 @@ private StrSubstitutor generateSubstitutor(Saml2Settings settings) {
247248 */
248249 private static StringBuilder getAuthnRequestTemplate () {
249250 StringBuilder template = new StringBuilder ();
250- template .append ("<samlp:AuthnRequest xmlns:samlp=\" urn:oasis:names:tc:SAML:2.0:protocol\" xmlns:saml=\" urn:oasis:names:tc:SAML:2.0:assertion\" ID=\" ${id}\" Version=\" 2.0\" IssueInstant=\" ${issueInstant}\" ${providerStr}${forceAuthnStr}${isPassiveStr}${destinationStr} ProtocolBinding=\" urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST \" AssertionConsumerServiceURL=\" ${assertionConsumerServiceURL}\" >" );
251+ template .append ("<samlp:AuthnRequest xmlns:samlp=\" urn:oasis:names:tc:SAML:2.0:protocol\" xmlns:saml=\" urn:oasis:names:tc:SAML:2.0:assertion\" ID=\" ${id}\" Version=\" 2.0\" IssueInstant=\" ${issueInstant}\" ${providerStr}${forceAuthnStr}${isPassiveStr}${destinationStr} ProtocolBinding=\" ${protocolBinding} \" AssertionConsumerServiceURL=\" ${assertionConsumerServiceURL}\" >" );
251252 template .append ("<saml:Issuer>${spEntityid}</saml:Issuer>" );
252253 template .append ("${subjectStr}${nameIDPolicyStr}${requestedAuthnContextStr}</samlp:AuthnRequest>" );
253254 return template ;
Original file line number Diff line number Diff line change 1919 }
2020 String nameidNameQualifier = null ;
2121 if (session. getAttribute(" nameidNameQualifier" ) != null ) {
22- nameIdFormat = session. getAttribute(" nameidNameQualifier" ). toString();
22+ nameidNameQualifier = session. getAttribute(" nameidNameQualifier" ). toString();
2323 }
2424 String nameidSPNameQualifier = null ;
2525 if (session. getAttribute(" nameidSPNameQualifier" ) != null ) {
You can’t perform that action at this time.
0 commit comments