- Passport server : https://passport-server.fly.dev/
- Passport client : https://passport-client.fly.dev/
- Laravel
- Passport
- Filament for Admin Panel
- run
composer install
- connect your database and run
php artisan migrate
- run
php artisan passport:install
- run
php artisan passport:client
, enterhttp://localhost:9001/callback
for redirect uri and note id, secret for client server - run
php artisan serve --port=9000
- go to
http://127.0.0.1:9000
- run
npm install
- run
vite build
- run
composer install
- connect your database and run
php artisan migrate
- copy
.env.example
to.env
- enter
API_CLIENT_ID
andAPI_CLIENT_SECRET
to.env
from noted above - add
http://127.0.0.1:9000
(server's address) toAPI_URL
in.env
- run
php artisan serve --port=9001
- go to
http://localhost:9001
- note that it should be localhost not 127.0.0.1 for cookie conflicts
- Register new user in server
- Go to client and click "Login as Passport"
- Authorize login in server
- Done, your client account connected with server's account
- You can revoke access tokens at server's dashboard