Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vandium-io/jwks-source
Gets JWKS from a source
https://github.com/vandium-io/jwks-source
Last synced: 3 days ago
JSON representation
Gets JWKS from a source
- Host: GitHub
- URL: https://github.com/vandium-io/jwks-source
- Owner: vandium-io
- License: bsd-3-clause
- Created: 2020-01-23T13:26:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:34:39.000Z (about 2 years ago)
- Last Synced: 2024-04-15T00:14:53.375Z (9 months ago)
- Language: JavaScript
- Size: 522 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/vandium-io/jwks-source.svg?branch=master)](https://travis-ci.org/vandium-io/jwks-source)
[![npm version](https://badge.fury.io/js/jwks-sourcesvg)](https://badge.fury.io/js/jwks-source)# `jwks-source`
Module for retrieving JWKS
## Features
* Synchronous and asynchronous methods
* Node.js 12.x compatible, works in AWS Lambda environments## Installation
Install via npm.npm install jwks-source --save
## Getting Started
```js
const { Provider } = require( 'jwks-source' );const jwks = Provider.AWSCognito({
userPoolId = 'us-east-1_ZLPZ8Z7yS',
region: 'us-east-1'
}).getAsync();// jwks.keys = [ { jws instance}, ... ]
// jwks.id( kid ) // to get with a specific id
```## Feedback
We'd love to get feedback on how to make this tool better. Feel free to contact
us at `[email protected]`## License
[BSD-3-Clause](https://en.wikipedia.org/wiki/BSD_licenses)