Skip to content

Commit

Permalink
fix: teste path
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobritodev committed Mar 17, 2022
1 parent e13b78f commit b9183ac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.IO;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using NetDevPack.Security.Jwt.Core;
Expand All @@ -16,7 +17,8 @@ public WarmupFileStore()
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging();
serviceCollection.AddMemoryCache();
serviceCollection.AddJwksManager().PersistKeysToFileSystem(new DirectoryInfo(Path.Combine(Directory.GetCurrentDirectory(), "/filestore")));
if(RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
serviceCollection.AddJwksManager().PersistKeysToFileSystem(new DirectoryInfo(Path.Combine(Directory.GetCurrentDirectory(), "/filestore")));

Services = serviceCollection.BuildServiceProvider();
_jsonWebKeyStore = Services.GetRequiredService<IJsonWebKeyStore>();
Expand Down

0 comments on commit b9183ac

Please sign in to comment.