public static AuthenticationBuilder AddAzdo(this AuthenticationBuilder builder,
                                                        Action <AzdoConfig> configure)
            {
                var config = new AzdoConfig();

                configure(config);
                builder.Services.AddSingleton(config);
                builder.Services.AddSingleton <AzdoAuthorizationservice>();

                builder.AddCookie(AzdoDefaults.CookieAuthenticationScheme);
                return(builder);
            }
 public AzdoAuthorizationservice(AzdoConfig config, IHttpClientFactory clientFactory)
 {
     this.config        = config;
     this.clientFactory = clientFactory;
 }