Git Product home page Git Product logo

passport's Introduction

Laravel Passport w/ Client UUIDs

Introduction

This is a fork of heisan/passport of the for laravel/passport package with added support for Client UUIDs. This package will be kept up-to-date with the latest laravel/passport version.

This package retains the oauth_clients.id column for indexing & internal use, while adding a char(32) oauth_clients.uuid column used for public-facing requests, both authorization and lookup.

It uses vend/mysql-uuid to generate a reordered, optimized Uuid based on https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/

Usage

To start using Client UUIDs, open up your AppServiceProvider.php file and add:

// AppServiceProvider.php
...

public function boot()
{
    // Add this line along with your other Passport options
    Passport::useClientUUIDs();

    // If you're using custom migrations, you will need to run
    // the passport:uuid command after running migrations
    Passport::ignoreMigrations();

    // OR add in the $t->char('uuid', 32); column to the migration yourself.
}

...

If you are starting from a fresh installation, the migrations have already been modified to add a uuid column. If you are continuing from a pre-existing installation, you need to run:

php artisan passport:uuid

in order to update your current tables. If you are running a custom connection for your database driver, you'll need to modify the migration file manually to have it use the correct connection.

License

Laravel Passport is open-sourced software licensed under the MIT license

passport's People

Contributors

bhosie avatar ekoeryanto avatar geethpw avatar gorog avatar jasrys avatar jaybizzle avatar jbrooksuk avatar jesseobrien avatar juandmegon avatar kevindierkx avatar lbausch avatar livingos avatar lucasmichot avatar marsderp avatar modelizer avatar morloderex avatar oyed avatar petervmeijgaard avatar rdelorier avatar ryantheallmighty avatar ryun avatar samgreenwood avatar sebastians90 avatar shkeats avatar strebl avatar taylorotwell avatar themsaid avatar tomschlick avatar uxweb avatar vinkla avatar

Watchers

 avatar  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.