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
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -369,6 +369,28 @@ npm add @sap/xssec
369
369
```
370
370
:::
371
371
372
+
#### Token Validation
373
+
374
+
For tokens issued by SAP Cloud Identity Service, `@sap/xssec` offers two additional validations: (1) token ownership via x5t thumbprint and (2) proof-of-possession.
375
+
These validations are enabled by default for requests to the app's `cert` route (`.cert` segment in the domain).
376
+
377
+
The default behavior can be overwritten using additional configuration as follows:
378
+
379
+
```json
380
+
"requires": {
381
+
"auth": {
382
+
"kind":"ias",
383
+
"config": { // passed to @sap/xssec as is
384
+
"validation": {
385
+
"x5t": { "enabled":false },
386
+
"proofToken": { "enabled":false }
387
+
}
388
+
}
389
+
}
390
+
}
391
+
```
392
+
393
+
Please see [`@sap/xssec` documentation](https://www.npmjs.com/package/@sap/xssec) for more details.
0 commit comments