Issue with .net core 2.0 upgrade.
See original GitHub issueHi @PinpointTownes I am trying to upgrade my project to .net core 2.0. Branch name is netcore2.
Managed to login using credentials and token model is returned from server, including refresh_token. But when request is sent using refresh token (e.g by doing full page reload), getting following error:
{"message":"No authentication handler is configured to authenticate for the scheme: ASOS","isError":true,"detail":" at Microsoft.AspNetCore.Http.Authentication.Internal.DefaultAuthenticationManager.<GetAuthenticateInfoAsync>d__12.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()\r\n at AspNetCoreSpa.Server.Controllers.api.AuthorizationController.<Exchange>d__4.MoveNext() in c:\Users\asahi\AspNetCoreSpa\Server\Controllers\api\AuthorizationController.cs:line 115\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext()",“errors”:null}`
Here is the line where I have registered in service collection.
Anything obvious missing?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:33 (14 by maintainers)
Top GitHub Comments
@JanEggers enable logging and take a look at your logs?
FYI, I ported all the OpenIddict samples to 2.0 last night, including the ROPC and refresh flow samples: https://github.com/openiddict/openiddict-samples
To get it working I had to explicitly set: