Update the configuration for otpforgotpassword

put

/iam/admin/access/api/v1/config/otpforgotpassword

This REST API tells lets admin configure otpforgotpassword feature in OAM and whether the default login page has the link to the forgot password page. It also has the exact forgotpassword page url. Note that to enable this feature the OAAM needs to be enabled in OAM

Request

Body ()
The configuration for forgotpassword link request object
Root Schema : ConfigureForgotPasswordLinkRequest
Type: object
Show Source
  • This is the url path of the custom web pages deployed for look and feel changes for the otp forgot password applicaion.
  • This is the error level of the error that will be displayed to the user. Internal error level shows a detailed message to the end user. Valid values are internal and external and default value is internal.
  • This is the exact URL that the user will be taken to for changing his password. It can be local to OAM server
  • whether the forgot password URL is local to OAM server or at a different location.
  • This descibes the mode in which the otpchangepassword app will be presented to the user. The valid list of values are 1)email -- otp will be sent to the user's mail. 2)sms -- otp will be sent to user's mobile via sms. 3) userselectchallenge -- otp will be sent to user, based on user selecting one of masked display challenges. 4) userchoose -- otp will be sent to user, based on selection of email or sms keywords. 5)totp -- time based otp coming from application installed on user's device
Back to Top

Response

Supported Media Types

200 Response

The OTP forgot password configuration is updated successfully
Body ()
Root Schema : ConfigureForgotPasswordLinkResponse
Type: object
Show Source
  • This is the url path of the custom web pages deployed for look and feel changes for the otp forgot password applicaion.
  • This is the error level of the error that will be displayed to the user. Internal error level shows a detailed message to the end user. Valid values are internal and external.
  • This is the exact URL that the user will be taken to for changing his password. It can be local to OAM server
  • This descibes the mode in which the otpchangepassword app will be presented to the user. The valid list of values are 1)email -- otp will be sent to the user's mail. 2)sms -- otp will be sent to user's mobile via sms. 3)userselectchallenge -- otp will be sent to user, based on user selecting one of masked display challenges. 4)userchoose -- otp will be sent to user, based on selection of email or sms keywords. 5)totp -- time based otp generated in user's device.

401 Response

Unauthorized

500 Response

Internal Server Error
Back to Top

Examples

This example demonstrates the method to enable the OTP forgot password link on the default login page in OAM.

Example of the Response Headers

curl -X PUT http://hostname:port/oam/services/rest/access/api/v1/config/otpforgotpassword/ 
-H 'authorization: Basic d2VibG9naWM6d2VsY29tZTE=' 
-H 'content-type: application/json' 
-d '{"displayOTPForgotPassworLink":"true","defaultOTPForgotPasswordLink":"false","localToOAMServer":"true",
"forgotPasswordURL":"/otpfp/pages/otpforgotpassword.jsp", "mode":"userselectchallenge"}'

Example of the Response Body

The following example shows the contents of the response body.

{
    "displayOTPForgotPasswordLink": true,
    "errorLevelInternal": false,
    "forgotPasswordURL": "/otpfp/pages/otpforgotpassword.jsp",
    "mode": "userselectchallenge"
}
Back to Top