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: node.js/authentication.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -391,6 +391,31 @@ The default behavior can be overwritten using additional configuration as follow
391
391
392
392
Please see [`@sap/xssec` documentation](https://www.npmjs.com/package/@sap/xssec) for more details.
393
393
394
+
#### XSUAA Fallback
395
+
396
+
To ease your migration from XSUAA-based to IAS-based authentication, the `ias` strategy automatically supports tokens issued by XSUAA when you provide the necessary credentials at `cds.env.requires.xsuaa.credentials`.
397
+
398
+
For standard bindings, add `xsuaa` to the list of required services as follows:
399
+
400
+
```json
401
+
"requires": {
402
+
"auth":"ias", //> as above
403
+
"xsuaa":true
404
+
}
405
+
```
406
+
407
+
In case additional configuration is necessary, you can also provide an object:
408
+
409
+
```json
410
+
"requires": {
411
+
"xsuaa": {
412
+
"config": { // passed to @sap/xssec as is
413
+
[...]
414
+
}
415
+
}
416
+
}
417
+
```
418
+
394
419
### Custom Authentication { #custom }
395
420
396
421
You can configure an own implementation by specifying an own `impl` as follows:
0 commit comments