1,583 questions
1
vote
1
answer
70
views
How can I enable Client Credentials grant to secure API endpoints?
I'm trying to enable Client Credentials grant to secure API endpoints. I want to create an API between a database and several websites (and SPAs) so I can monitor what website/SPA calls which ...
0
votes
0
answers
61
views
Cookies are missing from request when feature testing in Laravel
My project is using a modified implementation of Laravel Passport for authentication.
I have a route, /auth/login, which I use for authentication. POST is for logging in, PUT is for refreshing tokens, ...
0
votes
2
answers
207
views
passport:key and passport:install error in laravel
I created a laravel project from scratch using composer and I am using mysql as my database. I connected my database with my laravel project in the .env file in laravel.
Then I require passport to my ...
-3
votes
1
answer
160
views
cURL error 28: Operation timed out after 30016 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
Here is response of api, which showing 500 error, when creating token with passport in laravel. all things as ok and tried many things but not solved.
{
"status": false,
"...
0
votes
1
answer
82
views
Auth check return false in middleware, but should return true with Log Viewer
I installed Log Viewer in my laravel 11 protect, and works like a charm. But i want to limit who has access to the Log Viewer in production.
So,i create a middleware
<?php
namespace App\Http\...
-5
votes
1
answer
647
views
laravel passport cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received error
i want to use laravel passport to generate refresh and access tokens
i followed this Article : https://dev.to/mahmudulhsn/laravel-passport-api-authentication-with-access-and-refresh-token-16d0
but ...
1
vote
0
answers
150
views
Webauthn expecting userHandle web-auth/webauthn-lib v5
I am trying to now authenticate my users, but it seems like web-auth/webauthn-lib (v5) is now expecting a userHandle even though when it has been set to null?
{"error":"Invalid user ...
0
votes
1
answer
70
views
Getting 'unsupported_grant_type' error when implementing a custom OAuth2 grant
I'm trying to implement a custom OAuth2 grant type in Laravel Passport for mobile authentication, but I'm encountering the following error
{
"error": "unsupported_grant_type",
...
1
vote
1
answer
140
views
Laravel 11 & Passport - "No Supported Authentication Provider Found for Token" Error
I’m using Laravel 11 with Laravel Passport 11.x to handle API authentication. I’ve set up Passport for OAuth2 authentication and personal access tokens. However, I’m encountering the following error ...
0
votes
1
answer
320
views
Laravel Passport: TypeError: Argument #2 ($guard) must be of type Illuminate\Contracts\Auth\StatefulGuard
I'm encountering an error when using Laravel Passport with Laravel version 10.48.22 and Laravel Passport version 12.3.0.
Steps to reproduce:
I moved the predefined application routes to a separate ...
0
votes
0
answers
414
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
1
answer
114
views
$user->createToken('laravel')->accessToken; is returns "message": "Invalid key supplied"
In My AWS ec2 ubuntu server the login is working properly it gives user login token.
I have moved the files to serverless aws apllication with same ec2 mysql database credentials.
All other apis are ...
1
vote
3
answers
3k
views
Problem with: "Invalid key supplied", exception: "LogicException" (Laravel v10.26.2)
I had a problem, when I deploy my project into Heroku I try to register but this error comes out I try all solving I search for but doesn't help me, I use php artisan:migrate, php artisan passport:...
-1
votes
1
answer
59
views
Response always Unauthenticated even with correct token in laravel
Im using laravel passport for my authentication, here is my api
Route::post('login', [AuthController::class, 'login']);
// Rute yang Memerlukan Token Akses
Route::middleware('auth:api')->group(...
0
votes
1
answer
193
views
Using Laravel Passport (CreateFreshApiToken) To Implement HttpOnly Cookie as Auhentication in API
Im using Laravel Passport and I'm trying to convert my code from using tokens stored in the localhost to using httponly cookies.
I followed this documentation: https://laravel.com/docs/5.8/passport#...
1
vote
1
answer
406
views
Laravel Passport loading public and private keys wont work with passport.php config published
I have installed and configured passport and everything seems to be working quite well until I wanted to deploy to serverless (Lambda).
I have generated my keys with artisan passport:install and ...
1
vote
1
answer
182
views
Route [login] not defined in Laravel 10
working with Laravel 10 and passport authentication. I have following api route list as well
api.php
Route::prefix('v1')->group(function (){
Route::post('/login',[AuthController::class,'login'])...
1
vote
1
answer
97
views
Problem when using passport::actingAs on tests
using postman:
I can access the route using a client grant from a token obtained in
/oauth/token
I can also access the route using a token from the login user (personal access client)
however, I'm ...
-1
votes
1
answer
524
views
The authorization grant type is not supported by the authorization server in laravel
When I create access_token and refresh_token using Laravel 11 passport then the following error occurs:
unsupported_grant_type","error_description":"The authorization grant type ...
8
votes
1
answer
18k
views
Laravel Passport gives me "Invalid key supplied"
Im am trying to make login functionality using Laravel 11, Laravel Passport and TanancyForLaravel, but i get the following error:
Invalid key supplied
I want to create login functionality for users at ...
0
votes
1
answer
65
views
laravel passport - issue token return whether new user was created
I'm using Laravel 9 Passport. On the front-end after a user signs into a social account, I"m passing the provider info to the Auth issueToken method. I'd like to return if a new account was ...
1
vote
0
answers
191
views
Laravel Passport's OAuthServerException does not bubbles up to Handler.php. League's OAuthServerException bubbles up instead
I am using Laravel Passport's Authorization Code Grant to authenticate users.
I want to return a JSON response if the access token is expired when accessing an "auth:api" middleware ...
0
votes
0
answers
124
views
Laravel Session Timeout on Login
I have an SPA app that uses Laravel Passport. For the web, I am using sessions. If I set my session.lifetime to 5 minutes, sit on the login page for 5 minutes, and then login, I receive a 419 (...
3
votes
0
answers
251
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 ...
0
votes
0
answers
126
views
Laravel Passport hashed client_id
I´ve just started Laravel Passport and noticed something weird that has not been in any tutorial. After I run php artisan passport:install, it shows my client ID as a long hash. But normally, it ...