https://github.com/soontao/cds-common-jwt-support
support jwt without xsuaa ans xssec, and give user much more features with jose
https://github.com/soontao/cds-common-jwt-support
cap cds sap
Last synced: 3 months ago
JSON representation
support jwt without xsuaa ans xssec, and give user much more features with jose
- Host: GitHub
- URL: https://github.com/soontao/cds-common-jwt-support
- Owner: Soontao
- License: other
- Created: 2022-02-21T08:48:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-19T13:38:16.000Z (11 months ago)
- Last Synced: 2024-11-19T14:44:23.059Z (11 months ago)
- Topics: cap, cds, sap
- Language: TypeScript
- Homepage:
- Size: 1.33 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cds common jwt support
> support `jwt` without xsuaa ans xssec, and give user much more features with [`jose`](https://github.com/panva/jose)
[](https://github.com/Soontao/cds-common-jwt-support/actions/workflows/nodejs.yml)
[](https://codecov.io/gh/Soontao/cds-common-jwt-support)
[](https://www.npmjs.com/package/cds-common-jwt-support)
[](https://sonarcloud.io/summary/new_code?id=Soontao_cds-common-jwt-support)
[](https://sonarcloud.io/summary/new_code?id=Soontao_cds-common-jwt-support)
[](https://sonarcloud.io/summary/new_code?id=Soontao_cds-common-jwt-support)
## Get Started
> simply integrate the `cds-common-jwt-support` to you CAP nodejs project
```bash
npm i -S cds-common-jwt-support jose
```
`package.json`
```json
{
"requires": {
"auth": {
"kind": "common-jwt",
"credentials": {
"alg": "RS256",
"public": {
"spki": "-----BEGIN PUBLIC KEY-----......",
"x509": "X509 format public key",
"pkcs8": "PKCS8 format public key",
}
}
},
"kinds": {
"common-jwt": {
"impl": "cds-common-jwt-support"
}
}
}
}
```
## [CHANGELOG](./CHANGELOG.md)
## [LICENSE](./LICENSE)