generated from fossapps/Micro.Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Micro.AppRegistration/Micro.AppRegistration.Api/StartupExtensions/Identity.cs
Lines 44 to 49 in 5d71b85
| // todo: I know this .Result is a very bad idea (converting from async to sync) | |
| // however there's no other way to do this, signing key resolver doesn't have a | |
| // async version of this method, they are looking into it though | |
| // https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/468 | |
| var key = services.BuildServiceProvider().GetRequiredService<IKeyResolver>() | |
| .ResolveKey(kid).Result; |