Exemple #1
0
 public AuthValidator(INancyLogger log, IConfiguration config) : base(log)
 {
     OAuth2Issuer       = config.OptionalParameters["OAuth2Issuer"];
     OAuthSecretKey     = config.OptionalParameters["OAuth2SecretKey"];
     OAuth2ClientId     = config.OptionalParameters["OAuth2ClientId"];
     OAuth2JwksLocation = config.OptionalParameters["OAuth2JwksLocation"];
     OAuth2JwksAudience = config.OptionalParameters["OAuth2JwksAudience"];
 }
Exemple #2
0
        public LoggingBootstrapperExtender(INancyLogger logger, IConfiguration config)
        {
            Priority = 100;
            _logger  = logger;

            string loggedBodySizeLimit;

            if (config.OptionalParameters.TryGetValue(BodySizeLimitConfigKey, out loggedBodySizeLimit))
            {
                int.TryParse(loggedBodySizeLimit, out _loggedBodySizeLimit);
            }
        }
Exemple #3
0
 public OAuth2Validator(INancyLogger log)
 {
     _log = log;
 }
Exemple #4
0
 public DemoBootstrapperExtender(INancyLogger logger)
 {
     _logger = logger;
 }