如何自定义所有WSO2 Identity Server登录相关页面

马库斯·沃林(Marcus Wallin)

我已遵循此指南来自定义登录页面: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。

这些通常是

  • oauth2_authz.jsp
  • oauth2_consent.jsp
  • oauth2_error.jsp

任何人都可以建议如何完成此操作或指向有关此操作的一些文档吗?

阿育王

WSO2IS 5.1.0中使用IDENTITY-2977解决了此问题有了相关的变化,你可以自定义samlsso_loginoauth2_authzoauth2_erroroauth2_consent在网址中使用可用的配置web.xml文件authenticationendpoint.war有关更多详细信息,请参阅web.xml的相关部分

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在WSO2 Identity Server中启用一次注销,然后重定向到自定义登录页面

为WSO2 Identity Server部署自定义密码策略文件

使用WSO2 Identity Server管理外部自定义权限吗?

使用WSO2 Identity Server 5.1进行单点登录

将自定义参数传递给登录页面 Identity Server 4 中使用的 returnUrl

WSO2 Identity Server升级

如何使用Identity Server登录WSO2解决方案

Identity Server 4中的自定义登录视图

WSO2 Identity Server的用户和租户

使用WSO2 Identity Server的SAML2.0 SSO?

使用Spring Security + WSO2 Identity Server的OAuth 2.0

WSO2 Identity Server中的SAML请求-响应处理

WSO2 API Manager使用Identity Server存储访问

基于SAML / XACML的WSO2 Identity Server访问控制

集成bonita和wso2 Identity Server

wso2 Identity Server-无法删除租户

用于会话管理的 WSO2 Identity Server 5.0.0 Api

有什么方法可以在WSO2 Identity Server中加密用户名?

WSO2 Identity Server未返回带有OAuth / OpenID的请求的声明

如何配置 WSO2 API Manager 2.1.0 以使用 Identity Server 5.4.1

如何在Docker中为WSO2 Identity Server指定SSL证书?

wso2 Identity Server 5.7.0 Service Provider 如何设置用户角色?

如何在WSO2 Identity Server中远程添加租户?

WSO2 Identity Server 5.0不包括“自我注册(注册)”页面?

WSO2 sh wso2server.sh -Dmigrate -Dcomponent=identity 没有运行迁移脚本

AspNet Identity Core-登录时的自定义声明

Asp.net Identity 2.0自定义登录方法

使用WSO2 Identity Server和WSO2 API Manager保护后端

Identity Server v3自定义页面重置密码