Giter Site home page Giter Site logo

aspaudie / oauth2orizerecipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frankhassanabad/oauth2orizerecipes

0.0 0.0 0.0 479 KB

OAuth2 security recipes and examples based on OAuth2orize

License: MIT License

JavaScript 75.04% Shell 2.69% CSS 7.89% HTML 14.38%

oauth2orizerecipes's Introduction

OAuth2orizeRecipes

Build Status

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/authorization-server
npm install
npm start

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

See the curl folder for headless operations and ad-hoc testing
authorization-server/curl/README.md

Features of the Authorization Server

  • All 4 grant types exposed out of the box
  • Access/Refresh Tokens
  • All Tokens are JWT based tokens
  • Configurable expiration times on tokens
  • Single Sign On (SSO) Example
  • Example of trusted clients
  • REST tokeninfo endPoint for verifying a token is valid.
  • REST revoke endPoint for revoking either an access token or a refresh token.
  • Authorization tokens are only useable once and are short expiring JWT tokens
  • Full tokens are NOT stored in the DB since they are JWT signed tokens. Only ID's of tokens are stored.
  • SSL/HTTPS usage
  • Unit and Integration tests of the majority of code and OAuth2 flows
  • More complex UI Examples for the Sign In/Login and the Decision Screens

oauth2orizerecipes's People

Contributors

0xgeert avatar frankhassanabad avatar gswalden avatar hygkui avatar idangozlan avatar johnmclear avatar jrmlstf avatar mlersch avatar rdsubhas avatar yunusd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.