When Custom Authentication is used and when the user has "User must change password at next logon" flag is set, does the Custom Authentication need to update the user attribute directly or how does the password policy get involved?
What should be the SmAuthStatus and SmAuthenticationResult value to be returned by the Custom Authentication?
SDK
All SiteMinder versions
SDK bundles sample AuthApiSample.java
It has the following section for handling Disabled State.
|
// Check if the user account is disabled. return |
User must submit the correct username and password, then normally this will return AuthAccept but due to the "User must change password at next logon" flag the user must be rejected to trigger a redirect to password services url.
For that reason, user must be getting AuthReject status with ImmediatePWChangeRequired reason.
|
|
|
|
Which translate to
| return new SmAuthenticationResult(3, 20); |
Then Password Services will kick in as the browser gets redirected to the smpwservices.fcc.
The Password Policy will take care of user account status(user attributes) updates so custom authentication do not need to update anything.
When submitting the old/new password and gets a successful password change(Sm_Api_Reason_PWChangeAccepted=23) then SMSESSION is issued at the smpwservices.fcc and redirects to the TARGET for Single Sign-On using the SMSESSION token.