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!
We are excited to announce the availability of the Flows Auth0 Send Email Action!
This new feature streamlines how you communicate with users by allowing you to send emails directly from Flows using the Email Provider already configured in your Auth0 Tenant.
Key Highlights
Unified Configuration: Say goodbye to redundant setups. You can now leverage your existing Tenant Email Provider settings directly within Flows without extra configuration effort.
Enhanced Flexibility: We have included support for Custom Email Providers, giving you full control over your email delivery infrastructure.
Dynamic Customization: The action supports a variety of settings, including custom variables and Liquid Syntax, allowing for highly personalized email templates.
Resources
Ready to streamline your email logic? Check out the documentation below to learn more: