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

justincone's avatar

Guide for oAuth 2.0 client workflow within Laravel

There are loads of resources for setting up your own API with oAuth 2.0, but I haven't been able to find anything about consuming oAuth 2.0 APIs within Laravel.

More info: I'm building a web app that allows users to organize their Vimeo feeds. Vimeo uses oAuth 2.0, so I have to keep track of users' tokens. (I plan on storing them in the database.) But I'm completely lost about the general way to architect this within the Laravel framework.

Do you know of any helpful resources? (Thanks in advance!)

0 likes
3 replies
burlresearch's avatar
Level 40

Sounds like you want to use Laravel Socialite to register your users - this could be a shortcut to have them authorize their Vimeo credentials. Look into using the Vimeo Socialite Provider and you can probably use the scopes() method to preauth whatever permissions you'll need to see their feeds.

1 like
justincone's avatar

Very interesting! I'll look into this and report back. Thank you very much for your tip.

anand-moghe's avatar

By the way, if a socialite provider is not available for some custom enterprise Oauth2 server, how do we write one ? I could imagine that not all the Oauth2 service provider has socialite provider.

Please or to participate in this conversation.