Hello,
I am working on accessing custom REST API secured by Azure AD from native client application(Console Application). Below process I followed , please suggest me if I am missing any step/configuration -
1. Created ASP.NET WEB API project(Default Visual Studio WEB API template with Authentication as School or Work Account) and published it to Azure under Web Apps.
2. Created native application (Console Application) and implemented code to get Access Token using Azure Active Directory Library for .NET.
3. I am able to get Access token from Azure AD, however after passing the same token to REST WEB API in Request Header, I am getting response status code as Unauthorized and message as 'Authorization is access denied for this request'
Can someone please help me to resolve this.
Thanks in advance.
Regards, Sagar Acharya acharya.sagar@hotmail.com