sailpoint-oss / developer.sailpoint.com

The codebase that makes up developer.sailpoint.com, including developer documentation. This codebase is open source and welcomes contributions.
https://developer.sailpoint.com
MIT License
32 stars 85 forks source link

add information on how to compute the field encryptedPassword for 'Set Identity's Password' (set-password) #115

Closed yannick-beot-sp closed 1 year ago

yannick-beot-sp commented 2 years ago

At this moment, there is no information on how to compute the field encryptedPasswordof the payload for set-password. There might be some example on how to compute this with openssl for instance, a widely used tool.

For instance, on Linux:

echo -n "SuperStrongP@ssw0rd" |  openssl rsautl -encrypt -pubin -inkey pub.pem  | base64 -w 0

echo -n to prevent a newline at the end. base64 -w 0 to have no wrapping. pub.pem is the public key returns by the query-password-info endpoint.

colin-mckibben-sp commented 2 years ago

Another user reported having to wrap the key with

-----BEGIN PUBLIC KEY----- -----END PUBLIC KEY-----

to get openssl to take it.

jordan-violet-sp commented 1 year ago

Fixed in docs now: https://developer.sailpoint.com/idn/api/v3/set-password