Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/api/checkChangePasswordUsingLoginId.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
{
"name": "loginId",
"comments": [
"The loginId of the User that you intend to change the password for."
"The loginId (email or username) of the User that you intend to change the password for."
],
"type": "urlParameter",
"parameterName": "username",
"parameterName": "loginId",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't have anything using this particular API endpoint so this was not noticed but the parameter name was wrong. The action does not have a username field, only a loginId field.

The difference is noticeable in the java client https://github.com/FusionAuth/fusionauth-java-client/pull/144/files#diff-907b0157ed4d05913f38430e58f3513c6262bf0f51eb14b81ad41a190d8af575R547

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this client method wouldn't have worked before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. It would not have. We don't consume it ourselves so that's 1 reason we didn't notice.

"javaType": "String"
}
]
}
}
34 changes: 34 additions & 0 deletions src/main/api/checkChangePasswordUsingLoginIdAndLoginIdTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"uri": "/api/user/change-password",
"comments": [
"Check to see if the user must obtain a Trust Request Id in order to complete a change password request.",
"When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change",
"your password, you must obtain a Trust Request Id by completing a Two-Factor Step-Up authentication.",
"",
"An HTTP status code of 400 with a general error code of [TrustTokenRequired] indicates that a Trust Token is required to make a POST request to this API."
],
"method": "get",
"methodName": "checkChangePasswordUsingLoginIdAndLoginIdTypes",
"successResponse": "Void",
"errorResponse": "Errors",
"params": [
{
"name": "loginId",
"comments": [
"The loginId of the User that you intend to change the password for."
],
"type": "urlParameter",
"parameterName": "loginId",
"javaType": "String"
},
{
"name": "loginIdTypes",
"comments": [
"The identity types that FusionAuth will compare the loginId to."
],
"type": "urlParameter",
"parameterName": "loginIdTypes",
"javaType": "List<String>"
}
]
}
2 changes: 1 addition & 1 deletion src/main/api/retrieveUserByLoginIdWithLoginIdTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"name": "loginIdTypes",
"comments": [
"the identity types that FusionAuth will compare the loginId to."
"The identity types that FusionAuth will compare the loginId to."
],
"type": "urlParameter",
"parameterName": "loginIdTypes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{
"name": "loginIdTypes",
"comments": [
"the identity types that FusionAuth will compare the loginId to."
"The identity types that FusionAuth will compare the loginId to."
],
"type": "urlParameter",
"parameterName": "loginIdTypes",
Expand Down