public static void SignOut() { var objIdentity = DinazorIdentity.UnauthenticatedIdentity(); _objPrincipal = new DinazorPrincipal(objIdentity); User = _objPrincipal; }
public static bool AuthenticateUser(string token) { var objIdentity = DinazorIdentity.GetIdentity(token); if (!objIdentity.IsAuthenticated) { return(objIdentity.IsAuthenticated); } _objPrincipal = new DinazorPrincipal(objIdentity); User = _objPrincipal; return(objIdentity.IsAuthenticated); }