title: OpenIdConnect: Manually handle Callback
body: <p>When configuring the <code>OpenIdConnectOptions.CallbackPath</code>in asp.core, can we provide our own controller/action method to intercept the code being returned from the OIDC server?</p>
  
  <p>I have set up a controller/action method to handle the returned code and in the Startup.cs class, added this option:</p>
  
  <pre><code>.AddOpenIdConnect("oidc", options =&gt;
  {
    //other options
    options.CallbackPath = new PathString("/oidc/codehandler");
  }
  </code></pre>
  
  <p>But the action method never gets called even though I see a redirection happening after the user signs in:</p>
  
  <pre><code>http://myserver.com/oidc/codehandler?scope=openid&amp;state=abc123&amp;code=xyz456
  </code></pre>
  
  <p>What am I doing wrong here? </p>