OpenID Connect Relying Party for Node.js and the browser.
- Dynamic Configuration and Client Registration
- Authorization Code, Implicit, and Hybrid grants
- Relying Party initiated logout
- Refresh grant
- Client Credentials grant
- Key rotation using JWK
kid
value - Session management
- front- and back-channel logout
- Request parameters as JWT
- Claims request parameter
- Claims language tags
- OAuth 2.0 Bearer Token requests
...
...
$ npm install @interop-alliance/oidc-rp --save
const RelyingParty = require('@interop-alliance/oidc-rp')
When loaded into an HTML page via <script src="./dist/oidc.rp.min.js"></script>
,
the library is exposed as a global var, OIDC
.
$ git clone https://github.com/interop-alliance/oidc-rp.git
$ cd oidc-rp
$ npm install
Important:
If you're using this library as a dependency and you plan to use Webpack, don't
forget to add the following lines to your webpack.config.js
externals:
section:
externals: {
'node-fetch': 'fetch',
'@sinonjs/text-encoding': 'TextEncoder',
'isomorphic-webcrypto': 'crypto'
}
To build a Webpack-generated bundle:
npm run dist
npm test
- Dmitri Zagidulin
- ES6
- Standard JavaScript
- jsdocs
- @interop/oidc-rp follows the Contributor Covenant Code of Conduct.
Copyright (c) 2016 Anvil Research, Inc. Copyright (c) 2017-2019 The Solid Project