Exemplo n.º 1
0
        public static void SignOut()
        {
            var objIdentity = DinazorIdentity.UnauthenticatedIdentity();

            _objPrincipal = new DinazorPrincipal(objIdentity);
            User          = _objPrincipal;
        }
Exemplo n.º 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);
        }