All Questions
111 questions
0
votes
0
answers
31
views
Best way to authenticate and identify individual screens in a Laravel API using Passport
I'm fairly new to Laravel, and I'm working on a project for independent restaurants to have ordering screens (similar to those at McDonald's).
This is an API-based application, and I'm using Laravel ...
0
votes
0
answers
349
views
Attempt to read property "secret" on null
I'm trying to develop my first webapp with Laravel so I can practice a bit but I've hit a roadblock right at the beginning. I didn't find anything on google regarding this problem, and I already tried ...
0
votes
0
answers
45
views
How to Auth a Client Service with Laravel Passport, NOT a user
I have multiple Laravel applications: the main application and the microservice. I use Laravel Passport.
The main application provides API Endpoints for the microservice. Since this involves complaint ...
0
votes
1
answer
131
views
How to securely migrate MD5 hashed passwords to bcrypt on user's first login with Laravel Passport?
I have a Laravel application where I've recently migrated users from an old system. The passwords in the old system were hashed using MD5.
I've successfully implemented a solution using Laravel ...
3
votes
0
answers
222
views
How do you setup Laravel Passport so it returns JWTs for multiple types of authentication?
so I am stuck on this for several days now. My ultimate goal is to break down an old monolith application into a micro-service architecture and the very 1st step is to extract quite complex ...
1
vote
1
answer
591
views
Laravel Passport login user by custom method, without password
Hello I am using Passport as auth provider.
Now I need to login an user programmatically, skipping the password requirement, creating the authtoken and all.
This is what I am trying:
User model
//...
0
votes
0
answers
238
views
Laravel 9 + Passport not return data with the success (200) response
In my company we are developing management software with the php stack (Laravel9 with API) + mysql and Passport for login.
By decision of the development team we are developing and testing the API all ...
14
votes
4
answers
29k
views
Call to undefined method Laravel\Passport\Passport::routes()
I tried to use Laravel-passport so I installed this package in my project, but when i wanted to make route
i wrote this code in the AuthServiceProvider
public function boot()
{
$this->...
0
votes
2
answers
684
views
Login using passport not return bearer token instead - Laravel 8
I am facing a problem where when I tried to login in postman, the data return after login is not a bearer token but such like this
{
"success": true,
"message": "User ...
2
votes
4
answers
3k
views
Laravel 9 - Not able to generate token with passport
The below is my login function in laravel 9 project. I am trying to create an authentication token through laravel-passport.
public function login(Request $request) {
$user = User::where('email', $...
-2
votes
2
answers
946
views
How to make login as other user in API using laravel passport?
I am using laravel passport for API authentication. and I want to log in as different users with different roles from superadmin. So how can I achieve this? Please give your suggestions.
public ...
0
votes
1
answer
1k
views
Laravel passport – how can I check the validity of refresh token (while not revoking it)?
Using Laravel Passport, how can I check if a refresh token is still valid?
I'm not asking about the access token: that one I can verify by requesting any rout implementing the Route::middleware(auth:...
-1
votes
1
answer
586
views
laravel passport optional authentication
I have been using Laravel passport to response Api data, I want to response favorite status by user of product if a user login (token paste in header to validate with passport authentication ...
1
vote
0
answers
335
views
Login user in whole laravel system - web and api
I have a big problem (for my self)
we have a laravel project that some pages with livewire and laravel blade (auth with session) and some other with react and API (passport bearers token)
user login ...
0
votes
3
answers
687
views
My login route returns "unauthorised access" Laravel
So I'm trying to make a laravel API for a escorts-like site, anyway, i use Passport for authentification and the register part works but the login one doesnt, and i dont know why, i'll let the ...