title: Update service provider client credentials based on request basis ASP.NET Identity (dotnet core)
body: <p>We have used ASP.NET identity core for google service providers. Following is the code shown below</p>
  
  <pre><code>services
       .AddAuthentication()
       .AddGoogle(o =&gt; {
            o.ClientId = "xxx";
            o.ClientSecret = "xx";
            // Tried using this event but no luck it is stuck
            // and not going anywhere
            o.Events.OnRedirectToAuthorizationEndpoint = ctx =&gt; {
                o.ClientId = "xxx";
                o.ClientSecret = "xxx";
                return Task.CompletedTask;
           };
       });
  </code></pre>
  
  <p>But we would like to change clientId and clientSecret dynamically based on user who request the login page. Can we update clientId and clientSecret on request basis or is it only set on startup.</p>
  
  <p>We see the only alternative is to use original google oauth apis to change clientId and clientSecret. Can we do that using ASP.NET identity itself or any nuget package? Any help is greatly appreciated.</p>