You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -27,7 +29,8 @@ public async Task<RequestAuthenticationCandinate> ParseJwtToken(string token)
27
29
if(!tokenHandler.CanReadToken(token))thrownewNotAuthorizedException("The given token is not valid");
28
30
varparsedToken=tokenHandler.ReadJwtToken(token);
29
31
30
-
// Resolve the security feature by token issuer (must be enabled) // @TODO: ensure the security feature is loaded before this
32
+
// Resolve the security feature by token issuer (must be enabled)
33
+
awaitEnsureSecurityInitializationCompleted();
31
34
vartokenIssuer=parsedToken.Issuer;
32
35
varsecurityFeature=_setup.Features.Find(o =>o.Issuer==tokenIssuer)??thrownewNotAuthorizedException("The given token issuer is not valid");
33
36
@@ -49,4 +52,17 @@ public async Task VerifyPersonTermsOfServiceAgreement(Guid personId)
49
52
// Fetch person terms of service agreement
50
53
_=await_termsOfServiceRepository.GetTermsOfServiceAgreementOfTheLatestTermsByPersonId(personId)??thrownewNotAuthorizedException("User has not accepted the latest terms of service.");
51
54
}
55
+
56
+
/// <summary>
57
+
/// All the enabled security features must be initialized before the application can be used, verify that the initializations are completed
0 commit comments