web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Accessing on-premise J...
Power Automate
Unanswered

Accessing on-premise JWT-secured REST API exposed through Azure App Proxy

(0) ShareShare
ReportReport
Posted on by 6

Good day all,

Please bear with me as I'm very new to this and after trying to follow through a few blog posts, I'm not any closer to a solution. Also, please, keep in mind that I have zero visibility at the Azure side of things, so your guidance may just be something I need to ask that team to do for me; which would be fine.

I'm trying to use Power Automate to reach a REST API exposed through Azure App Proxy. I thought that because as a user of the flow I'm already logged in, I could just use the HTTP action to request a JWT from the API. When my flow runs, it fails and I can see in the Run History that it has redirected the call to http://login.microsoftonline.com/.../.

1. So, I understand that authentication to Azure is not happening seamlessly? Is there no way to use the signed-in user's credentials to go through the proxy? All employees have access to the exposed API (I've been told). 

2. Assuming that the above is correct (i.e. that's the expected behaviour), am I also correct to believe that there are two ways I can go about achieving this connection? a. with an HTTP with Azure connection and b. with an action inside my flow?

Lets park the first option as I read that it doesn't handle raw binary format requests. Focusing on the second option, the action inside my flow, I've read a few things about this and have tried to post to /oauth2/token and /oauth2/athorize (following different blog posts) but I'm not getting anywhere. 

Segluca's post "Generate an Azure OAuth2.0 Token from a "service"" which calls /oauth2/token, provides client and secret IDs as part of the request to recieve back a token to use with subsequent calls. 

3. I understand I get these IDs from an App Registration which will not be the same as the App that was published in the Azure App Proxy? Is that correct?

4. Assuming that they register a new App so that I can use those details to authenticate and get the token, I will then need to make a call to the actual JWT-secured API to get another token for subsequent calls to the actual REST API. Is it possible to use Power Automate to get and use both these tokens with each subsequent request?

I understand this is long and quite theoretic and will probably put off a lot of people would could otherwise help, but any guidance will be greatly appreciated.

Thank you for any help you can provide me with.

Categories:
I have the same question (0)
  • alrezac Profile Picture
    on at

    Hi,

     

    Typically when you use exposed endpoints like this most people will elect to use the HTTP connector instead of the Azure connector. In addition I think your Azure connector might be set up incorrectly since if you set it up correctly it should not be directing to our online environment but without seeing it I cannot be certain. Both the HTTP Azure connection and the regular Azure connection should work as long as they are both set up correctly. As for your last two questions it depends alot on what you are trying to do and how you are building your flow. Overall this might be a better question for the Microsoft Support team. I will include a link below; on how to open a case with them. Otherwise if any other communities members might know the answer to these last two questions feel free to chime in.

     

    If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

    Regards,

     

    Alex

     

    -------

     

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

  • ZT Profile Picture
    6 on at

    Thank you @alrez this all makes sense actually. I'm still waiting for the Azure team to look into it, but thank you for the link to submit my question to MS Support. I'll get back to this as soon as I have an answer from the team. Hopefully, it'll be as you said and we can mark this as the solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard