【问题标题】:Authentication for Spring Cloud Data Flow ServerSpring Cloud 数据流服务器的认证
【发布时间】:2020-10-23 01:57:05
【问题描述】:

我想向 Spring Cloud Data Flow Server 应用程序添加身份验证。我看到有关支持 LDAP 的 Cloud Foundry UAA 的文章。我也尝试了基本身份验证 sn-p,但它不起作用。

我看到很多对链接https://github.com/spring-cloud/spring-cloud-dataflow-samples/tree/master/security-ldap-uaa-example 的引用,其中,ldap 服务器代码正在使用 Apache DSContainer,它已被弃用并且在我的本地无法运行。还有其他方法吗?如果有人可以提供相同的示例代码,我们将不胜感激。

【问题讨论】:

    标签: ldap basic-authentication spring-cloud-dataflow apacheds cloudfoundry-uaa


    【解决方案1】:

    这是一个旧示例,而 apache DS 的存在只是为了让演示在没有读取 ldap 服务器的情况下运行。使用 UAA,ldap 完全支持它来存储用户。

    UAA 不是一个最容易设置的系统,但它是一个配置的起点,可以作为任何 ldap 服务器配置它的起点。

    【讨论】:

    • PFB 我得到的错误堆栈跟踪部分。 " 创建 com.hillert.scdf.ldapserver.LdapserverApplication 中定义的名称为 'apacheDSContainer' 的 bean 时出错:调用 init 方法失败;嵌套异常是 java.lang.NoClassDefFoundError: sun/reflect/Reflection at org.springframework.beans.factory。 support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1745) ~[spring-beans-5.1.1.RELEASE.jar:5.1.1.RELEASE]" 有没有当前的工作示例?
    猜你喜欢
    • 2018-11-10
    • 1970-01-01
    • 1970-01-01
    • 2018-02-15
    • 2018-03-28
    • 1970-01-01
    • 1970-01-01
    • 2018-02-23
    • 2016-10-01
    相关资源
    最近更新 更多