I’ve just updated to v5 and am giving it a run through.
However I get the following exception with services marked with [Authenticate]
:
"ResponseStatus": {
"ErrorCode": "ArgumentNullException",
"Message": "Value cannot be null.\r\nParameter name: provider",
"StackTrace": " at ServiceStack.Auth.AuthenticateService.GetAuthProvider(String provider)\r\n at ServiceStack.AuthUserSession.IsAuthorized(String provider)\r\n at ServiceStack.AuthenticateAttribute.<>c__DisplayClass12_0.<ExecuteAsync>b__0(IAuthProvider x)\r\n at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)\r\n at ServiceStack.AuthenticateAttribute.<ExecuteAsync>d__12.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at ServiceStack.ServiceStackHost.<ApplyRequestFiltersSingleAsync>d__307.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at ServiceStack.ServiceStackHost.<ApplyRequestFiltersAsync>d__306.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at ServiceStack.Host.Handlers.GenericHandler.<ProcessRequestAsync>d__12.MoveNext()",
"Errors": [
{
"ErrorCode": "ArgumentNullException",
"FieldName": "provider",
"Message": "Value cannot be null.\r\n"
}
]
I have one single auth provider registered that overrides AuthProvider
. Everything worked before the upgrade.
Any ideas? I did not find anything in the release notes.