To fix the issue you can do With the unknown wildcard (>), the only assumption that can safely be made is that instances are a subtype of Object. We cannot take objects of an unknown type and put them in another collection of another unknown type because the two types might be incompatible. However, we can put them in a collection of
redirect all wild card subdomains and subdomain urls to the root domain and root domain urls using htaccess
it helps some times The Application's list of Redirect URIs must contain the PostLogoutRedirectUri value, exactly as written in OpenIdSettings. In this case, go to AAD Portal and add a Redirect URI for http://localhost:5001
ASP.NET Core Web App with Azure AD reply url specified in the request does not match the reply urls configured
help you fix your problem Solution in 2 parts: Part 1: Ensure CallBackUrl in the appsettings.json is /signin-oidc and in azure app registration is yoursite/signin-oidc