I created a web application which is working with an Azure Active Directory authentification.
Everything works fine on localhost, but I'm getting the following error when I publish the application into Azure:
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: '656cc46c-f858-4a45-bf83-698791e052f1'.
What I tried:
In Azure, I configured the Reply URL of the application in question to be:
http://gp-rh.azurewebsites.net/signin-oidc
Here is my appsetting.json:
{
"AzureAd": {
"Instance": "https://login.microsoftonline.com/",
"Domain": "legroupeti.com",
"TenantId": "7c6ff5e2-0660-4b65-9b64-7a78df412819",
"ClientId": "656cc46c-f858-4a45-bf83-698791e052f1",
"CallbackPath": "/signin-oidc"
},
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Warning"
}
}
}
In my application, the controller that does the login is set like this:
[HttpGet]
public IActionResult SignIn() {
var redirectUrl = Url.Action("Index", "Dashboard",
new { date = DateTime.Now, anchor = "period" });
return Challenge(
new AuthenticationProperties { RedirectUri = redirectUrl },
OpenIdConnectDefaults.AuthenticationScheme);
}
The default page for my application is /
which redirect to /Dashboard
.
I don't know where I went wrong, but it still does not work.