SAML - Audience restriction and Signature check

Not applicable

Hi all, my question is how to implement on apigee an audience restriction and a signature check on SAML validation step.

Thanks

Cosimo

Solved Solved
0 5 601
1 ACCEPTED SOLUTION

yes thanks @Anil Sagar for the link,

Signature check is handled by the saml assertion policy - http://apigee.com/docs/api-services/reference/saml...

For audience restriction - you could do extract it using xpath and do the validation

Thanks,

View solution in original post

5 REPLIES 5

@Cosimo , Find similar question answered here. Please let us know if it resolves same.

yes thanks @Anil Sagar for the link,

Signature check is handled by the saml assertion policy - http://apigee.com/docs/api-services/reference/saml...

For audience restriction - you could do extract it using xpath and do the validation

Thanks,

Not applicable

Hi Mukundha, about signature check do you mean that is automtically verified or i have to implement some coding? Please let me know because trhought the online reference documentation i did'nt get.

Thanks

Cosimo

yes Cosimo, Signature is verified by the policy, no need for coding.

http://apigee.com/docs/api-services/reference/saml-assertion-policy#usage-validatesamlassertion

Not applicable

Yes, as a somewhat simple test, I did the following:

  1. I grabbed an unsigned saml response from here:https://www.samltool.com/generic_sso_res.php
  2. Generated a key and cert using openssl
  3. signed the saml assertion in step 1 using my key and cert from step 2 using this tool: https://www.samltool.com/sign_response.php
  4. uploaded the cert from step 2 to the apigee truststore
  5. configured the validate assertion policy to use the truststore in step 4
  6. used postman to post the signed saml response from step 3 to my proxy
  7. Successfully validated the saml response