My API endpoint expects an auth token. How do I handle it?

My API endpoint expects an auth token. How do I handle it?

Hey @tariq54,

Thanks for reaching out. I read your post. In this context, when you refer API endpoint, I would assume you are referring to OpenAPI connector, or any lambda connector (Typescript/Python/Go) connected to your Hasura DDN project.

The one way I can think of is you can use HTTP header forwarding mechanism as per this recipe doc . Once you’ve enabled it, this means Hasura DDN will forward every/specific header coming from client to your API endpoint. Then, in your function , you can devise a business logic to validate that token and allow/deny based on the outcome.

Let me know if this works in your case and if I am missing in terms of interpreting data source wrong.

Thanks forjumping on this, @meet_zaveri :heart:

I think that’s exactly what @tariq54 is asking about :call_me_hand: