public IActionResult LRMfaAuth([FromBody] GoogleAuthenticatorModel googleAuth, [FromQuery(Name = "multi_factor_auth_token")] String secondFactorAuthToken) { var apiresponse = new MultiFactorAuthenticationApi().MFAValidateGoogleAuthCode(googleAuth.googleauthenticatorcode, secondFactorAuthToken); if (apiresponse.RestException != null) { return(StatusCode(400, Json(apiresponse.RestException))); } return(Json(apiresponse.Response)); }
public IActionResult LRMfaLogin([FromBody] EmailLoginModel emailLoginModel) { var apiresponse = new MultiFactorAuthenticationApi().MFALoginByEmail(emailLoginModel.Email, emailLoginModel.Password); if (apiresponse.RestException != null) { return(StatusCode(400, Json(apiresponse.RestException))); } return(Json(apiresponse.Response)); }
public IActionResult LRMfaValidate([FromQuery(Name = "auth")] String accessToken) { var apiresponse = new MultiFactorAuthenticationApi().MFAConfigureByAccessToken(accessToken); if (apiresponse.RestException != null) { return(StatusCode(400, Json(apiresponse.RestException))); } return(Json(apiresponse.Response)); }
public IActionResult LRMfaEnableGoogle([FromBody] GoogleAuthenticatorModel googleAuthenticatorCode, [FromQuery(Name = "auth")] String accessToken) { var apiresponse = new MultiFactorAuthenticationApi().MFAValidateGoogleAuthCode(accessToken, googleAuthenticatorCode.googleauthenticatorcode); if (apiresponse.RestException != null) { return(StatusCode(400, Json(apiresponse.RestException))); } return(Json(apiresponse.Response)); }
public IActionResult LRMfaResetGoogle([FromQuery(Name = "auth")] String accessToken) { var apiresponse = new MultiFactorAuthenticationApi().MFAResetGoogleAuthByToken(accessToken, true); if (apiresponse.RestException != null) { return(StatusCode(400, Json(apiresponse.RestException))); } return(Json(apiresponse.Response)); }