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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / JSON Web Token (JWT) B...
Power Apps
Unanswered

JSON Web Token (JWT) Bearer Token with REST API

(0) ShareShare
ReportReport
Posted on by 2

The REST API in question requires three parameters for authentication, a user Id, a password, and an applicationID.  The item returned is a JSON Web Token (JWT). I have successfully defined a Login action with these parameters. But additional actions do not work because the JWT must be passed with "Bearer" prepended. In a number of other Power Apps I created, I used OAuth, and there was no issue, however in this app with a simple JWT being passed, the question becomes, which (if any) of the Security Authentication Types can be used? My initial though was to use API Key, however this has been unsuccessful. I also thought about using No authentication and simply use the PowerApps UI to make all of the calls, storing the JWT, however, this doesn't seem to be optimal to me. 

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

    Based on the authentication parameters you've mentioned, I'm guessing you're looking for password (ROPC)  grant type for OAuth, which I doubt MS will implement as it's no longer being maintained in the OAuth spec going forward, hence no such options available via the security UI section within the custom connector setup pages.

     

    If this is still the only way the API you're using can generate bearer tokens, then perhaps you could setup a middle man that can generate the token and pass that token through to the destination api as part of the header (e.g an azure function), or do as you currently suggested, where you're generating a bearer token, then pass that token to whichever api you need to call as part of the header parameters.

  • tshaheen1 Profile Picture
    2 on at

    Thanks so much for your reply! Yes, I was thinking that an Azure function might be the best way to handle. Will give it a try. Appreciate the response!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard