private static CustomerAuthenticationProfile SetUserAuth(string response, AuthenticationScope scope,int tenantId, int siteId) { var customerAuthenticationProfile = new CustomerAuthenticationProfile(); customerAuthenticationProfile.AuthTicket = JsonConvert.DeserializeObject<AuthTicket>(response); customerAuthenticationProfile.AuthTicket.AuthenticationScope = scope; customerAuthenticationProfile.AuthTicket.SiteId = siteId; customerAuthenticationProfile.AuthTicket.TenantId = tenantId; var userAccount = JsonConvert.DeserializeObject<CustomerAuthTicket>(response); customerAuthenticationProfile.CustomerAccount = userAccount.CustomerAccount; return customerAuthenticationProfile; }
private static CustomerAuthenticationProfile SetUserAuth(string response, AuthenticationScope scope, int tenantId, int siteId) { var customerAuthenticationProfile = new CustomerAuthenticationProfile(); customerAuthenticationProfile.AuthTicket = JsonConvert.DeserializeObject <AuthTicket>(response); customerAuthenticationProfile.AuthTicket.AuthenticationScope = scope; customerAuthenticationProfile.AuthTicket.SiteId = siteId; customerAuthenticationProfile.AuthTicket.TenantId = tenantId; var userAccount = JsonConvert.DeserializeObject <CustomerAuthTicket>(response); customerAuthenticationProfile.CustomerAccount = userAccount.CustomerAccount; return(customerAuthenticationProfile); }