_floating's avatar

Auth0 Socialite on Postman

Hi there, I'm building a React SPA with Laravel Breeze as the backend. There is only Auth0 authentication (Sanctum) available, and I would like to use Postman to test the APIs I'm developing on Laravel. How can I authenticate on Postman and make requests to routes with middleware auth:sanctum? I'm having issues only getting 401 Unauthorized Thanks!!

0 likes
3 replies
jlrdw's avatar

Just FYI, there are some youtube videos on this.

I haven't viewed any on sanctum, I was looking at passport, but saw some titles there while browsing.

_floating's avatar

@jlrdw I tried searching on Google, Bing, YT, and Sanctum Github, but haven't found a video/post explaining how to test Laravel APIs developed with Sanctum Auth0 middleware, those explain only with local database (email + password) ie MySQL. I wondering how to test the APIs with Postman, Bruno or any other API client generating the Auth0 Token and Cookie. Any suggestion?

Please or to participate in this conversation.