Exemple #1
0
        private AuthorizeRequestValidationResult Valid(ValidatedAuthorizeRequest request)
        {
            var result = new AuthorizeRequestValidationResult
            {
                IsError          = false,
                ValidatedRequest = request
            };

            return(result);
        }
Exemple #2
0
        private AuthorizeRequestValidationResult Invalid(ValidatedAuthorizeRequest request, ErrorTypes errorType = ErrorTypes.User, string error = Constants.AuthorizeErrors.InvalidRequest)
        {
            var result = new AuthorizeRequestValidationResult
            {
                IsError          = true,
                Error            = error,
                ErrorType        = errorType,
                ValidatedRequest = request
            };

            return(result);
        }