Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get SAMLAssertion from SAMLResponse using java code? #84

Closed
ghost opened this issue Apr 10, 2015 · 3 comments
Closed

How to get SAMLAssertion from SAMLResponse using java code? #84

ghost opened this issue Apr 10, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 10, 2015

No description provided.

@ploer
Copy link
Contributor

ploer commented Apr 10, 2015

This is a javascript library, so hopefully you meant javascript rather than java. :-)

If you are just looking for something that can help with arbitrary parsing tasks for saml documents, this probably isn't it. This library is really designed to be a little higher level than that.

But if you'd like to provide some more details on what you're trying to do, I'm happy to take a look and suggest any bits from this library that might be reusable.

@ploer ploer closed this as completed Apr 10, 2015
@ghost
Copy link
Author

ghost commented Apr 10, 2015

I was looking java code (basically - decoding code) which can retrieves from the string. I am able to retrieves it but when I am sending SAMLAssertion to WSO2 IdP (Identity Provider) it gives me following error, looking to track it but not sure about the reason of failure

ERROR {org.wso2.carbon.identity.oauth2.token.handlers.grant.saml.SAML2BearerGrantHandl‌​‌​er} - Error in constructing XML Object from the encoded String {org.wso2.carbon.identity.oauth2.token.handlers.grant.saml.SAML2BearerGrantHandl‌​‌​er} org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

@ploer
Copy link
Contributor

ploer commented Apr 10, 2015

Sorry, that doesn't sound to me like it has anything to do with this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant