This directory contains routes and scripts that enable communication between PingAM and PingGateway, specifically for the Google Chrome Device Trust node.
Follow this quick setup guide to test the functionality.
PingGateway Redirect Routes Setup:
- Install PingGateway
- Configure the
admin.json
file to run PingGateway on ports 9090 / 9443 - Store the JSON route files inside the routes directory
- E.g.
/Users/your-username/.openig/config/routes
- E.g.
- Store the groovy script inside the groovy directory
- E.g.
/Users/your-username/.openig/scripts/groovy
- If you do not have a
groovy
directory create one
- If you do not have a
- E.g.
Simplified Explanation:
- The 1st route (
generate_challenge.json
) makes an API call to Google to generate the challenge- This route makes the API call by running the
getChallenge.groovy
script
- This route makes the API call by running the
- The 1st route then redirects to the 2nd route (
challengeresponse.json
) and performs the following:- Retrieves the challenge response value
- Puts the challenge inside the redirect URL as a query parameter
- Redirects back to PingAM
Tips:
- Open the
generate_challenge.json
route and check thecondition
field. Make sure this matches your current PingAM version. - Open the
challengeresponse.json
route and swap out thelocation
redirect URL to match your desired location.- Do not remove the
challengeresponse
query parameter at the end of the redirect.
- Do not remove the