Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/IdentityModel/oidc-client-js
OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
https://github.com/IdentityModel/oidc-client-js
Last synced: 7 days ago
JSON representation
OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
- Host: GitHub
- URL: https://github.com/IdentityModel/oidc-client-js
- Owner: IdentityModel
- License: apache-2.0
- Archived: true
- Created: 2015-03-04T02:16:41.000Z (over 9 years ago)
- Default Branch: dev
- Last Pushed: 2022-03-03T13:17:13.000Z (over 2 years ago)
- Last Synced: 2024-10-08T21:10:36.671Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 56.4 MB
- Stars: 2,430
- Watchers: 89
- Forks: 842
- Open Issues: 116
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - oidc-client-js - based JavaScript applications | IdentityModel | 2209 | (JavaScript)
README
# No Longer Maintained
This library, while functional, is no longer being maintained.
A successor project that is showing great progress in updating and modernizing is "oidc-client-ts" and can be found [here](https://github.com/authts/oidc-client-ts).
--------------------------------------------------
[![npm package](https://badge.fury.io/js/oidc-client.svg)](https://www.npmjs.com/package/oidc-client)
# oidc-client
Library to provide OpenID Connect (OIDC) and OAuth2 protocol support for client-side, browser-based JavaScript client applications.
Also included is support for user session and access token management.## Install
##### Node.js
Node.js v4.4 or later required.
##### NPM
`npm install oidc-client --save`
**NOTE**: if you're not already using [babel-polyfill](https://www.npmjs.com/package/babel-polyfill) make sure you run
`npm install --save babel-polyfill` as well. Then include it in your build.##### CommonJS
If you don't use a package manager or a module loader, then you can get the library from the `dist` folder on github [here](dist).## Including in the browser
If you intend to use this library directly in a browser and are not using UMD/AMD then there is a compiled version in the [~/dist](dist) folder.
It is already bundled/minified and contains the necessary dependencies and polyfills (mainly for ES6 features such as Promises).If you are using UMD/AMD and/or you already have included an ES6 polyfill (such as babel-polyfill.js) then you can include the UMD packaged version of the file from the [~/lib](lib) folder.
## Building the Source
```
git clone https://github.com/IdentityModel/oidc-client-js.git
cd oidc-client-js
npm install
npm run build
```## Running the Sample
`npm start`
and then browse to [http://localhost:15000](http://localhost:15000).
## Running the Tests
`npm test`
## Docs
Some initial docs are [here](https://github.com/IdentityModel/oidc-client-js/wiki).
## Feedback, Feature requests, and Bugs
All are welcome on the [issue tracker](https://github.com/IdentityModel/oidc-client-js/issues).