@3kles/3kles-ionauth
Version:
45 lines (28 loc) • 858 B
Markdown
# @3kles/3kles-ionauth
This package contains class to manage ION authentication based on [**3kles-corebe**](https://www.npmjs.com/package/@3kles/3kles-corebe)
## Auth
**IonAuth** is a class based on JWKS Client
- **verify**: Check the access token
## Validation
**IonValidation** is a class to validate request
- **validate**: Validate request
## Install
### npm
```
npm install @3kles/3kles-ionauth --save
```
## How to use
How to use
```javascript
process.env.JWKS_URI = 'https://mingle-sso.eu1.inforcloudsuite.com/ext/infor/oauthtoken/jwks';
const app = express();
const port = 80;
app.use(new IonValidation().validate());
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
```
Check the [`documentation`](https://doc.3kles-consulting.com) here.