Change Password
A user can modify his or her password after logging into the application.
KSSIDP Change Password flow diagram for KOBIL Shift Lite
The event flow diagram illustrates the sequence of events during the change password process for KOBIL Shift Lite - KSSIDP.
Swift/iOS
KssIdpChangePassword function, acts as the bridge between the user interface and the identity provider. Function utilizes the changePin method from kssIdpWrapper to trigger the change password process, with the result being handled by the handleResult function.
func KssIdpChangePassword(
clientId: String,
credentials: [String: String]) {
self.kssIdpWrapper.changePin(clientId: clientId,
credentials: credentials) { resultObject, _ in
handleResult(resultObject: resultObject)
}
}
Android/Kotlin
Following function utilizes the changePin method from KssIdp Instance to trigger the change password process, with the result being handled by the onResultReceived listener.
fun triggerKssIdpChangePassword(
clientId: String,
credentials : HashMap<String, String>,
onResultReceived: ((result: ResultObject) -> Unit)? = onResultReceivedCallback
) {
launchIO {
KssIdp.getInstance()?.changePin(clientId, credentials, onResultReceived)?.then {
// handle result
}
}
}
Request params
Parameters which are used in KSSIDP Change password are explained below:
clientId: This value would be provided by the KOBIL IDP services.
credentials: {
"username": VALUE-TO-PASS,
"current-password": VALUE-TO-PASS,
"new-password": VALUE-TO-PASS
}
To get more information about MC usage during the KSSIDP flows, please check the CreateHttpCommonRequest and SetAuthorisationCode events.
All Platforms
As response to ChangePin Event, KSSIDP sends KssIdpResultObject with appropriate status.