Hello everyone.
I am using Auth0 in my laravel project. Meaning that I’m using the Auth0-Laravel SDK from here.
On my multipage Website, I want to give the user the ability to create, edit, show and delete users from auth0. After some research, I’ve found out, that this is possible by using the Manager Endpoint, which is a connection to the Management API, which has all the functions I need.
Heres the problem: I havent found out how to use a manager instance in laravel. The only thing I found online is with cURL, but inside of the Auth0 SDK there seems to be a ManagerEndpoint
class and an Action
class, which both have getAll()
methods and stuff that I want to use.
So is there any easier way to do that? Or do I have to go with cURL? And If I have to do it with cURL, how do I get the Access Token for my API? Thats something I couldn’t figure out as well.
Doing Auth::getSession()
and printing it, I see that there is a auth0 session token, but I cant save it into a variable and I’m not even sure if that would be the best approach.
THX!