Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

abkrim's avatar
Level 13

Is possible use Passport for connect Laravel to other service API based?

It is possible that my title is badly translated. Sorry.

The question is that I need to connect to a service that has an API without a model known as "resource owner password credentials" grant type.

That is, the api forces me to connect via the web, authenticate myself, and if all goes well, I give back the toke and the refresh token.

At first I'm going to work it, using Guzzle, but maybe I'm thinking it wrong, and I can simply use Passport.

What gives me more fear is to build the web interface to connect, because mine is more the preparation of the app, in console mode.

Any idea, link?

0 likes
2 replies
abkrim's avatar
Level 13

I answer to myself. Using Laravel Socialite

cmdobueno's avatar

Passport is (generally) for your System being the API

Socialite is for interactions with OTHER api's

This is extremely generalized, but should help those looking later.

Please or to participate in this conversation.