oauth2orize / todosas-bearer-paseto

OAuth 2.0 server using Express and OAuth2orize to issue encrypted PASETO bearer tokens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todosas-bearer-paseto

This app illustrates how to build an OAuth 2.0 server using Express, OAuth2orize, and Passport. Use this example as a starting point for your own authorization server.

Quick Start

To run this app, clone the repository and install dependencies:

$ git clone https://github.com/oauth2orize/todosas-bearer-jwt.git
$ cd todosas-bearer-jwt
$ npm install

Then start the server.

$ npm start

Overview

This example illustrates how to build an OAuth 2.0 authorization server that supports clients using the web-based authorization code and implicit grants. The access tokens issued to clients are bearer tokens, the contents of which are encoded in Platform-Agnostic Security Tokens (PASETO) format and encrypted using version 2.

This app implements sign in and consent functionality. User interaction is performed via HTML pages and forms, which are rendered via EJS templates and styled with vanilla CSS. Data is stored in a SQLite database.

This app exposes OAuth 2.0 endpoints, allowing it to manage access to other apps and APIs that rely on this server. This provides the ability to offer single sign-on (SSO) to a suite of apps and control third-party access to protected APIs.

License

The Unlicense

Credit

Created by Jared Hanson

About

OAuth 2.0 server using Express and OAuth2orize to issue encrypted PASETO bearer tokens.

License:The Unlicense


Languages

Language:JavaScript 61.9%Language:CSS 27.5%Language:EJS 10.6%