oidc-client-ts

OpenID Connect (OIDC) & OAuth2 client library

Usage no npm install needed!

<script type="module">
  import oidcClientTs from 'https://cdn.skypack.dev/oidc-client-ts';
</script>

README

oidc-client-ts

Stable Release Pipeline Codecov

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.

This is a forked version of the oidc-client-js library, which has been archived and is no longer maintained. This version has been refactored from JavaScript to TypeScript. Trying to keep the API as compatible as possible. The support for the outdated implicit flow has been removed. When migrating see here.

Contributions and help is much appreciated!

Implements the following OAuth 2.0 protocols and supports OpenID Connect:

Table of Contents

Installation

Using npm

$ npm install oidc-client-ts

Building the Source

$ git clone https://github.com/authts/oidc-client-ts.git
$ cd oidc-client-ts
$ npm install
$ npm run build

Running the Sample

Parcel project

$ npm run -w parcel-sample start

and then browse to http://localhost:1234.

Angular app

can be found here.

Running the Tests

$ npm test

Contributing

We appreciate feedback and contribution to this repo!

License

This project is licensed under the Apache-2.0 license. See the LICENSE file for more info.