简体   繁体   English

如何在登录 URL 之前配置 Grails Spring 安全 SAML 插件

[英]how to configure before Login URL for Grails Spring Security SAML Plugin

I'm using Grails Spring Security SAML 3.3.1 Plugin in my application.我在我的应用程序中使用 Grails Spring Security SAML 3.3.1 插件。 I'm using WSO2 as my identity provider.我使用 WSO2 作为我的身份提供者。

The setup is working fine.设置工作正常。 When grails.plugin.springsecurity.saml.active is set to true and when I launch my application's web console (ex: http://localhost:8080/WebConsole/) it redirects to the WSO2 login page.grails.plugin.springsecurity.saml.active设置为 true 并且当我启动我的应用程序的 web 控制台(例如:http://localhost:8080/WebConsole/)时,它会重定向到 WSO2 登录页面。

I believe the grails saml plugin takes care of this redirection to IDP login.我相信 grails saml 插件负责重定向到 IDP 登录。

Is there any way I can configure this redirection URL???有什么方法可以配置此重定向 URL??? I want to redirect to my application web console and from there on clicking on SSO login it should redirect to WSO2 login.我想重定向到我的应用程序 web 控制台,然后从那里单击 SSO 登录,它应该重定向到 WSO2 登录。

Resolved it by removing SAML related filters (samlEntryPoint, samlProcessingFilter, samlLogoutFilter, samlLogoutProcessingFilter) to my application's web console default login URL. Now I can access my application's default login page when SAML is active.通过将 SAML 相关过滤器(samlEntryPoint、samlProcessingFilter、samlLogoutFilter、samlLogoutProcessingFilter)删除到我的应用程序的 web 控制台默认登录 URL 来解决它。现在我可以在 SAML 处于活动状态时访问我的应用程序的默认登录页面。

By default when SAML is active we were adding these filters as part of 'grails.plugin.springsecurity.filterChain.chainMap' which was causing this redirection to the WSO2 login page.默认情况下,当 SAML 处于活动状态时,我们将这些过滤器添加为“grails.plugin.springsecurity.filterChain.chainMap”的一部分,这导致重定向到 WSO2 登录页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 断言过期时 Spring SAML 的工作原理 - How Spring SAML Works if assertion expires 如果登录详细信息很复杂,如何在 gcp 中使用云 web 安全扫描器 - how to use cloud web security scanner in gcp if the login details are complex 重定向不适用于 SAML 登录,带有 Azure Active Directory 的 php-saml - Redirect not working for SAML login, php-saml with Azure Active Directory 如何找到第二次登录时间之前的事件总数 - How to find the total number of events before the second login time 为 SAML 强制 Azure AD 登录提示 - Forcing Azure AD login prompt for SAML 是否有可能在 SAML 响应进入认知之前拦截它? - Is it possible to intercept SAML response before it gets to cognito? AWS Cloudformation 为安全组配置 ICMP 协议 - AWS Cloudformation configure ICMP protocol for the security group 在 WSO2 IS 5.9.0 中,如何借助 API 配置密码策略和登录策略? - In WSO2 IS 5.9.0 how to configure Password Policies And Login Policies with help of an API? 如何配置 Azure AD Oauth2 在登录时返回所有用户组 - How to configure Azure AD Oauth2 to return all user groups on login 配置 Webhook URL 来自 php - Configure Webhook URL From php
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM