Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwtgck/jwt-piping-server
Piping Server with JWT authentication such as Auth0
https://github.com/nwtgck/jwt-piping-server
auth0 jwt-authentication piping-server
Last synced: about 1 month ago
JSON representation
Piping Server with JWT authentication such as Auth0
- Host: GitHub
- URL: https://github.com/nwtgck/jwt-piping-server
- Owner: nwtgck
- License: mit
- Created: 2020-10-13T00:21:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T08:03:35.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T15:09:29.040Z (4 months ago)
- Topics: auth0, jwt-authentication, piping-server
- Language: TypeScript
- Homepage:
- Size: 7.74 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jwt-piping-server
[Piping Server](https://github.com/nwtgck/piping-server) with JWT authentication such as [Auth0](auth0.com/)The demo below uses Auth0.
![Piping Server with Auth0](demo_assets/auth0-simple-client.gif)## Usage
Here are examples to run server.
```bash
cd
npm ci
npm start -- --jwks-uri https://nwtgck.us.auth0.com/.well-known/jwks.json --jwt-issuer=https://nwtgck.us.auth0.com/ --http-port=8080
```OR
```bash
docker run -p 8080:8080 nwtgck/jwt-piping-server --jwks-uri https://nwtgck.us.auth0.com/.well-known/jwks.json --jwt-issuer=https://nwtgck.us.auth0.com/ --http-port=8080
```Here is how to run simple web client.
```bash
# Static hosting
(cd simple-frontend/ && npx http-server -p 3000)
```Open http://localhost:3000/ on your Web browser.
### Change to your Auth0 setting
You can set your Auth0 `domain` and `client_id` in [simple-frontend/index.html](simple-frontend/index.html).
```js
auth0Promise = createAuth0Client({
domain: "ooo.auth0.com",
client_id: "............",
cacheLocation: 'localstorage',
});
```## Server help
```
Options:
--help Show help [boolean]
--version Show version number [boolean]
--http-port Port of HTTP server [default: 8080]
--jwks-uri JWKs URI (e.g.
https://example.us.auth0.com/.well-known/jwks.json)
[string] [required]
--jwt-issuer JWT issuer (e.g. https://example.us.auth0.com/) [string]
--jwt-audience JWT audience [string]
```