public bool SupportsUserSecurityStamp() { using (AccountWebServiceClient client = new AccountWebServiceClient()) { return(client.SupportsUserSecurityStamp()); } }
public bool IdentityUserExistsById(string userId) { using (AccountWebServiceClient client = new AccountWebServiceClient()) { return(client.IdentityUserExistsById(userId)); } }
public string GetSecurityStamp(string userId) { using (AccountWebServiceClient client = new AccountWebServiceClient()) { return(client.GetSecurityStamp(userId)); } }
public ClaimsIdentity CreateIdentity(string userId) { using (AccountWebServiceClient client = new AccountWebServiceClient()) { return(client.CreateIdentity(userId)); } }
public bool Create(Account user, string password) { var result = false; using (AccountWebServiceClient client = new AccountWebServiceClient()) { result = client.Create(user, password); } return(result); }
public CustomerLoginResults SignIn(string username, string password, bool isPersistent, bool shouldLockOut) { IdentityLoginResult identityLoginResult; using (AccountWebServiceClient client = new AccountWebServiceClient()) { identityLoginResult = client.ValidateIdentityUser(username, password, shouldLockOut); } if (identityLoginResult.CustomerLoginResults == CustomerLoginResults.Successful) { var authenticationManager = _httpContext.GetOwinContext().Authentication; authenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie, DefaultAuthenticationTypes.TwoFactorCookie); authenticationManager.SignIn(new AuthenticationProperties { IsPersistent = isPersistent }, identityLoginResult.ClaimsIdentity); } return(identityLoginResult.CustomerLoginResults); }
public AccountService() { accountWebServiceClient = new AccountWebServiceClient(); }