Use API Key from vault in HTTP Request in Flow

Hi,

In my Form Flow I want to send an HTTP Request with an API Key in the header.
To securely store this API Key I thought I could put it in my an HTTP Request Vault, and use that value in my flow.
However, I can’t make it work. I’ve tried to access it using the {{vault.CONNECTION}} property, but that remains empty, and even provides an error when I directly use it as a header value.
I’m starting to doubt whether this is the correct way to implement this.
I’d be grateful for someone to help me out here.

Hi @s.terwan,

Welcome to the Auth0 Community!

When you say you are trying to access it using {{ vault.CONNECTION }}, where are you doing that? Have you added a flow?

According to our Vault doc, you can securely store API keys in this way.

Here’s our HTTP Request Flow Integration doc as well: HTTP Request

As much information/screenshots/etc. as possible will be helpful and much appreciated!

Best,

Mary Beth

Hi Mary Beth,

Thank you for your reponse.
I’m using the HTTP Request flow indeed.
I’ve added an HTTP vault connection named ‘exampleconnection’, and for some reason this only wants Bearer tokens.

And this is my flow:

But this actually results in an error in the flow:

I’m not sure what I’m doing wrong here.

Hi @s.terwan,

Thank you for the screenshots! Can you try removing the headers you have set? If you are using a configured Vault connection’s stored API Key, you do not have to add it as a header. I wonder if that is where this error is coming from.

Can you let me know how that goes?

Thanks,

Mary Beth

Hi @marybeth.hunter

So will the API key stored in the vault be automatically added as an Authorization header?
Because in this use case it would be great if I could add the key in the “api-key” header.

Thanks,
Sten

Hi,

Yes, it will automatically be added as an Authorization header. I’d recommend submitting feedback about this following this guide: How to Submit Product Feedback or Feature Requests

Thanks,

Mary Beth

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.