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

null pointer being thrown in no.steras.opensamlbook.OpenSAMLUtils.buildSAMLObject(Class<T>) #1

Open
scanlonjts opened this issue Nov 2, 2014 · 5 comments

Comments

@scanlonjts
Copy link

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!

@rasmusson
Copy link
Owner

Do you get this when you run my project or is this your own code?

@scanlonjts
Copy link
Author

Minor modification made to IDPConstants (new URL for our IDP)
Minor modifcation to SPCredentials - updated keystore / password and alias

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
F: 1-941-296-7907
E: joe.scanlon@allstar-it.com mailto:joe.scanlon@allstar-it.com

CONFIDENTIALITY NOTICE: This email message (including attachments) contains information which may be confidential and/or legally privileged.
Unless you are the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message or from any attachments that were sent with this email, and If you have received this email message in error, please advise the sender by email, and delete the message.

Unauthorized disclosure and/or use of information contained in this email may result in civil and criminal liability

On Nov 2, 2014, at 11:19 AM, Stefan Rasmusson notifications@github.com wrote:

Do you get this when you run my project or is this your own code?


Reply to this email directly or view it on GitHub #1 (comment).

@scanlonjts
Copy link
Author

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
not SamlArt

Joe Scanlon

M: 603.459.3242
F: 1-941-296-7907
E: joe.scanlon@allstar-it.com mailto:joe.scanlon@allstar-it.com

CONFIDENTIALITY NOTICE: This email message (including attachments) contains information which may be confidential and/or legally privileged.
Unless you are the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message or from any attachments that were sent with this email, and If you have received this email message in error, please advise the sender by email, and delete the message.

Unauthorized disclosure and/or use of information contained in this email may result in civil and criminal liability

On Nov 2, 2014, at 11:19 AM, Stefan Rasmusson notifications@github.com wrote:

Do you get this when you run my project or is this your own code?


Reply to this email directly or view it on GitHub #1 (comment).

@rasmusson
Copy link
Owner

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

@kasi1323
Copy link

kasi1323 commented Feb 8, 2019

I have Base64 encoded SAML Response, how can i extract attributes in this approach?
Recently i had gone through your book OpenSAML v3 . Unfortunately I did not find anywhere how to extract attributes if Protocol binding is HTTP POST. can anyone direct me?

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

3 participants