I ran into a strange problem. I am reading and creating an OpenID Connect server with ASOS this ASOS article - AspNet.Security.OpenIdConnect.Server .
I just created a new sample solution and added a new subclass class AuthorizationProvider OpenIdConnectServerProvider and override the virtual method ie ExtractAuthorizationRequest
AuthorizationProvider.cs
public class AuthorizationProvider : OpenIdConnectServerProvider { public override Task ExtractAuthorizationRequest(ExtractAuthorizationRequestContext context) {
Question : As soon as I add the Microsoft.AspNetCore.Identity (2.0.0) NuGet package to my project, context.Reject will start to produce the following error
"The reference to the BaseControlContext type claims to be defined in Microsoft.AspNetCore.Authentication, but could not be found.
But as soon as I remove the Microsoft.AspNetCore.Identity NuGet dependency, the error disappears and everything looks fine.
Note:
- I am using VS 2017.
- I am using the dotnetcore 2.0 SDK.
- I created a solution using .Net Core 2.0.
source share