An open API service indexing awesome lists of open source software.

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

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)

[![node-test](https://github.com/Soontao/cds-common-jwt-support/actions/workflows/nodejs.yml/badge.svg)](https://github.com/Soontao/cds-common-jwt-support/actions/workflows/nodejs.yml)
[![codecov](https://codecov.io/gh/Soontao/cds-common-jwt-support/branch/main/graph/badge.svg?token=LKyd87mOZw)](https://codecov.io/gh/Soontao/cds-common-jwt-support)
[![npm](https://img.shields.io/npm/v/cds-common-jwt-support)](https://www.npmjs.com/package/cds-common-jwt-support)

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Soontao_cds-common-jwt-support&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Soontao_cds-common-jwt-support)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=Soontao_cds-common-jwt-support&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=Soontao_cds-common-jwt-support)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=Soontao_cds-common-jwt-support&metric=vulnerabilities)](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)