是否可以自定义Thinktecture.IdentityServer.v2登录页面? [英] Is there a way to customize the Thinktecture.IdentityServer.v2 login page?
问题描述
我正在使用Thinktecture.IdentityServer.v2应用程序为几个内部应用程序执行SSO,但我想为每个应用程序自定义登录页面以提供更流畅的用户体验。我似乎找不到办法。
I'm using the Thinktecture.IdentityServer.v2 app to perform SSO for a couple of internal apps but would like to customize the login page for each application to have a smoother user experience. I can't seem to find a way to do that.
可以根据来自客户端的来源应用程序自定义登录页面吗?
Can the login page be customized depending on the source application from where the client is comming?
推荐答案
我似乎找不到解决办法。 -您尝试了多少? ;)
"I can't seem to find a way to do that." - How hard have you tried? ;)
RP具有额外的数据字段-因此您可以像CSS名称一样在注册数据库中悬挂在RP之外。进一步,您可以从登录页面获取该RP数据-引用AccountController中的注释:
The RP has the extra data fields - so you can hang like a CSS name off the RP in the registration database. Further you can get to that RP data from the signin page - quoting the comment in AccountController:
//您可以调用AuthenticationHelper.GetRelyingPartyDetailsFromReturnUrl以获得有关所请求依赖项的更多信息派对
// you can call AuthenticationHelper.GetRelyingPartyDetailsFromReturnUrl to get more information about the requested relying party
btw-IdentityServer的github仓库有一个问题跟踪器-您应该使用它来提问。
btw - IdentityServer's github repo has an issue tracker - you should use that for questions.
这篇关于是否可以自定义Thinktecture.IdentityServer.v2登录页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!