Skip to content

Commit ad98e78

Browse files
committed
Call same AuthProvider base constructor without AppSettings to initialize provider
1 parent eb64c18 commit ad98e78

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ServiceStack/Auth/ApiKeyAuthProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public class ApiKeyAuthProvider : AuthProvider, IAuthWithRequest, IAuthPlugin
107107
public Action<ApiKey> CreateApiKeyFilter { get; set; }
108108

109109
public ApiKeyAuthProvider()
110+
: base(null, Realm, Name)
110111
{
111112
Init();
112113
}

src/ServiceStack/Auth/JwtAuthProviderReader.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public int ExpireTokensInDays
189189
public Dictionary<Type, string[]> ServiceRoutes { get; set; }
190190

191191
public JwtAuthProviderReader()
192+
: base(null, Realm, Name)
192193
{
193194
Init();
194195
}

0 commit comments

Comments
 (0)