curityio / spa-using-curitytokenhandler

Demonstrates Hardened Security for Single Page Applications
https://curity.io/resources/learn/token-handler-spa-example/
Apache License 2.0
3 stars 1 forks source link
code-example oauth2 openid-connect react spa token-handler

SPA using the Token Handler from Curity

Quality Availability

An example Single Page Application (SPA) client that uses the production supported backend components.\ The SPA uses an API-driven OAuth 2.0 and OpenID Connect flow:

Logical Components

The SPA follows best practices for browser based apps with no tokens in the browser.\ The SPA transports access tokens to APIs using HTTP-only SameSite=strict cookies.

Architecture Benefits

This provides the best separation of web and API concerns, to maintain all of the benefits of an SPA architecture:

Simple Code in Apps

This repository demonstrates the business focused components you should need to develop:

It also provides an example deployment so that you can understand the moving parts.

Run the End-to-end Flow

The SPA can be quickly run in an end-to-end flow on a development computer by following this guide:

Website Documentation

See the following resources for further information and tutorials:

More Information

Please visit curity.io for more information about the Curity Identity Server.