Example #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
        }
Example #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
        }
Example #3
0
 public static bool IsAuthenticated(this IRequest req) => AuthenticateAttribute.Authenticate(req, req.Dto);
Example #4
0
        public bool isAuthenticated(ScriptScopeContext scope, string provider)
        {
            var request = req(scope);

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

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