cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MBarimah
Frequent Visitor

Cannot Retrieve Authorization From Response Header

Hello everyone,

 

I am having the same issue described in the following post: 

 

https://powerusers.microsoft.com/t5/Connecting-To-Data/Unable-to-retrieve-authorization-token-from-r...

 

I am interacting with a webservice through a POST request, and I am able successfully send information's to the web service in order to authenticate and get a response.
The API I am interacting with is designed to send the authentication token in the response header instead of the body. I am not sure why but when the response with the authorization token reaches power automate, I am not able to see the authorization header. I have executed the same exact request with Postman, and I do get the authorization header. it seem that power automate is filtering out the information from the response.
 
I have also tried to solve the issue by creating a custom connector, but it's still not returning the authorization header, the really strange thing is that when I use the testing tool to validate the implementation of the custom connector, I am able to see the authorization header, but as soon as I use the custom connector within a flow I am not able to see the authorization header

3 REPLIES 3
eric-cheng
Solution Sage
Solution Sage

Hi @MBarimah ,

 

It looks like there may be a policy in the APIM which is removing/sanitizing the specific key in the responee header.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Thanks @eric-cheng 

 

Do you know in which section of azure I can see the policies?

 

Hi @MBarimah ,

 

Its not something we would probably have access to

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,548)