-
Notifications
You must be signed in to change notification settings - Fork 16
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
null pointer being thrown in no.steras.opensamlbook.OpenSAMLUtils.buildSAMLObject(Class<T>) #1
Comments
Do you get this when you run my project or is this your own code? |
Minor modification made to IDPConstants (new URL for our IDP) This is main method added into ‘consumer servlet’ to just test out error that I was seeing on response coming back (from our own IDP) Joe Scanlon M: 603.459.3242 CONFIDENTIALITY NOTICE: This email message (including attachments) contains information which may be confidential and/or legally privileged. Unauthorized disclosure and/or use of information contained in this email may result in civil and criminal liability
|
oh - forgot to mention this as well - it looks like the requestParameter name coming back has been updated in Saml2 --- looks like it is supposed to be: SAMLRequest Joe Scanlon M: 603.459.3242 CONFIDENTIALITY NOTICE: This email message (including attachments) contains information which may be confidential and/or legally privileged. Unauthorized disclosure and/or use of information contained in this email may result in civil and criminal liability
|
It sound like you are trying to send the response directly to the SP from the, IDP. The whole SAMLResponse is in the URL parameter, right? This app accepts artifacts that is then exchanged for a SAML response over SOAP |
I have Base64 encoded SAML Response, how can i extract attributes in this approach? |
Sample code:
String responseStr = "largeB64EndodedStrhere";
Base64 decoder = new Base64();
byte[] thebytes = decoder.decode(responseStr);
logger.info(new String(thebytes));
Artifact artifact = OpenSAMLUtils.buildSAMLObject(Artifact.class);
Exception in thread "main" java.lang.NullPointerException
at no.steras.opensamlbook.OpenSAMLUtils.buildSAMLObject(OpenSAMLUtils.java:48)
at no.steras.opensamlbook.sp.ConsumerServlet.main(ConsumerServlet.java:262)
btw: I bought your book! Very well put written and helpful!
The text was updated successfully, but these errors were encountered: