예제 #1
0
        public static void SignOut()
        {
            var objIdentity = DinazorIdentity.UnauthenticatedIdentity();

            _objPrincipal = new DinazorPrincipal(objIdentity);
            User          = _objPrincipal;
        }
예제 #2
0
        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);
        }