Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
d_u_a
Helper I
Helper I

For Pull data from REST API with Authentication Should I Use Content Pack

We are using our own Rest Api Authentication .
In our scenario first Http Post request is sending with username and password ,
Response of first request have some tokens in its header .
Second 
Http Post request is using header tokens of first request's response. Response of second request have some tokens in its header and we are sending these tokens and set-cookie parameters to Third Http Post request . And coming datas in this way.

My Questions :
Should i use Content Pack because of i need Header parameters when sending and taking requests?
Or
Should i get Header parameters of responses and reuse them to send another request by writing M Query as Custom Data Connector?
Or 
Should i use Content Pack and Custom Data Connector together?

4 REPLIES 4
Anonymous
Not applicable

Hello Team

 

I'm still chasing for the information on cookies. I would appreciate any response.

Anonymous
Not applicable

Hi 

 

I see you have mentioned that you have used set-cookies in your http post request which was your third call and got the data.

 

I'm following the similar pattern where I'm sending multiple https requests. Initially to get the access_token and then to get the cookies to complete my authentication process. I'm building a custom data connector and able to get the access_token. Unfortunately, I'm facing a challenge in using "set-cookies" which is my call to our cookies url and will have the access_token as a Headers in my request. I would really appreciate if you could share the example of how you used set-cookies successfully. 

Happy holidays. 

d_u_a
Helper I
Helper I

No, It's not Aouth v2 authentication.

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @d_u_a,

 

Is it the "OAuth v2 authentication"? If so, I would suggest you try the Custom Data Connector.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.