cancel
Showing results for 
Search instead for 
Did you mean: 

Getting started it request user/password. Why

former_member312987
Active Participant
0 Kudos

I am referring to URL:

https://cap.cloud.sap/docs/java/getting-started

Please get back to me on the following feedback:


Why does it request a user/password in the sample project

Thanks in advance

Saludos

Raquel

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

The reason for that is the secure by default principle. If security is configured (e.g. Spring security via cds-starter-cloudfoundry), all endpoints are authenticated. In case of mock configuration (no xsuaa or identity binding), the Java runtime automatically creates default mock users you can use.

In development scenarop you can also configure authentication to a more relaxed mode, e.g. only endpoints with authorizations (@restriction, @requires) are authenticated. See details here.