Does Pega 7.2.2 support consuming REST services using OAuth 2.0?
I am trying to configure Pega to consume some REST services from an external application, which is using OAuth 2.0. We are provided with a certificate and was told that the Web API is using Certificate Authentication.
When filling up the form, I am not able fill in the required parameter of "Identifier*" and "Secret*":
May I know if Pega 7.2.2 supports Certificate Authentication? i.e. we just pass across the certificate to authenticate? The following is the sample code provided to us:
Sample code snippet from C# on how client calls to get the token:
//TokenURL will be your API for us to authenticate and get the token
var httpRequest = (HttpWebRequest)WebRequest.Create(TokenURL);
The certificate-based authentication is supported in OAuth using custom grant types.
And the request you mentioned sets grant_type as grant_type=certificate is not supported by Pega.
We could support it in future and have to add it to our roadmap.
Please note that we have the plan for supporting certificate-based authentication for Pega hosted REST services but the scenario you have mentioned deals with the Consumer side i.e Pega acting as an OAuth client.
Till the support is provided OOTB you could try using Connect REST and add post data name value pair to get this working.
I will let our product management know about this for prioritization.