cidaas-javascript-sdk 5.1.3 → 5.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
## [5.1.
|
|
1
|
+
## [5.1.4](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/compare/v5.1.3...v5.1.4) (2026-03-13)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* update changelog ([630af23](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/630af23a235aa0820a259f42eecdc3ac7615bdec))
|
|
6
|
+
* [#1537](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/issues/1537) update reset password apis ([fddafcb](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/fddafcb7d4b33a354f36d25bbf6535d90f81f2bc))
|
|
8
7
|
|
|
9
8
|
# Changelog
|
|
10
9
|
|
|
10
|
+
## V5.1.4
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- api update for initiateResetPassword(),handleResetPassword(),resetPassword()
|
|
14
|
+
|
|
11
15
|
## V5.1.3
|
|
12
16
|
|
|
13
17
|
### Fixed
|
|
@@ -100,7 +100,7 @@ export declare class UserService {
|
|
|
100
100
|
getCommunicationStatus(options: GetCommunicationStatusRequest, headers?: HTTPRequestHeader): Promise<any>;
|
|
101
101
|
/**
|
|
102
102
|
* To initiate the password resetting, call **initiateResetPassword()**. This will send verification code to your email or mobile based on the resetMedium you mentioned.
|
|
103
|
-
* Please refer to the api document https://docs.cidaas.com/
|
|
103
|
+
* Please refer to the api document https://docs.cidaas.com/openapi/password-management/post-reset-password-initiate for more details.
|
|
104
104
|
* @example
|
|
105
105
|
* ```js
|
|
106
106
|
* cidaasUserService.initiateResetPassword({
|
|
@@ -118,7 +118,7 @@ export declare class UserService {
|
|
|
118
118
|
initiateResetPassword(options: InitiateResetPasswordRequest, headers?: HTTPRequestHeader): Promise<any>;
|
|
119
119
|
/**
|
|
120
120
|
* To handle the reset password by entering the verification code you received, call **handleResetPassword()**. This will check if your verification code was valid or not, and allows you to proceed to the next step.
|
|
121
|
-
* Please refer to the api document https://docs.cidaas.com/
|
|
121
|
+
* Please refer to the api document https://docs.cidaas.com/openapi/password-management/post-reset-password-validatecode for more details.
|
|
122
122
|
* @example
|
|
123
123
|
* ```js
|
|
124
124
|
* const handleResponseAsJson = 'true if the response need to be handled the old way (as json). In the current handling, the response information will be given as query parameter in redirect url.';
|
|
@@ -135,7 +135,7 @@ export declare class UserService {
|
|
|
135
135
|
handleResetPassword(options: HandleResetPasswordRequest, handleResponseAsJson?: boolean, headers?: HTTPRequestHeader): Promise<any>;
|
|
136
136
|
/**
|
|
137
137
|
* To finish reseting the password, call **resetPassword()**. This will allow you to change your password.
|
|
138
|
-
* Please refer to the api document https://docs.cidaas.com/
|
|
138
|
+
* Please refer to the api document https://docs.cidaas.com/openapi/password-management/post-reset-password-accept for more details.
|
|
139
139
|
* @example
|
|
140
140
|
* ```js
|
|
141
141
|
* const handleResponseAsJson = 'true if the response need to be handled the old way (as json). In the current handling, user will be redirected to success page after successful reset password.';
|
|
@@ -130,7 +130,7 @@ class UserService {
|
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* To initiate the password resetting, call **initiateResetPassword()**. This will send verification code to your email or mobile based on the resetMedium you mentioned.
|
|
133
|
-
* Please refer to the api document https://docs.cidaas.com/
|
|
133
|
+
* Please refer to the api document https://docs.cidaas.com/openapi/password-management/post-reset-password-initiate for more details.
|
|
134
134
|
* @example
|
|
135
135
|
* ```js
|
|
136
136
|
* cidaasUserService.initiateResetPassword({
|
|
@@ -146,12 +146,12 @@ class UserService {
|
|
|
146
146
|
* ```
|
|
147
147
|
*/
|
|
148
148
|
initiateResetPassword(options, headers) {
|
|
149
|
-
const _serviceURL = this.config.authority + "/
|
|
149
|
+
const _serviceURL = this.config.authority + "/password-srv/resetpassword?action=initiatereset";
|
|
150
150
|
return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "POST", undefined, headers);
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* To handle the reset password by entering the verification code you received, call **handleResetPassword()**. This will check if your verification code was valid or not, and allows you to proceed to the next step.
|
|
154
|
-
* Please refer to the api document https://docs.cidaas.com/
|
|
154
|
+
* Please refer to the api document https://docs.cidaas.com/openapi/password-management/post-reset-password-validatecode for more details.
|
|
155
155
|
* @example
|
|
156
156
|
* ```js
|
|
157
157
|
* const handleResponseAsJson = 'true if the response need to be handled the old way (as json). In the current handling, the response information will be given as query parameter in redirect url.';
|
|
@@ -167,7 +167,7 @@ class UserService {
|
|
|
167
167
|
*/
|
|
168
168
|
handleResetPassword(options, handleResponseAsJson, headers) {
|
|
169
169
|
try {
|
|
170
|
-
const url = this.config.authority + "/
|
|
170
|
+
const url = this.config.authority + "/password-srv/resetpassword?action=validatecode";
|
|
171
171
|
if (!handleResponseAsJson) {
|
|
172
172
|
// current handling will redirect and give query parameters
|
|
173
173
|
const form = Helper_1.Helper.createForm(url, options);
|
|
@@ -185,7 +185,7 @@ class UserService {
|
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* To finish reseting the password, call **resetPassword()**. This will allow you to change your password.
|
|
188
|
-
* Please refer to the api document https://docs.cidaas.com/
|
|
188
|
+
* Please refer to the api document https://docs.cidaas.com/openapi/password-management/post-reset-password-accept for more details.
|
|
189
189
|
* @example
|
|
190
190
|
* ```js
|
|
191
191
|
* const handleResponseAsJson = 'true if the response need to be handled the old way (as json). In the current handling, user will be redirected to success page after successful reset password.';
|
|
@@ -202,7 +202,7 @@ class UserService {
|
|
|
202
202
|
* ```
|
|
203
203
|
*/
|
|
204
204
|
resetPassword(options, handleResponseAsJson, headers) {
|
|
205
|
-
const url = this.config.authority + "/
|
|
205
|
+
const url = this.config.authority + "/password-srv/resetpassword?action=acceptreset";
|
|
206
206
|
try {
|
|
207
207
|
if (!handleResponseAsJson) {
|
|
208
208
|
// current handling will redirect and give query parameters
|