如何设置Spring Cloud Data Flow安全性

问题描述 投票:0回答:1

我如何设置Spring Cloud Data Flow安全性(登录页面,用户,密码...)我试图在application.properties中使用以下这些属性,但是它不起作用:

security.basic.enabled = true
security.basic.realm = Spring Cloud Data Flow
security.user.name = admin
security.user.password = admin
security.user.role = VIEW,CREATE,MANAGE
spring spring-cloud-dataflow
1个回答
1
投票

请完整阅读参考指南中的security configuration部分。

SCDF中没有提供真正的basic-auth作为选项。它曾经在1.7.x中存在,但是自SCDF 2.0.x开始不赞成使用OAuth + OIDC标准化。这意味着您将必须使用OAuth身份提供程序来设置您的自定义身份验证和授权工作流程。

您可以使用OAuth2 + OIDC支持的Password Grant Type作为模仿基于用户名和密码的身份验证工作流的机制。 UAA也可以用作身份提供者。我们有一个sample on this subject

© www.soinside.com 2019 - 2024. All rights reserved.