Closed neemiasjr closed 6 months ago
My auth.php
'guards' => [ 'web' => [ //'driver' => 'session', 'driver' => 'keycloak-web', 'provider' => 'users', ],
'api' => [ 'driver' => 'keycloak-web', <---- is corret? 'provider' => 'users', 'hash' => false, ],
How to replicate keycloak web token for ajax requests by laravel api.
My ajax requests come with empty token.
{"errors":[{"message":"Unauthenticated.","extensions":{"guards":["api"],"category":"authentication"},
Hi.
I guess you are trying to use a stateless API. I'll recommend it: https://github.com/robsontenorio/laravel-keycloak-guard
My auth.php
'guards' => [ 'web' => [ //'driver' => 'session', 'driver' => 'keycloak-web', 'provider' => 'users', ],
How to replicate keycloak web token for ajax requests by laravel api.
My ajax requests come with empty token.
{"errors":[{"message":"Unauthenticated.","extensions":{"guards":["api"],"category":"authentication"},