【问题标题】:Install SAML 2.x安装 SAML 2.x
【发布时间】:2016-08-14 16:13:03
【问题描述】:

我正在尝试安装 SAML,如下所述: http://sphoortia.github.io/grails-spring-security-saml/docs/guide/usage.html 但是我在我的 spring 安全核心依赖项中遇到了错误:

plugins\spring-security-core-2.0.0\src\java\grails\plugin\springsecurity\web\access\intercept\ChannelFilterInvocationSecurityMetadataSourceFactoryBean.java:80: error: cannot find symbol           map.put(new AntPathRequestMatcher(entry.getKey()), SecurityConfig.createList(value));

如您所见,我使用的是 spring-security-core:2.0.0。我会说我的应用程序的 spring 安全核心依赖项与 SAML 的依赖项之间存在一种冲突。我的 BuildConfig 可以在下面找到(当然还有更多的依赖和插件,我只是添加了相关的)`

dependencies {
        compile ("org.springframework.security.extensions:spring-security-saml2-core:1.0.1.RELEASE") {
            export = false
        }
    }

    plugins {
       compile ":spring-security-core:2.0.0"
        compile ':spring-security-saml:2.0.0'

    }`

我看到,spring-security-saml-2.0.0 已安装,但我在 spring security 核心,在 spring security web classes 中遇到问题。 请问我可以提供一些帮助/建议吗?

【问题讨论】:

    标签: grails spring-security saml-2.0 spring-saml


    【解决方案1】:

    嗯,我确实找到了答案。我必须排除依赖项

        dependencies {
            // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
            compile ("org.springframework.security.extensions:spring-security-saml2-core:1.0.2.RELEASE"){
                export = false
                excludes "spring-security-web"
            }
        }
    

    【讨论】:

      【解决方案2】:

      我也遇到了同样的问题,可以通过以下方式解决

      compile ("org.springframework.security.extensions:spring-security-saml2-core:1.0.1.RELEASE") {
              export = false
              excludes 'spring-security-core'
              excludes 'spring-security-web'
          }
      

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-17
      • 1970-01-01
      • 1970-01-01
      • 2016-08-18
      • 2020-07-26
      • 1970-01-01
      相关资源
      最近更新 更多