Msal Authentication of Xamarin Form and then pass on that token to AppService

I have xamarin form application and followed https://github.com/Azure-Samples/active-directory-xamarin-native-v2 to implement Client Side Azure AD authentication. It is working fine.

For backed End Azure App Service, I have secured the app service using Authentication/Authentication menu and Express option. To test that , I created the
access token in postman : https://medium.com/agilix/getting-started-with-windows-azure-ad-authentication-using-postman-e37a185b642d and it is working fine.

Now, I want to integrate the xamarin form authentication with App Service. That means, If user have authenticated in Xamarin Form then the token should pass on to the app service in the background and work seamlessly. Please share your thoughts.

Posts

  • dmoodzdmoodz Member

    I would also like more information on this. I have been struggling for several days to get the authorization correct. I also followed the MSAL sample app active-directory-xamarin-native-v2 and can seem to login just fine. I get a token that I then pass onto graph.microsoft.net and get my information back. But then when I pass the token to one of our APIs I get a 401 unauthorized. Not sure what settings I need to setup on the App Registration or Function App (the API I'm hitting is a Function App).

Sign In or Register to comment.