public AccessTokenMiddleware( IBearerTokenStorage bearerTokenStorage, RequestDelegate next) { _bearerTokenStorage = bearerTokenStorage ?? throw new ArgumentNullException(nameof(bearerTokenStorage)); _next = next ?? throw new ArgumentNullException(nameof(next)); }
public BearerAccessTokenHandler(IBearerTokenStorage tokenStorage, bool excludeAccessToken) { _tokenStorage = tokenStorage ?? throw new ArgumentNullException(nameof(tokenStorage)); _excludeAccessToken = excludeAccessToken; }