cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting started it request user/password. Why

former_member312987
Active Participant
0 Kudos
502

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

View Entire Topic
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.