我已遵循此指南来自定义登录页面:https : //docs.wso2.com/display/IS500/Customizing+Login+Pages
一切都很好。
我从4.3.3版本中签出了代码,并对以下内容进行了本地更改:https : //github.com/wso2/carbon-identity/tree/release-4.3.3/components/identity/org.wso2.carbon.identity .application.authentication.endpoint
在处理OpenIDConnect / OAuth2时,除了涉及的login.jsp之外,还有更多页面,例如页面oauth2_authz.jsp。用我修改后的authenticationendpoint.war替换默认的authenticationendpoint.war时,这也不是问题。
但是,当尝试在另一个URL下单独托管自定义authenticationendpoint.war时,会出现问题。
WSO2 Identity Server配置有指向AuthenticationEndpoint的绝对URL:
<AuthenticationEndpointURL>http://localhost:9990/login.do</AuthenticationEndpointURL>
而且我的login.jsp的形式已更改为提交回WSO2 Identity Server的绝对URL,而不是相对URL ../commonauth。
<form action="https://localhost:9443/commonauth"...
我看到的问题是我已正确重定向到我的自定义登录页面,但是authz页面(“声明|批准|始终批准|拒绝”的声明和按钮的列表)仍然是WSO2中托管的默认页面。
我希望WSO2 Identity Server使用我所有的自定义页面,而不仅仅是login.jsp。
这些通常是
任何人都可以建议如何完成此操作或指向有关此操作的一些文档吗?
WSO2IS 5.1.0中使用IDENTITY-2977解决了此问题。有了相关的变化,你可以自定义samlsso_login
,oauth2_authz
,oauth2_error
并oauth2_consent
在网址中使用可用的配置web.xml
文件authenticationendpoint.war
。有关更多详细信息,请参阅web.xml的相关部分。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句