S
S
SampleDev2020-06-30 21:38:05
OAuth
SampleDev, 2020-06-30 21:38:05

How many clients are required in Laravel Passport?

There is a regular site ( A ) on Laravel where users users can go through standard authentication and are stored in its database. There is also a remote service ( B ) that uses Laravel Passport and users of the first ( A ) site should periodically access this service .

Let's say on the service side ( B ), I have the following protected endpoint:
https://passport-server.com/staff/{uid}
The user of the client site ( A ) will send his own uidand receive a response (naturally, the request is present Authorization: Bearer <acess_token>).

How many OAuth clients do you need to create on the side of the remote service ( B ) for proper access to its resources? One OAuth client for all users fromA ? Or for each user from A to create a new OAuth client?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2020-06-30
@SampleDev

https://laravel.com/docs/7.x/passport#password-gra... or even https://laravel.com/docs/7.x/sanctum

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question