title: How to redirect to particular page after Azure AD Login?
body: <p>I am integrating Azure AD login in my application. I want to redirect to particular action after successful azure ad login. I have a below code in my Startup.Auth.cs file. But it is not redirecting to redirecturi. Anyone can suggest me how to redirect to a custom page after successful login.</p>
  
  <pre><code>public static void ConfigureAuth(IAppBuilder app)
          {
              app.UseKentorOwinCookieSaver();
              app.UseCookieAuthentication(new CookieAuthenticationOptions());
              app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
              app.UseOpenIdConnectAuthentication(
                  new OpenIdConnectAuthenticationOptions
                  {
                      ClientId = clientId,
                      Authority = authority,
                      PostLogoutRedirectUri = postLogoutRedirectUri,
                      RedirectUri = redirectUri,
                      Notifications = new OpenIdConnectAuthenticationNotifications
                      {
                          SecurityTokenValidated = context =&gt;
                          {
                              context.Response.Redirect("/members/logon");
                              return Task.FromResult(0);
                          },
                          AuthenticationFailed = context =&gt;
                          {
                              if (context.Exception.Message.StartsWith("OICE_20004") || context.Exception.Message.Contains("IDX10311"))
                              {
                                  context.SkipToNextMiddleware();
                                  context.Response.Redirect("/members/logon");
                                  return Task.FromResult(0);
                              }
  
                              return Task.FromResult(0);
                          }
                      }
                  });
          }
  </code></pre>
  
  <p>Thanks,</p>