cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
elaaadani
Helper V
Helper V

Connect API's that require JWT.

Hello good morning.

I need to connect an API that requires a token generated by JWT. Is there a way to connect a website that does this with power automate? I understand that power automate doesn't have the component to do this itself.
Thank you very much.

8 REPLIES 8
abm
Super User
Super User

Hi @elaaadani 

 

You can use the HTTP Post  action to retrieve the token.

 

Please have a look at the below posts.

 

Solved: Re: Obtain JWT token with Power Automate HTTP - Power Platform Community (microsoft.com)

 

azure active directory - oAuth2.0 with Microsoft flow(Power Automate) and then accessing protected A...

 

Thanks

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Umm thank you. But I don't understand much. In a page I generate the token with HS256 algorithm. I don't understand how to pass the information I need through HTTP

elaaadani_0-1606132517517.png

 

abm
Super User
Super User

Hi @elaaadani 

 

How do you generate this token? Manually or using an API?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Hi @abm 

Thank you very much for your prompt response.
This token is generated manually (https://jwt.io/ ) it is placed in the body
{
"entity": "xxxxxxxx",
"run": "xxxxxxxx",
"expiration": "2020-11-23T10:19:00",
"purpose": "xxxxxx"
}

and a VERIFY SIGNATURE HMACSHA256 .
This generates the token that is used in an API.
I thought that Power Automate might have a way to pass this information and generate the token from HS256.
I'm stuck here, I just need this to finish the last part of the flow

 

abm
Super User
Super User

Hi @elaaadani 

 

Ideally an API is the right way to do the job. If you doing this manually then have a look at UI Flows for Web 

 

Learn to create UI flows for Websites - Power Automate | Microsoft Docs

 

Hopefully you should be able to get the token using the above.

 

Thanks

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Thank you so much for yout help @abm .

 

Another question,
There is a way to pass a sharepoint file into hash? format.
I already have the content of the file. When you use the "Chainpoint" component and pass the file content, it generates an output. When you validate it, it says that it does not correspond to the document

Hi @elaaadani 

 

Could you please post a screenshot of your flow and the error details?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

elaaadani_0-1606169554424.png

 

This is the "error"

 

elaaadani_1-1606169608380.png

The calculated checksum doesn't correspond to the one sent

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,366)