Question

2
Replies
50
Views
ThomasO0 Member since 2016 7 posts
Union Bank
Posted: August 14, 2020
Last activity: September 1, 2020

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:

  1. Make an initial GET call to Ping Federate to get the flow id.
  2. 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”).
  3. Make a POST call to Ping Federate to the flow, passing in the service account username and password.
  4. Make a GET call to Ping Federate to the resume endpoint, using the flow id. This should give you an access code.
  5. 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.
  6. Make a POST call to Ping Federate to the WS02 gateway, using the JWT token. This will give you a WS02 token.
  7. Use the WS02 token when calling the REST service.
  8. 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****

Pega Robotic Desktop Automation 19.1 Robotic Process Automation
Share this page LinkedIn