How can I change the Login.cs.html page from IdentityServer4 to Angular component?
What should I do exactly?
Thanks
You can set the path to the login page via the UserInteraction settings . Read more about IDS4 login flow here .
For example if you have the angular app hosted on http://localhost:3000
settings looks like this:
services.AddIdentityServer(
options =>
{
options.UserInteraction.LoginUrl = "http://localhost:3000/login";
options.UserInteraction.ErrorUrl = "http://localhost:3000/error";
options.UserInteraction.LogoutUrl = "http://localhost:3000/logout";
})
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApis())
.AddInMemoryClients(Config.GetClients())
.AddTestUsers(Config.GetTestUsers());
Here is a post with all details.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.