schedula / laravel-passport-socialite

The missing social authentication plugin (i.e. SocialGrant) for laravel passport.
MIT License
50 stars 31 forks source link

Problem getting oauth token #7

Open slashweb opened 5 years ago

slashweb commented 5 years ago

When i try to get the token the response comes empty, what can i do, the client_id and secret that i am using are password clients

reganlawton commented 5 years ago

@slashweb I found that I had this issue because of CSRF middleware on the route.

swastik009 commented 5 years ago

@reganlawton can u please elaborate the issue, because i am having the same problem and i am pretty new to this.

reganlawton commented 5 years ago

Basic @swastik009 the issue is that you have the CSRF middleware active on that route and a POST request is checking for the CSRF tomen and triggering a failed request.

This was the case for me ofcourse. But I’m on my phone ATM but buzz me back if you need an example of some code to visualise the issue I had.