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

LadyDeathKZN's avatar

OAuth2.0 authentication for another Apps API

Hi, I am busy writing an application in Laravel. Most of the research I have done keeps sending me to Laravel Passport which doesn't fit my needs.

I have an app on another server that uses OAuth2.0 (client_id, client_secret, scope, Auth url, Token url, etc) and I want to be able to access the API from this app in Laravel. I have looked at the DropBox package and how it was constructed using something very similar but have no idea how to build my own for this integration. Can someone possibly send me to the right place?

I am using Wave Accounting and the documentation is beyond confusing.

0 likes
2 replies
martinbean's avatar
Level 80

@ladydeathkzn Yeah, you want to look at Socialite, not Passport, for interacting with an OAuth 2.0 server offered by an app on another server. If it’s a custom app, you’ll need to write a custom Socialite provider to be able to utilise it, though.

2 likes

Please or to participate in this conversation.