Skip to content

feat: ias token validation #1862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions node.js/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,28 @@ npm add @sap/xssec
```
:::

#### Token Validation

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.
These validations are enabled by default for requests to the app's `cert` route (`.cert` segment in the domain).

The default behavior can be overwritten using additional configuration as follows:

```json
"requires": {
"auth": {
"kind": "ias",
"config": { // passed to @sap/xssec as is
"validation": {
"x5t": { "enabled": false },
"proofToken": { "enabled": false }
}
}
}
}
```

Please see [`@sap/xssec` documentation](https://www.npmjs.com/package/@sap/xssec) for more details.

### Custom Authentication { #custom }

Expand Down
Loading