HttpPull stream - authenticate using oauth client credentials flow #3688
Replies: 1 comment 2 replies
-
|
I was able to fix issue locally with a hack. The problem is that oAuth token request needs to have header Do you know if there is a way to modify eKuiper Manager or make it open source so that header can be added to oAuth request? Perhaps another solution would be to include |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to use httppull stream to connect to rest endpoint secured by oauth. I am trying to use client credentials flow with Microsoft Entra (Azure) as identity provider.
I need to make POST request to obtain token as described here: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow#get-a-token
I have populated url with https://login.microsoftonline.com/<TENANT_ID>/oauth2/v2.0/token and body with url encoded values but I am getting error 400 in response:
eKuiper log (I have replaced tenant id with
<tenant>:I am assuming that error 400 might come from the fact that I didn't specify header
Content-Type: application/x-www-form-urlencodedanywhere.I have read documentation about using oauth in httppull stream but I don't see if that header is passed to token url and also I don't understand how to extract access token if the response was successful and use it as bearer token in httppull request.
Beta Was this translation helpful? Give feedback.
All reactions