JAVA/Android: How do I request SAMLResponse header from final redirect URL using HTTP?

Answered

Comments

3 comments

  • Avatar
    Sixto Garcia

    Hi,

    You will need to send an AuthNRequest to the IdP's SSO endpoint and it will reply a SAMLResponse to the SP's Assertion Consumer service endpoint (in most of the cases replied under the HTTP-POST binding, so you will need to read the POST data).

    On that page I see examples of the use of HttpUrlConnection that should help you.

    In order to manage the SAMLResponse later, you can use our java-saml toolkit. Take a look on that SamlResponse.java file that parse and validates a SAMLResponse.

    0
    Comment actions Permalink
  • Avatar
    Ray Coleman

    Thanks for the response!  I think my issue is that I'm not certain what parameter I need to use to retrieve the SAMLResponse.

    0
    Comment actions Permalink
  • Avatar
    Stephen Johnson

    The parameter is SAMLResponse and you did everything right. 
    Android can't see POST, it is known bug 155250 in the Google issue log.

    0
    Comment actions Permalink

Please sign in to leave a comment.