Giter Site home page Giter Site logo

Comments (8)

luislora-es avatar luislora-es commented on August 26, 2024 1

Thank you! In my case not a dumb question. In my .env file i had

PERSONAL_CLIENT_ID=1
PERSONAL_CLIENT_SECRET=secret
PERSONAL_CLIENT_ID=2
PERSONAL_CLIENT_SECRET=secret

I change it to PASSWORD and works fine.

from larapi.

Versoo avatar Versoo commented on August 26, 2024

@flik are you sure that you sent request with good credentials? I use that and works fine, i have response with access_token.

from larapi.

Dokujin avatar Dokujin commented on August 26, 2024

@Versoo i'm having the same issue on my ubuntu 16.04, locally it works just fine tho for more info i'm using your fork @Versoo

from larapi.

luislora-es avatar luislora-es commented on August 26, 2024

Same issue on high sierra. Credentials are correct.

from larapi.

Versoo avatar Versoo commented on August 26, 2024

Hi guys, maybe it's dumb question but do you have Passport Clients keys in .env and in Database ?What do you use to test your api? I'm using Postman and my request looks that: http://prntscr.com/jflktk and headers http://prntscr.com/jfll8z

My test server works on Vagrant with Ubuntu 14.04.5 LTS. I installed many version of this repository and I didn't have problems.

from larapi.

julienmiclo avatar julienmiclo commented on August 26, 2024

If you have already launch artisan serve. Laravel create some files in bootstrap/cache. Delete all and relaunch your serve

from larapi.

bolivir avatar bolivir commented on August 26, 2024

If you rerun the db migrations you also need to generate the passport secrets (artisan passport:install)
Otherwise these wont match and you get the InvalidCredentialsException.

So make sure you see the tokens match in youre env file and in the db table oauth_clients.

from larapi.

esbenp avatar esbenp commented on August 26, 2024

Make sure once you have done your migration you install passport and copy the secrets to the .env file. So

1. php artisan migrate
2. php artisan passport:install
3. Copy the secrets from the output into the .env file

See readme for more information

from larapi.

Related Issues (20)

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.