Пример #1
0
        public bool isAuthenticated(ScriptScopeContext scope, string provider)
        {
            var request = scope.GetRequest();

#pragma warning disable CS0618
            return(request != null && AuthenticateAttribute.Authenticate(request));

#pragma warning restore CS0618
        }
Пример #2
0
        public bool isAuthenticated(ScriptScopeContext scope)
        {
            var request = scope.GetRequest();

#pragma warning disable CS0618
            return(request != null && AuthenticateAttribute.Authenticate(request, request.GetSession()));

#pragma warning restore CS0618
        }
Пример #3
0
 public static bool IsAuthenticated(this IRequest req) => AuthenticateAttribute.Authenticate(req, req.Dto);
Пример #4
0
        public bool isAuthenticated(ScriptScopeContext scope, string provider)
        {
            var request = req(scope);

            return(request != null && AuthenticateAttribute.Authenticate(request));
        }
Пример #5
0
        public bool isAuthenticated(ScriptScopeContext scope)
        {
            var request = req(scope);

            return(request != null && AuthenticateAttribute.Authenticate(request, request.GetSession()));
        }