I have created a API app and deployed it to Azure. The app uses Active directory authentication.
I get the following error
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 00000000-0000-4f27-0000-00000000.
Steps so far
- Enabled Active directory authentication
- Set CORS to *
- Set Reply URL to same address https://myapp.azurewebsites.net/
I have added the following settings in the web config
config
<add key="ida:AADInstance" value="https://login.microsoftonline.com/{0}"></add>
<add key="ida:PostLogoutRedirectUri" value="https://myapp.azurewebsites.net/"></add>
The code for the api is as follows
[HttpGet]
[SwaggerResponse(HttpStatusCode.OK,
Type = typeof(IEnumerable<Contact>))]
public async Task<IEnumerable<Contact>> Get()
{
return await GetContacts();
}