You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/security/authentication.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,11 +117,19 @@ As the mock user authentication is active, all (CAP) endpoints are [authenticate
117
117
To simplify the development scenario, you can set <Configjava>cds.security.authentication.mode = "model-relaxed"</Config> to deactivate authentication of endpoints derived from unrestricted CDS services.
118
118
:::
119
119
120
-
If you stay with the standard authentication mode, sending the OData request `curl http://localhost:8080/odata/v4/CatalogService/Books --verbose`
121
-
results in a `401` error response from the server, indicating that the anonymous user has been rejected due to missing authentication.
120
+
If you stay with the standard authentication mode, sending the OData request results in a `401` error response from the server, indicating that the anonymous user has been rejected due to missing authentication.
This is the case for all endpoints including the web application page at `/index.html`.
123
127
124
-
Mock users require **basic authentication**, hence sending the same request on behalf of mock user `admin` (password: `admin`) with `curl http://admin:admin@localhost:8080/odata/v4/CatalogService/Books` returns successfully (HTTP response `200`).
128
+
Mock users require **basic authentication**, hence sending the same request on behalf of mock user `admin` (password: `admin`) returns successfully (HTTP response `200`).
This results in a `401` error response from the server indicating that the anonymous user has been rejected due to missing authentication.
141
149
This is true for all endpoints including the web application page at `/index.html`.
142
150
143
-
Mock users require **basic authentication**, hence sending the same request on behalf of mock user `alice` (no password) with
151
+
Mock users require **basic authentication**, hence sending the same request on behalf of mock user `alice` (no password) returns successfully (HTTP response `200`).
0 commit comments