@3kles/3kles-ionauth
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

@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.

Package Sidebar

Install

npm i @3kles/3kles-ionauth

Weekly Downloads

8

Version

2.0.2

License

ISC

Unpacked Size

271 kB

Total Files

9

Last publish

Collaborators

  • jchaut
  • cdasilvacosta
  • qcampos
  • freazgo