Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Connector Development
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:
  • tshaheen1 Profile Picture
    2 on at
    Re: JSON Web Token (JWT) Bearer Token with REST API

    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!

  • eleung83 Profile Picture
    232 on at
    Re: JSON Web Token (JWT) Bearer Token with REST API

    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.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics