cost 118 ms
如何在 Grails Spring 安全插件中自定义默认 AuthenticationEventPublisher 的异常映射 - How can I customize exception mappings of default AuthenticationEventPublisher in Grails Spring Security Plugin

背景: 在我的项目中,我需要通过扩展DaoAuthenticationProvider来实现双因素身份验证(通过将 OTP 发送到注册电子邮件)。 为了确定 OTP 身份验证失败的原因,我的自定义身份验证提供程序抛出新的自定义异常,例如BadOtpException 、 ExpiredOtpExce ...

Grails 3.3.2 Spring 安全 CAS 不能通过负载平衡器工作,但可以通过部署在其上的内部服务器正常工作 - Grails 3.3.2 Spring Security CAS not working through load balancer but works fine through internal server it is deployed on

我们有一个 Grails 3.3.2 应用程序,它使用 Spring 安全核心和 Spring 安全 CAS 插件。 使用自定义 userDetailsService class 从 Oracle 数据库获取用户信息。 此应用程序通过 CAS 登录很好,当命中部署了应用程序实例的 tomcat 服务 ...

创建名称为'securityTagLib'的bean时出错-(grails-spring-security-saml插件) - Error creating bean with name 'securityTagLib' - (grails-spring-security-saml plugin)

我们目前正在使用带有SAML的PingFederate实现SSO。 在此过程中,我们还将从Grails 2.4.4升级到Grails 3.3.9。 我们在开发过程中没有问题,但是在tomcat上部署项目的war文件时,我们似乎在SAML插件和spring-security-core之间遇 ...

Grails 3:单元测试拦截器:不会在拦截器中停止 - Grails 3: Unit Testing Interceptors: Doesn't halt in interceptor

出于演示目的,我使用这些文件设置了一个新的 grails 应用程序: 当我到达http://localhost:8080/hallo 时, “halloechen”被打印出来,因为它被设置为拦截器before()方法中的一个请求属性,就像我想要的那样。 现在我想对拦截器进行单元测试: 此测 ...

包含g:include的布尔参数作为字符串传递给包含的视图 - Include boolean params with g:include are passed as Strings to the included view

我不知道以下更改是一个问题还是意图。 然后line.gsp aways中的表达式求值为true,因为'progress'参数的类型是String,而不是Boolean。 请注意,这同样适用于其他类型,而不仅仅是布尔值。 我正在使用grails 3.3.8这不会发生在grails ...

Grails 3集成测试-数据加载 - Grails 3 integration test - data loading

Grails版本:3.3.5 我正在将旧版Web应用程序移植到最新版本。 有500多个集成测试。 每种集成测试方法都需要在测试开始之前在数据库中加载复杂的数据,并在测试结束时对其进行清理。 数据加载以及随后的测试代码应在一个事务中运行,以便测试代码能够看到加载的数据。 我尝试使用s ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM