Coder Social home page Coder Social logo

mshanak / laravel5-oauth2-server- Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 21.0 412 KB

laravel5 project with token based security , ready to use with sample data

Home Page: https://medium.com/@mshanak/laravel-5-token-based-authentication-ae258c12cfea

PHP 99.10% JavaScript 0.53% ApacheConf 0.37%

laravel5-oauth2-server-'s People

Contributors

mshanak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel5-oauth2-server-'s Issues

Does OAuth2 have a limit number of connections?

Does OAuth2 have a limit number of connections? My app when many users connect, some login is in an infinite loop, then 70% can log in and 30% can not, is it something to do with connection limit?

Error when passing closure as callback in configuration

ErrorException: explode() expects parameter 2 to be string, object given in /.../vendor/lucadegasperi/oauth2-server-laravel/src/OAuth2ServerServiceProvider.php:122

When you are passing callback function to the callback param in the oauth2 config you will get the error described. Probably this is why I'm using the very latest version of the lucadegasperi/oauth2-server-laravel...

if (array_key_exists('callback', $grantParams)) {
    list($className, $method) = array_pad(explode('@', $grantParams['callback']), 2, 'verify');
    $verifier = $app->make($className);
    $grant->setVerifyCredentialsCallback([$verifier, $method]);
}

You need to pass Controller@method callback there (or Controller@verify will be called if method is not defined). In the docs it's defined in a similar way https://github.com/lucadegasperi/oauth2-server-laravel/blob/master/docs/authorization-server/choosing-grant.md

Probably versions issue?

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.