yuezhongxin / IdentityServer4.Demo

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core(Samples)
36 stars 22 forks source link

请教:.net core mvc结合IdentityServer4登录授权 #2

Open xhanb opened 6 years ago

xhanb commented 6 years ago

.net core mvc如何结合自己的数据库及IdentityServer4登录授权?在web里面登录然后请求IdentityServer4获取token还是在IdentityServer4登录返回登录?IdentityServer4的其他属性都理解差不多了,就是这块含糊。能指导下吗?

yuezhongxin commented 6 years ago

@HanbGao 我一开始是用MVC或者JS请求登录的,后来发现使用起来太复杂,所以才改为了HTTP API请求的方式,这样前后端可以进行分离使用,如果你想了解MVC登录的方式,可以参考下官方文章:http://docs.identityserver.io/en/release/quickstarts/3_interactive_login.html