Laravel-Passport-Android | Laravel Passport for an Android App | Authentication library
kandi X-RAY | Laravel-Passport-Android Summary
kandi X-RAY | Laravel-Passport-Android Summary
Laravel + Passport for an Android App
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Authenticate a user
- Respond to an access token
- Issue a token
- Revokes the given access token .
- Create the users table .
- Make a new SocialGrant instance .
- Handle the guard .
- Create new user .
- Define routes .
- Handle unauthenticated user .
Laravel-Passport-Android Key Features
Laravel-Passport-Android Examples and Code Snippets
Community Discussions
Trending Discussions on Laravel-Passport-Android
QUESTION
The Problem
I've been trying to use Laravel Passport and I'm countinously getting the error {"error":"invalid_client","message":"Client authentication failed"}. I have used it in this Android and Laravel project but I just can register the user correctly as I see the proper data in the database. Then when the Android app tries to get the access token it crashes because the server return the previous error message.
I have also been following this YouTube tutorial exactly as it is explained but I got this error at the part it sends the "access token request".
What I have triedI have tried to fix this using this Stack Overflow page, this GitHub and many other webpages page but nothing worked
Possible causeI think that it might be the uncompatibility of my laravel version and passport (see below). I have manually changed laravel version to 5.4 but I got a composer error. I don't want to reinstall laravel because i think I could crash all my laravel projects.
The 'user_id' column has to be populated by laravel (I have manually changed it to the user_id of the user and after that I restored it to zero)
...How to print data to the console? I use error_log() but I can't print variable names and with dd()I get and error saying that the variable couldn't be converted to string.
ANSWER
Answered 2017-Dec-08 at 15:19- you have to wrong pass client_id and client_password
- if you have to right pass client_id and client_password then check in the database table oauth_clients client_id and client_password is row inserted or not if not added then run this command in console
php artisan passport:client
this will register client_id and client_password and then check that in this table(oauth_clients) if not added then maunally added client_id and client_passsword
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Laravel-Passport-Android
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page