Skip to content

Commit 572d7dc

Browse files
[cds^9.2] feat: XSUAA Fallback (#1987)
Co-authored-by: René Jeglinsky <rene.jeglinsky@sap.com>
1 parent 9548805 commit 572d7dc

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

node.js/authentication.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,31 @@ The default behavior can be overwritten using additional configuration as follow
391391
392392
Please see [`@sap/xssec` documentation](https://www.npmjs.com/package/@sap/xssec) for more details.
393393
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+
394419
### Custom Authentication { #custom }
395420
396421
You can configure an own implementation by specifying an own `impl` as follows:

0 commit comments

Comments
 (0)