如何自定义所有 WSO2 Identity Server 登录相关页面
How to customize all WSO2 Identity Server login related pages
我已按照本指南自定义登录页面: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 身份服务器配置了绝对 URL 到 AuthenticationEndpoint:
<AuthenticationEndpointURL>http://localhost:9990/login.do</AuthenticationEndpointURL>
并且我的 login.jsp 的形式被更改为提交回 WSO2 身份服务器的绝对 URL,而不是相对 URL ../commonauth.
<form action="https://localhost:9443/commonauth"...
我看到的问题是我被正确地重定向到我的自定义登录页面,但是 authz 页面(声明列表和批准按钮|始终批准|拒绝)仍然是 WSO2 中托管的默认页面。
我希望 WSO2 身份服务器使用我所有的自定义页面,而不仅仅是 login.jsp。
这些通常是
- oauth2_authz.jsp
- oauth2_consent.jsp
- oauth2_error.jsp
任何人都可以建议如何完成这个或指出一些关于这个的文档吗?
这已在 WSO2IS 5.1.0 中解决,IDENTITY-2977. With relevant changes, you can customize samlsso_login
, oauth2_authz
, oauth2_error
and oauth2_consent
URLs using configuration available in web.xml
file of authenticationendpoint.war
. Please refer to relevant section of the web.xml 以获取更多详细信息。
我已按照本指南自定义登录页面: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 身份服务器配置了绝对 URL 到 AuthenticationEndpoint:
<AuthenticationEndpointURL>http://localhost:9990/login.do</AuthenticationEndpointURL>
并且我的 login.jsp 的形式被更改为提交回 WSO2 身份服务器的绝对 URL,而不是相对 URL ../commonauth.
<form action="https://localhost:9443/commonauth"...
我看到的问题是我被正确地重定向到我的自定义登录页面,但是 authz 页面(声明列表和批准按钮|始终批准|拒绝)仍然是 WSO2 中托管的默认页面。
我希望 WSO2 身份服务器使用我所有的自定义页面,而不仅仅是 login.jsp。
这些通常是
- oauth2_authz.jsp
- oauth2_consent.jsp
- oauth2_error.jsp
任何人都可以建议如何完成这个或指出一些关于这个的文档吗?
这已在 WSO2IS 5.1.0 中解决,IDENTITY-2977. With relevant changes, you can customize samlsso_login
, oauth2_authz
, oauth2_error
and oauth2_consent
URLs using configuration available in web.xml
file of authenticationendpoint.war
. Please refer to relevant section of the web.xml 以获取更多详细信息。