Skip to content
Merged
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
28 changes: 24 additions & 4 deletions src/main/java/io/fusionauth/client/FusionAuthClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,33 @@ public ClientResponse<Void, Errors> checkChangePasswordUsingJWT(String encodedJW
* <p>
* 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.
*
* @param loginId The loginId of the User that you intend to change the password for.
* @param loginId The loginId (email or username) of the User that you intend to change the password for.
* @return The ClientResponse object.
*/
public ClientResponse<Void, Errors> checkChangePasswordUsingLoginId(String loginId) {
return start(Void.TYPE, Errors.class)
.uri("/api/user/change-password")
.urlParameter("username", loginId)
.urlParameter("loginId", loginId)
.get()
.go();
}

/**
* 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.
* <p>
* 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.
*
* @param loginId The loginId of the User that you intend to change the password for.
* @param loginIdTypes The identity types that FusionAuth will compare the loginId to.
* @return The ClientResponse object.
*/
public ClientResponse<Void, Errors> checkChangePasswordUsingLoginIdAndLoginIdTypes(String loginId, List<String> loginIdTypes) {
return start(Void.TYPE, Errors.class)
.uri("/api/user/change-password")
.urlParameter("loginId", loginId)
.urlParameter("loginIdTypes", loginIdTypes)
.get()
.go();
}
Expand Down Expand Up @@ -4206,7 +4226,7 @@ public ClientResponse<UserResponse, Errors> retrieveUserByLoginId(String loginId
* Retrieves the user for the loginId, using specific loginIdTypes.
*
* @param loginId The email or username of the user.
* @param loginIdTypes the identity types that FusionAuth will compare the loginId to.
* @param loginIdTypes The identity types that FusionAuth will compare the loginId to.
* @return The ClientResponse object.
*/
public ClientResponse<UserResponse, Errors> retrieveUserByLoginIdWithLoginIdTypes(String loginId, List<String> loginIdTypes) {
Expand Down Expand Up @@ -4429,7 +4449,7 @@ public ClientResponse<LoginReportResponse, Errors> retrieveUserLoginReportByLogi
* @param loginId The userId id.
* @param start The start instant as UTC milliseconds since Epoch.
* @param end The end instant as UTC milliseconds since Epoch.
* @param loginIdTypes the identity types that FusionAuth will compare the loginId to.
* @param loginIdTypes The identity types that FusionAuth will compare the loginId to.
* @return The ClientResponse object.
*/
public ClientResponse<LoginReportResponse, Errors> retrieveUserLoginReportByLoginIdAndLoginIdTypes(UUID applicationId, String loginId, long start, long end, List<String> loginIdTypes) {
Expand Down