HI all,
I am new to the concept of SAML Authentication/Authorization, i tried creating a simple No Target API proxy which will generate a SAML Token and send it as a response to the client. But when i tried creating one and tried tracing the API Proxy, i get the below error.
{"fault":{"faultstring":"GenerateSAMLAssertion[Generate_SAML]: Error transforming assertion into message.","detail":{"errorcode":"steps.saml.generate.ErrorUpdatingPayload"}}}
Steps which i followed in creating the proxy are:
-
Created a Self Signed Certifcate and uploaded it to key store
-
Created a No Target Proxy
a. Added a “Generate SAML Assertion” at the Post Flow, below is the SAML Policy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GenerateSAMLAssertion ignoreContentType="true" name="Generate_SAML">
<DisplayName>Generate_SAML</DisplayName>
<CanonicalizationAlgorithm/>
<KeyStore>
<Name>my_keystore_name</Name>
<Alias>my_keystore_alias_name</Alias>
</KeyStore>
<Subject>ApigeeUser</Subject>
<Issuer>Apigee</Issuer>
<SignatureAlgorithm/>
<!-- <Template ignoreUnresolvedVariables="false"></Template>-->
<OutputVariable>
<Message name="message">
<Namespaces>
<Namespace prefix="test">http://www.example.com/test</Namespace>
</Namespaces>
<XPath>/envelope/header</XPath>
</Message>
<FlowVariable name="assertion.content"/>
</OutputVariable>
</GenerateSAMLAssertion>