Comments (8)
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.
@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.
@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.
Same issue on high sierra. Credentials are correct.
from larapi.
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.
If you have already launch artisan serve. Laravel create some files in bootstrap/cache. Delete all and relaunch your serve
from larapi.
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.
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)
- Inbound & outbound webhooks
- how to use views in larapi HOT 2
- proposal: artisan command to bootstrap new resources
- Problems using array parameters on Route::group() HOT 7
- Want to login user without password(for google and facebook verfied user.)
- Hard to integrate to existing projects HOT 3
- InvalidCredentialsException
- can't get acess token in LoginProxy HOT 5
- Laravel Excel export response
- Get user in LoginProxy HOT 6
- How can I manage more than one client in the proxy?
- Upgrade to laravel 5.6 HOT 2
- How does larapi authenticate a user when login? Can I change another password encryption method?
- How to consume with JS App? HOT 2
- Login with email only HOT 1
- Just some questions
- what's the point on having a proxy ? HOT 4
- InvalidCredentialsException when getting access token via POST
- Too many connections error sql
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from larapi.