Coding steps-Ping Federate, tokens, then finally the RestClient
Dear Pega,
I am coding this solution in Pega RDA 19.1. I need to understand the general coding commands, and the Pega objects I will use to code the following. My co-worker gave me the first 7 steps he is doing in Java. I must replicate this:
- Make an initial GET call to Ping Federate to get the flow id.
- Using the flow id, make a GET call to Ping Federate to get the current state of the flow (at this point, it should be “USERNAME_PASSWORD_REQUIRED”).
- Make a POST call to Ping Federate to the flow, passing in the service account username and password.
- Make a GET call to Ping Federate to the resume endpoint, using the flow id. This should give you an access code.
- Make a POST call to Ping Federate to the token endpoint, using the access code. This will give you both the JWT token and a Refresh token.
- Make a POST call to Ping Federate to the WS02 gateway, using the JWT token. This will give you a WS02 token.
- Use the WS02 token when calling the REST service.
- And finally I will be using RestClient to call the needed api sending it the token from 7.
Please advise. Code references or examples greatly appreciated.
Thanks, Tom
***Edited by Moderator Marissa to change type from General to Product, update Platform Capability tags****