Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Last active May 21, 2020 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/239c4bdf3ae3b429b7b3d2412789585e to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/239c4bdf3ae3b429b7b3d2412789585e to your computer and use it in GitHub Desktop.
Startup Configure Method for Razor View for Azure AD integration using MSAL
app.UseEndpoints(endpoints =>
{
// Logout redirection does not work without this MVC route
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
// Default razor endpoints
endpoints.MapRazorPages();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment