Prepare SAML Authentication request using OpenSaml3.1.1
Surinaidu Majji
pioneer.suri at gmail.com
Tue Jun 9 01:55:22 EDT 2015
We are able to do idp upgrade (2.4 to 3.1.1) , and also we are able to
check status of IdP 3.1.1.(http://localhost:8080/idp/profile/status)
As we know 'IdP 2.4' was using OpenSaml2.6 and IdP 3.1.1 is using Opensaml
3.1.1,
*We have following queries with respect to OpenSAML 3.1.1*
A) An alternative API to be used in OpenSAML 3.1.1 for
"SecureRandomIdentifierGenerator"
A.1)Using Open SAML 2.6 Sample SessionID generation at SP(non shibboleth
SP Component) is given below ::
SecureRandomIdentifierGenerator generator = new
SecureRandomIdentifierGenerator();
sessionId=generator.generateIdentifier();
A.2)Using Open SAML 3.1.1 ???
B) How to send SAML Request using Open SAML 3.1.1
B.1)Using Open SAML 2.6 Sample SAML Request from SP(non shibboleth SP
Component) to Idp 2.4(Shibboleth component) is given below::
we call "getAuthnRequest()" method to
generate SAML Request (we are using SAML 2.6 )
private AuthnRequest getAuthnRequest(DateTime issueInstant,
Issuer issuer,
String consumerUrl, String
spUrl) {
AuthnRequestBuilder authRequestBuilder =
new AuthnRequestBuilder();
AuthnRequest authRequest =
authRequestBuilder
.buildObject("urn:oasis:names:tc:SAML:2.0:protocol",
"AuthnRequest", "samlp");
authRequest.setForceAuthn(new
Boolean(false));
authRequest.setIsPassive(new
Boolean(false));
authRequest.setIssueInstant(issueInstant);
authRequest
.setProtocolBinding("urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST");
authRequest.setAssertionConsumerServiceURL(consumerUrl);
authRequest.setIssuer(issuer);
authRequest.setAttributeConsumingServiceIndex(1);
return authRequest;
}
B.2)Using Open SAML 3.1.1 ???
Please suggest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150609/4c4ef37c/attachment.html>
More information about the users
mailing list