https://github.com/femto-apps/lib-authentication-consumer
Library to ease the shift to becoming an authentication consumer
https://github.com/femto-apps/lib-authentication-consumer
authentication authentication-middleware node-js nodejs
Last synced: 2 months ago
JSON representation
Library to ease the shift to becoming an authentication consumer
- Host: GitHub
- URL: https://github.com/femto-apps/lib-authentication-consumer
- Owner: femto-apps
- License: mit
- Created: 2019-03-27T21:12:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T17:33:42.000Z (over 3 years ago)
- Last Synced: 2025-12-04T07:34:03.781Z (7 months ago)
- Topics: authentication, authentication-middleware, node-js, nodejs
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Authentication Consumer Middleware Library
## Description
Library code for an authentication consumer. This library is to be imported in to an euthentication consumer program.
## Usage
This library is designed to be incorported in to an authentication consumer. A usage example is given below.
```
app.use(authenticationConsumer({ options }))
```
`options` is an object with three parts:
- `tokenService: { endpoint }` - The hostname of the token service to use.
- `authenticationProvider: { endpoint, consumerId }` - The hostname of the provider to use and the consumer uuid used by the provider to identify the consumer.
- `authenticationConsumer: { endpoint }` - The hostname of the consumer.