Skip to content

Commit a83e9ee

Browse files
sjvansjohannes-vogelrenejeglinsky
authored
feat: ias token validation (#1862)
Co-authored-by: Johannes Vogel <31311694+johannes-vogel@users.noreply.github.com> Co-authored-by: René Jeglinsky <rene.jeglinsky@sap.com>
1 parent 0768e93 commit a83e9ee

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

node.js/authentication.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,28 @@ npm add @sap/xssec
369369
```
370370
:::
371371
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.
372394
373395
### Custom Authentication { #custom }
374396

0 commit comments

Comments
 (0)