I’d like to make a call to the management api from an Action in a Flow.
Specifically, I want to call the api to send a new verification email via the jobs api, so that a user that has not yet verified has the ability to get a new email sent from the form (we require email verification to access the target applications).
I can make something ‘work’ using the HTTP Request if I generate an access token for my M2M connection with managment api access, and create an Http Vault item with it as the bearer token. But that token is not long-lived, so not really a useful production solution (don’t want to issue long-lived tokens).
Am I overlooking a more appropriate way to make calls to the management api from actions?
Currently, that is the only way you can call the Management API in Forms for any endpoints Forms doesn’t natively support (Create User, Get User, and Update User). I found a backlog item that will be released in the coming weeks, allowing the use of an Auth0 Vault Connection from custom HTTP requests. The token will automatically be refreshed and injected into the HTTP Requests. I have started “watching” that ticket so I will see when it updates/releases, and I will come back to this post to update you!