Ejemplo n.º 1
0
        public static AccessToken LogInUser(Customer customer)
        {
            AccessToken accessToken = new AccessToken();

            accessToken.User = customer;

            var roles = CustomerAccessor.RetrieveRolesByUserID(customer.CustomerID);

            accessToken.Roles = roles;

            return(accessToken);
        }