Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Issue while invoking a Asp.Net Core Web Api from Xamarin Forms

$
0
0

Hi:

My Azure app service is a ASP.NET 2.0 Core Web API that is configured with Azure AD B2C authentication.

The problem is that I cannot invoke apis that requires authorization.

I am using the MobileServiceClient (Microsoft.Azure.Mobile.Client version 4.0.1) with the InvokeApiAsync method to do the call but always fails with a null exception. If I call an api that does not have authorization, it works fine.

So my question is if I can use the MobileServiceClient or this doesnot wont work with .NET Core. I dont want to call my apis with HttpClient.

I have more than 2 days trying to call the secure api without luck (for example passing the request headers in the InvokeApiAsync, etc)

Thanks

David


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>