1 Reply Latest reply: Jul 16, 2012 3:28 PM by SagarChoudhary RSS

    How to check a status success in an SAML 2.0 response


      in SAML 1.0 response , we could check the status as follows (where statusCode = oracle.security.xmlsec.samlp.StatusCode) :

      QName statusCodeValue = statusCode.getStatusCodeValue();
      if (StatusCode.SUCCESS.equals(statusCodeValue.getLocalPart()) { .....

      Now in SAML 2.0 libraries, we don't see the static var StatusCode.SUCCESS anymore....

      do we have to define it ourselves as "Success" ? or how can we check if the returning saml 2.0 response is successful ?

      I found following var : SAMLURI.statusCodes_top_level_SUCCESS which has the value "urn:oasis:names:tc:SAML:2.0:status:Success"

      but I'm not quit sure against what field i should compare this. perhaps the StatusCode.getValue ?

      Edited by: noechri on 16-jul-2012 7:38