Hello Mate,
I am trying to generate jwt with no success...below are the details.
{
"fault": {
"faultstring": "Failed to parse key: policy(Generate-JWT-RS256)",
"detail": {
"errorcode": "steps.jwt.KeyParsingFailed"
}
}
}
policy:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GenerateJWT name="Generate-JWT-RS256" enabled="true" continueOnError="false">
<Algorithm>RS256</Algorithm>
<PrivateKey>
<Value ref="private.privatekey"/>
<Id>private_key</Id>
</PrivateKey>
<Id/>
<!-- this tells Apigee to generate a unique identifier -->
<Subject>Salesforce JWT for Oauth Token</Subject>
<!-- you can use ref= for the issuer as well -->
<Issuer ref="JWT_Issuer"/>
<Audience ref="JWT_Audience"/>
<ExpiresIn ref="JWT_ExpiresIn"/>
<AdditionalClaims>
<Claim name="prn" ref="JWT_prn"/>
</AdditionalClaims>
<OutputVariable>output-jwt</OutputVariable>
<DisplayName>Generate-JWT-RS256</DisplayName>
</GenerateJWT>
could you please suggest what is wrong..