Skip to content

OIDC (OpenID Connect) authentication client for web browsers (Relying Party wrapper)

License

Notifications You must be signed in to change notification settings

interop-alliance/oidc-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenID Connect Web Client (oidc-web)

Build Status npm version

OIDC (OpenID Connect) authentication client for web browsers (Relying Party wrapper)

Authentication client for use in browser-based JS applications.

Table of Contents

Background

Install

$ npm install oidc-web

Usage

const { OIDCWebClient } = require('oidc-web')

let auth = new OIDCWebClient({})

auth.login(issuer)
  .then(session => {
    // logged in session or null
  })

// On Document Ready (or on web framework ready) event:

auth.currentSession()
  .then(session => {
    if (session) {
      // logged in
    } else {
      console.log('please log in')
    }
  })

Develop

Install

git clone https://github.com/solid/oidc-web.git
cd oidc-web
npm install

Test

$ npm test

Coverage

$ npm run coverage

API

tbd

Code of conduct

This project follows the Contributor Covenant Code of Conduct.

Maintainers

License

MIT

About

OIDC (OpenID Connect) authentication client for web browsers (Relying Party wrapper)

Resources

License

Stars

Watchers

Forks

Packages

No packages published