Skip to content

A fast, light and cloud native OAuth 2.0 authorization microservices based on light-4j

License

Notifications You must be signed in to change notification settings

askagirl/light-oauth2

 
 

Repository files navigation

The fastest, lightest and cloud/container ready OAuth 2.0 Authorization Server based on microservices architecture built on top of Light Java framework.

Developer Chat | Documentation | Contribution Guide |

Build Status

Why this OAuth 2.0 Authorization Server

Fast and small memory footprint to lower production cost.

The Development Edition can support 60000 user login and get authorization code redirect and can generate 700 access tokens per second on my laptop.

It has 7 microservices connected with in-memory data grid and each service can be scaled individually.

More secure than other implementations

OAuth 2.0 is just a specification and a lot of details are in the individual implementation. Our implementation has a lot of extensions and enhancements for additional security and prevent users making mistakes. For example, we have added an additional client type called "trusted" and only this type of client can issue resource owner password credentials grant type.

Seamlessly integration with Light-Java framework

  • Built on top of Light-Java
  • Light-Java Client and Security modules manages all the communication with OAuth2
  • Support service on-boarding from Light-Portal
  • Support client on-boarding from Light-Portal
  • Support user management from Light-Portal
  • Open sourced OpenAPI specifications for all microserivces

Easy to integrate with your APIs or services

The OAuth2 services can be started in a docker compose and for your local devolopment and can managed by Kubernetes on official environment.

Support mutilple databases and can be extended and customized easily

Out of the box, it supports Mysql, Postgres and Oracle XE and H2 for unit tests. Other databases can be easily added with configuration change in service.json.

Public key certificate distribution

With distributed security verification, JWT signature public key certficates must but distributed to all resource servers. The traditional push approach is not working with microservices architecture and pull approach is adopted. There is a key service with endpoint to retrieve public key certificate from microservices during runtime based on the key_id from JWT header.

OAuth2 server, portal and light Java to form ecosystem

light-java to build API

light-oauth2 to control API access

light-portal to manage clients and APIs

About

A fast, light and cloud native OAuth 2.0 authorization microservices based on light-4j

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.3%
  • Other 1.7%