#pingid-php-scripts
Collection of sample PHP scripts to demonstrate the PingID User Management API.
Requires:
- PingOne account with PingID service enabled (visit Ping Identity Developer Site to get a developer account)
- Enable 3rd-party Client Integration in the PingOne Admin Web GUI (Setup -> PingID -> Client Integration -> Third-party Clients -> Enable).
- Download the
pingid.properties
file from PingOne (Setup -> PingID -> Client Integration -> Settings File -> Download) and put in in the scripts directory. - Execute the scripts from your command line i.e.
php getUserDetails.php jsmith
1a. Enroll user with mobile device
php addUser jdoe John Doe hzandbelt+johndoe@pingidentity.com
pickup pairing key or QR code URL from outputphp getUserDetails.php jdoe
1b. Add e-mail OTP
php startOfflinePairing.php jdoe EMAIL hzandbelt+johndoe@pingidentity.com
php finalizeOfflinePairing.php <session-id> <otp>
2a. Enroll user with e-mail OTP
php addUser.php jdoe John Doe hzandbelt+johndoe@pingidentity.com false
php startOfflinePairing.php jdoe EMAIL hzandbelt+johndoe@pingidentity.com
php finalizeOfflinePairing.php <session-id> <otp>
2b. Add mobile device later
php getActivationCode.php jdoe
pickup pairing key or QR code URL from outputphp getPairingStatus.php <activation-code>
This software is open sourced by Ping Identity but not supported commercially as such. Any questions/issues should go to the Github issues tracker or discuss on the Ping Identity developer communities . See also the DISCLAIMER file in this directory.