我在IdentityServer4中找到的示例使用MVC作为登录UI . 当OpenIdConnect隐式客户端命中'authorization_endpoint'(例如'http://localhost:5000/connect/authorize')时,它会被重定向到AccountController Login操作 . 如何将IdentityServer4配置为使用不同的控制器或UI作为登录页面?
我在IdentityServer4中找到的示例使用MVC作为登录UI . 当OpenIdConnect隐式客户端命中'authorization_endpoint'(例如'http://localhost:5000/connect/authorize')时,它会被重定向到AccountController Login操作 . 如何将IdentityServer4配置为使用不同的控制器或UI作为登录页面?
1 回答
在ConfigureServices方法下(在Startup中)添加一个SetupIdentityServer选项方法:
...其中SetupIdentityServer是您可以设置登录URL的方法的名称: