@Path(value="/login") @Produces(value="text/html") public class LoginResource extends Object
Constructor and Description |
---|
LoginResource(AuthenticationClient authenticationClient) |
@Inject public LoginResource(AuthenticationClient authenticationClient)
@GET public LoginView getLoginView(@Context javax.servlet.http.HttpServletRequest request)
@GET @Path(value="/change-password") public ChangePasswordView getChangePasswordView()
@GET @Path(value="/recover") public PasswordRecoveryView getPasswordRecoveryView()
@GET @Path(value="/reset") public PasswordResetView getPasswordResetView()
@GET @Path(value="/unlock") public UnlockAccountView getUnlockAccountView()
@GET @Path(value="/unlock/recovery") public UnlockAccountRecoveryView getUnlockAccountRecoveryView()
@GET @Path(value="/mfa/enroll") public MfaEnrollSelectionView getMfaEnrollSelectionView()
@GET @Path(value="/mfa/enroll/{factorType}") public MfaEnrollView getMfaEnrollView(@PathParam(value="factorType") String factorType)
@GET @Path(value="/mfa/activate/{factorType}") public MfaActivateView getMfaActivateView()
@GET @Path(value="/mfa") public MfaRequiredView getRequireMfaView()
@GET @Path(value="/mfa/verify/{type}") public MfaVerifyView getVerifyMfaView(@PathParam(value="type") String type) throws AuthenticationException
AuthenticationException
@GET @Path(value="/mfa/resend/{type}") public MfaVerifyView getResendVerifyMfaView(@PathParam(value="type") String type)
@POST public javax.ws.rs.core.Response doLogin(@FormParam(value="username") String username, @FormParam(value="password") String password) throws AuthenticationException
AuthenticationException
@POST @Path(value="/reset") public void resetPassword(@FormParam(value="newPassword") String newPassword) throws AuthenticationException
AuthenticationException
@POST @Path(value="/change-password") public void changePassword(@FormParam(value="oldPassword") String oldPassword, @FormParam(value="newPassword") String newPassword) throws AuthenticationException
AuthenticationException
@POST @Path(value="/recover") public RecoveryChallengeView recoverPassword(@FormParam(value="username") String username, @FormParam(value="factor") String factorType) throws AuthenticationException
AuthenticationException
@POST @Path(value="/unlock") public void unlockAccount(@FormParam(value="username") String username, @FormParam(value="factor") String factorType) throws AuthenticationException
AuthenticationException
@POST @Path(value="/unlock/recovery") public void unlockAccountChallenge(@FormParam(value="passCode") String passCode) throws AuthenticationException
AuthenticationException
@GET @Path(value="/recovery") public RecoveryView getRecoveryView()
@POST @Path(value="/recovery") public void recoveryWithAnswer(@FormParam(value="answer") String answer) throws AuthenticationException
AuthenticationException
@POST @Path(value="/recover/verify") public void recoverChallenge(@FormParam(value="passCode") String passCode) throws AuthenticationException
AuthenticationException
@POST @Path(value="/mfa/verify/{type}") public void verifyMfa(@PathParam(value="type") String type, @FormParam(value="clientData") String clientData, @FormParam(value="signatureData") String signatureData, @FormParam(value="passCode") String passCode) throws AuthenticationException
AuthenticationException
@POST @Path(value="/mfa/resend/{type}") public MfaVerifyView verifyMfa(@PathParam(value="type") String type) throws AuthenticationException
AuthenticationException
@POST @Path(value="/mfa/activate/{factorType}") public void activateMfa(@FormParam(value="passCode") String passCode) throws AuthenticationException
AuthenticationException
@POST @Path(value="/mfa/activate/{factorType}/resend") public void resendActivateMfa(@PathParam(value="factorType") String type) throws AuthenticationException
AuthenticationException
@POST @Path(value="/mfa/enroll/{factorType}") public void enrollMfa(@PathParam(value="factorType") String factorType, javax.ws.rs.core.Form form) throws AuthenticationException
AuthenticationException
Copyright © 2018–2023 Okta. All rights reserved.