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

bastienu's avatar

API - Give access to one server only

Hi,

I want to create an API for my Laravel app. I could use Passport for authentification, but I don't need all this... The communication is made from server to server : a partner is requesting the API, I answer, and he uses the JSON I send. He has access to my two endpoints, without restrictions.

What's the best way to secure this to only authorize him, and not everybody through there browser for example ? Do you have any clue or advice ?

Thanks :-)

0 likes
2 replies

Please or to participate in this conversation.