samlsamplespproxy-rev1-2017-06-07.zipI am implementing use case given in ‘SAML Assertion Policies Study - Google Cloud Community’. When testing I am getting error ‘Invalid media type’. I did below steps.
1)I have created a certificate ‘mockserverKeyrstore’ using open ssl.
2)Created a keystore ‘mockserverKeystore’ and added above certificate.
3)Created proxies ‘SAMLsampleIdPproxy’(generate SAML assertions and prepare key) and ‘SAMLsampleSPproxy’(validate access token) as API products.
4)Created app ‘SAMLAPP’ and added above API products. I got consumer key and secret code.
5)Tested proxy with url ‘http://apitechbasics-prod.apigee.net/samlsampleidpproxy/GenerateIdPToken?response_type=token&redirection_uri=http://localhost:2999&client_id=4hCaENG9MyJL08T3aOQaLImj8TnlxCKA’
I am getting error ‘Invalid media type’.
To explain more about this sample there are two proxies ‘SAMLsampleIdPproxy’ is to generate SAML assertions by looking into keystore and generate OAuth token ‘OAuthV2’ grant type ‘GenerateAccessTokenImplicitGrant’ ,but while testing proxy is throwing error.
Attaching certificate and proxy codes.samlsampleidpproxy-rev1-2017-06-07.zip