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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
rayd_250592
Regular Visitor

Push API Token Xamarin Forms

Hi, 

 

I'm currently following example (https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data-get-token) in order to try and get a token to authenticate against the PUSH API with the end goal of pushing data from a Xamarin Forms app.

 

However, following the instrictions,  Microsoft.IdentityModel.Clients.ActiveDirectory -Version 2.21.301221612 isn't available on Nuget (the closest is 2.22.30211727). Installing that, I get an error on line 

 

 

 authContext.AcquireTokenAsync(resourceUri, clientID, new Uri(redirectUri)).Result.AccessToken;

 

 

 

The error "Cannot convert from 'System.Uri' to 'Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential" occurs at
 

 

 

new Uri(redirectUri)).

 

 

 

Is the example up to date - the latest Microsoft.IdentityModel.Clients.ActiveDirectory package version is 5.2.7.

 

Any guidance would be appreciated! 

 

Thank you!

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.