title: How to set redirect_uri parameter on OpenIdConnectOptions for ASP.NET Core
body: <p>I'm trying to connect an ASP.NET application to Salesforce using OpenId, Currently this is my connecting code so far. I think I got everything except the redirect_uri parameter, which has to match the value on the other end exactly.</p>
  <pre class="lang-cs prettyprint-override"><code>
   app.UseCookieAuthentication(x =&gt;
          {
              x.AutomaticAuthenticate = true;
              x.CookieName = &quot;MyApp&quot;;
              x.CookieSecure = CookieSecureOption.Always;
              x.AuthenticationScheme = &quot;Cookies&quot;;
     
          });
  
          JwtSecurityTokenHandler.DefaultInboundClaimTypeMap = new Dictionary&lt;string, string&gt;();
  
  
          app.UseOpenIdConnectAuthentication(x =&gt;
          {
              x.AutomaticAuthenticate = true;
              x.Authority = &quot;https://login.salesforce.com&quot;;
              x.ClientId = &quot;CLIENT_ID_HERE&quot;;
              x.ResponseType = &quot;code&quot;;
              x.AuthenticationScheme = &quot;oidc&quot;;
              x.CallbackPath = new PathString(&quot;/services/oauth2/success&quot;);
              //x.RedirectUri = &quot;https://login.salesforce.com/services/oauth2/success&quot;;
              x.Scope.Add(&quot;openid&quot;);
              x.Scope.Add(&quot;profile&quot;);
              x.Scope.Add(&quot;email&quot;);                
          });
  </code></pre>
  <p>But RedirectUri isn't a valid parameter to pass. What is the right way to set it?</p>