@3kles/3kles-ionauth
v2.0.2
Published
3KLES Ion Auth
Downloads
302
Readme
@3kles/3kles-ionauth
This package contains class to manage ION authentication based on 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
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
here.