public AuthorizationTokenReplacementMiddleware(Func <IDictionary <string, object>, Task> next, IDataProtector dataProtector)
 {
     _next           = next;
     _tokenGenerator = new TokenGenerator(dataProtector);
 }