Skip to content

Commit

Permalink
Update node.js/authentication.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvans authored Aug 31, 2023
1 parent ece9491 commit aad5ca5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node.js/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ module.exports = function custom_auth (req, res, next) {
## Authentication Enforced in Production
In a productive scenario with an authentication strategy configured, for example the default `xsuaa`, all CAP service endpoints are authenticated by default, regardless of the authorization model. That is, all services without `@restrict` or `@requires` implicitely get `@requires: 'authenticated-user'`. This can be disabled via feature flag `cds.env.requires.auth.restrict_all_services: false`, or by using [mocked authentication](#mocked) explicitly in production.
In a productive scenario with an authentication strategy configured, for example the default `xsuaa`, all CAP service endpoints are authenticated by default, regardless of the authorization model. That is, all services without `@restrict` or `@requires` implicitely get `@requires: 'authenticated-user'`.
This can be disabled via feature flag `cds.env.requires.auth.restrict_all_services: false`, or by using [mocked authentication](#mocked) explicitly in production.
## XSUAA in Hybrid Setup {#xsuaa-setup}
Expand Down

0 comments on commit aad5ca5

Please sign in to comment.