Skip to content

ltullman/Oauth2orizeRecipes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth2orizeRecipes

OAuth2 security recipes and examples based on OAuth2orize.

The express2 example from OAuth2orize is a great and simple minimal OAuth2 Server in Node.js. It is an example you can use to get an idea of how to write your own OAuth2 Server in Node.js. The recipes here are built from it and are more complete but also a bit more complex.

Sign In

You can see a demo of it in action here

Installation

git clone https://github.com/FrankHassanabad/Oauth2orizeRecipes.git
cd Oauth2orizeRecipes/resource-server
npm install
node app.js

Go here for how to use the REST API
https://github.com/FrankHassanabad/Oauth2orizeRecipes/wiki/OAuth2orize-Authorization-Server-Tests

Go here for high level views of security scenarios
https://github.com/FrankHassanabad/Oauth2orizeRecipes/wiki/Security-Scenarios

Features of the Authorization Server

  • All 4 grant types exposed out of the box
  • Access/Refresh Tokens
  • Configurable expriation times on tokens
  • Single Sign On (SSO) Example
  • Example of trusted clients
  • In-Memory or persistent tokens through MongoDB
  • In-Memory or persistent web sessions through connect-mongo
  • REST tokeninfo endPoint for verifying a token is valid.
  • Authorization tokens are only useable once
  • SSL/HTTPS usage
  • More complex UI Examples for the Sign In/Login and the Decision Screens

About

OAuth2 security recipes and examples based on OAuth2orize

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published