Пример #1
0
        public async Task Build(TokenValidationParameters tokenParameter, JwtValidateParameter parameter)
        {
            tokenParameter.RequireAudience  = true;
            tokenParameter.ValidateAudience = true;
            tokenParameter.ValidAudience    = parameter.Value;

            await Task.FromResult(0);
        }
Пример #2
0
 public async Task Build(TokenValidationParameters tokenParameter, JwtValidateParameter parameter)
 {
     var service = getService(parameter.Type);
     await service.Build(tokenParameter, parameter);
 }
 public async Task Build(TokenValidationParameters tokenParameter, JwtValidateParameter parameter)
 {
     tokenParameter.ValidateLifetime = true;
     await Task.FromResult(0);
 }
 public async Task Build(TokenValidationParameters tokenParameter, JwtValidateParameter parameter)
 {
     tokenParameter.ValidateIssuer = true;
     tokenParameter.ValidIssuer    = parameter.Value;
     await Task.FromResult(0);
 }