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

gourab's avatar

How I make a Laravel 5.8 application Authentication in a Third Party API that use oAuth2?

I am building a project and this project needs authentication in an API in another project. And other services will be used by REST API, so Laravel will work as a Client.

My application build on Laravel 5.8, I need to authenticate the users in a other API (third party API), these API are code in REST with oAuth2. So, I want send a username, password, appid & appsecret to the URL-API and the callback is if the user is valid then authorized to use the APP.

How I can make this?

0 likes
2 replies
gourab's avatar

Thanks, Nakov

I think this article is how you can implement social media login in your Laravel passport API.

I have already the APIs. I want to use Laravel for frontend using jquery. For that, I have to override the Laravel default authentication process.

Please or to participate in this conversation.