Zach Pham
Zach Pham

Reputation: 290

How to setup Spring Cloud Data Flow security

How could I setup Spring Cloud Data Flow security (login page, user, pass,...) I have tried to use these following properties in application.properties but it does not work:

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

Upvotes: 1

Views: 2742

Answers (1)

Sabby Anandan
Sabby Anandan

Reputation: 5651

Please review the security configuration section from the reference guide in entirety.

There's no true basic-auth as an option that is provided in SCDF. It used to be in 1.7.x, but that has been deprecated in favor of OAuth+OIDC standardization since SCDF 2.0.x. That means you will have to use an OAuth identity provider to set up your custom authentication and authorization workflows.

You could use the Password Grant Type supported by OAuth2+OIDC as the mechanism to mimic the username+password-based authentication workflow. UAA can be used as an identity provider, as well. We have a sample on this subject.

Upvotes: 2

Related Questions