• This repository has been archived on 03/Mar/2022
  • Stars
    star
    2,428
  • Rank 18,945 (Top 0.4 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications

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.


npm package

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

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

Running the Tests

npm test

Docs

Some initial docs are here.

Feedback, Feature requests, and Bugs

All are welcome on the issue tracker.

More Repositories

1

IdentityModel

.NET standard helper library for claims-based identity, OAuth 2.0 and OpenID Connect.
C#
1,027
star
2

IdentityModel.OidcClient

Certified C#/NetStandard OpenID Connect Client Library for native mobile/desktop Applications (RFC 8252)
C#
585
star
3

IdentityModel.AspNetCore

ASP.NET Core helper library for claims-based identity, OAuth 2.0 and OpenID Connect.
C#
306
star
4

IdentityModel.OidcClient.Samples

C#
289
star
5

AuthorizationServer

Sample implementation of an OAuth2 Authorization Server
C#
280
star
6

IdentityModel.AspNetCore.OAuth2Introspection

ASP.NET Core authentication handler for OAuth 2.0 token introspection
C#
146
star
7

IdentityModel.PCL

A PCL helper library for claims-based identity, OAuth 2.0 and OpenID Connect.
C#
94
star
8

oidc-token-manager

JavaScript
51
star
9

IdentityModel.OidcClient.Old

OpenID Connect Client Library for Native Applications
C#
38
star
10

OidcCli

.NET Tool for running IdentityModel.OidcClient from the Command Line
C#
17
star
11

IdentityModel.AspNetCore.AccessTokenValidation

C#
13
star
12

IdentityModel.Owin.BasicAuthentication

Basic Authentication Middleware
C#
11
star
13

IdentityModel.AspNetCore.ScopeValidation

[deprecated] Scope validation middleware for ASP.NET Core 1
C#
10
star
14

Documentation

Documentation for the IdentityModel family of libraries
6
star
15

UwpOidcClient

Sample Universal Windows Platform (Windows 10) OpenID Connect Client
C#
3
star
16

IdentityModel.Owin.ClaimsTransformation

Claims Transformation Middleware for OWIN/Katana
C#
2
star
17

IdentityModel.HttpSigning

A Method for Signing HTTP Requests for OAuth (https://tools.ietf.org/html/draft-ietf-oauth-signed-http-request-02)
C#
1
star
18

.github

1
star
19

IdentityModel.Owin.PopAuthentication

Authentication Middleware for Proof of Possession Tokens
C#
1
star