Xamarin Mobile App - Using MSAL to Authenticate AD 401.17 Error

Ryan LaFountain 1 Reputation point
2020-07-02T17:34:28.087+00:00

Good Morning,

I'm hoping someone can provide some direction with an issue I've been working on for some time. I have an existing Web App running on my tenant's app service. Currently, it has an api back end with an angular front end that uses Azure Ad for the user to sign in and then you can access the back end to get its data.

I wanted to build a moblie client to access that same back end api. I built the mobile client in Xamarin forms, and I've implemented the msal library logic, when the androids browser opens, I enter my credentials, I am redirected back to the app and My authorization result has a token. The problem I'm running into is then when I attempt to send a request to my api, it comes back as a 401.17 unauthorized result 'You do not have permission to view this directory or page.' I am logging in using the same credentials with no luck. Can someone provide some insight on what I'm missing. If any code or configuration is needed I'll post it.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,849 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-07-02T17:35:50.72+00:00

    Xamarin is not currently supported here on QnA. They're actively answering questions in dedicated forums here.
    https://forums.xamarin.com/

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.