Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
lfvc1984
Frequent Visitor

Get Data from Rest Api with JWT

Hi everyone,

 

I'm stuck with my limited knowledge here, because i need to get access to the data from an Rest API with Json Web Token.

They send me 3 different url:

 

1. EndPoint of tokens : https://xxxxx.yyyyy.com/vftoken/oauth/token

with this parameters

UserName=vfrest&Password=t3sting&grant_type=password

 

the result must be a chain in format "JSON Array" with 3 fields:

a) access_token (dinamic value)

b) token_type 

c) expires_in

 

2. Endpoint for test https://xxxxx.yyyyyy.com/vfrest/api/Prueba/Prueba2

a) KEY ="Autorization"

b) VALUE = Bearer "access_token"

c) Content-Type = application/x-www.form-urlencoded

 

3. Endpoint for data  https://xxxxx.yyyyy.com/vfrest/api/data

 

the result must be a chain in format "JSON Array"

 

BUT... i try with the solution in Pull data from a REST API Authentication and doesn't work with my poor programming skills 

 

I be really thankfull if someone helpme.

 

2 REPLIES 2
Anonymous
Not applicable

 Hello

did you manage to connect to your api I have the same problem and nothing works

v-juanli-msft
Community Support
Community Support

Hi @lfvc1984 

To get JWT Token from Auth API, you could refer to this thread .

To use parameter with rest api, please check the reply here.

 

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

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors