OpenID Connect for plain Javascript SPAs

OpenID Connect for plain Javascript SPAs

Code and documents describing how to implement an OAuth client for a generic SPA

Security Libraries

Curity OAuth Assistant

A Curity library for implementing the Assisted Token Flow and SPA session management

oidc client

A library for implementing the Code Flow (PKCE) and SPA session management

Code Examples

Javascript SPA using Assisted Token Flow

Javascript SPA using Assisted Token Flow

An example that uses the assisted token flow in a simple Javascript app.

Read more
Javascript SPA using Code Flow + PKCE

Javascript SPA using Code Flow + PKCE

A simple Javascript SPA sample using the code flow with PKCE

Read more
Javascript SPA using OAuth Assistant Library

Javascript SPA using OAuth Assistant Library

How to use the Curity OAuth Assistant available on npm in a Single Page Application

Read more

Learn

Best Practices - OAuth for Single Page Applications

Best Practices - OAuth for Single Page Applications

Secure Single Page Applications using OAuth

Read more