Code Monkey home page Code Monkey logo

laravel-jwks's Introduction

ShipSaaS - Laravel JSON Web Key Sets (JWKS)

Build & Test (PHP 8.2) codecov

Provide libraries to help you deal with JSON Web Key Sets (JWKS) in Laravel ๐Ÿ˜‰

Documentation: ShipSaaS Laravel JWKS

Supports

  • Laravel 10+
  • PHP 8+
  • RSA algorithm only (for now)

Sample use cases

Ever thought of microservices? One of the biggest challenges is having the Authentication (& Authorization) service.

However, you don't have to spend enormous time building a brand new AuthService and migrating the current users.

Your current app = the core, the heart of everything. Let's build satellite services around that.

laravel-jwks-diagram.png

With (Laravel) JWKS, we will have:

  • The main app exposes the JWKs internally for the satellite microservices.
  • The satellite services can simply obtain the JWKs and verify the signed JWT token before handling the actual requests.

JWKS is supported in multiple languages e.g.: Node.js, Go,...

Installation

Install the library:

composer require shipsaas/laravel-jwks

Export config

php artisan vendor:publish --tag=laravel-inbox-process

Documentation & Usage

Visit: ShipSaaS Laravel JWKS

Best practices & notes are well documented too ๐Ÿ˜Ž!

Testing

Run composer test ๐Ÿ˜†

Available Tests:

  • Unit Testing
  • Feature Testing with REAL KEYs

Contributors

  • Seth Phat

Contributions & Support the Project

Feel free to submit any PR, please follow PSR-1/PSR-12 coding conventions and testing is a must.

If this package is helpful, please give it a โญ๏ธโญ๏ธโญ๏ธ. Thank you!

License

MIT License

laravel-jwks's People

Contributors

sethsandaru avatar

Stargazers

 avatar  avatar

Forkers

drmmr763

laravel-jwks's Issues

Not compatible with Composer

You need to add it to packagist.org and add at least one release (tag). As of now one has to add the repo to composer.json and specifically use the main-branch. Or maybe it is not release ready yet?

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.