up
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build Test Deploy / docs (push) Has been cancelled
				
			
		
			
				
	
				Build Test Deploy / deploy (push) Has been cancelled
				
			
		
			
				
	
				Build Test Deploy / build-test (push) Has been cancelled
				
			
		
			
				
	
				Build Test Deploy / authority-container (push) Has been cancelled
				
			
		
			
				
	
				Docs CI / lint-and-preview (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build Test Deploy / docs (push) Has been cancelled
				
			Build Test Deploy / deploy (push) Has been cancelled
				
			Build Test Deploy / build-test (push) Has been cancelled
				
			Build Test Deploy / authority-container (push) Has been cancelled
				
			Docs CI / lint-and-preview (push) Has been cancelled
				
			This commit is contained in:
		| @@ -9,6 +9,8 @@ using StellaOps.Authority.Plugin.Standard.Bootstrap; | ||||
| using StellaOps.Authority.Plugin.Standard.Security; | ||||
| using StellaOps.Authority.Plugin.Standard.Storage; | ||||
| using StellaOps.Authority.Storage.Mongo.Stores; | ||||
| using StellaOps.Cryptography; | ||||
| using StellaOps.Cryptography.DependencyInjection; | ||||
|  | ||||
| namespace StellaOps.Authority.Plugin.Standard; | ||||
|  | ||||
| @@ -25,10 +27,11 @@ internal sealed class StandardPluginRegistrar : IAuthorityPluginRegistrar | ||||
|  | ||||
|         var pluginName = context.Plugin.Manifest.Name; | ||||
|  | ||||
|         context.Services.TryAddSingleton<IPasswordHasher, Pbkdf2PasswordHasher>(); | ||||
|         context.Services.AddSingleton<StandardClaimsEnricher>(); | ||||
|         context.Services.AddSingleton<IClaimsEnricher>(sp => sp.GetRequiredService<StandardClaimsEnricher>()); | ||||
|  | ||||
|         context.Services.AddStellaOpsCrypto(); | ||||
|  | ||||
|         var configPath = context.Plugin.Manifest.ConfigPath; | ||||
|  | ||||
|         context.Services.AddOptions<StandardPluginOptions>(pluginName) | ||||
| @@ -45,7 +48,8 @@ internal sealed class StandardPluginRegistrar : IAuthorityPluginRegistrar | ||||
|             var database = sp.GetRequiredService<IMongoDatabase>(); | ||||
|             var optionsMonitor = sp.GetRequiredService<IOptionsMonitor<StandardPluginOptions>>(); | ||||
|             var pluginOptions = optionsMonitor.Get(pluginName); | ||||
|             var passwordHasher = sp.GetRequiredService<IPasswordHasher>(); | ||||
|             var cryptoProvider = sp.GetRequiredService<ICryptoProvider>(); | ||||
|             var passwordHasher = new CryptoPasswordHasher(pluginOptions, cryptoProvider); | ||||
|             var loggerFactory = sp.GetRequiredService<ILoggerFactory>(); | ||||
|  | ||||
|             return new StandardUserCredentialStore( | ||||
| @@ -59,7 +63,9 @@ internal sealed class StandardPluginRegistrar : IAuthorityPluginRegistrar | ||||
|         context.Services.AddSingleton(sp => | ||||
|         { | ||||
|             var clientStore = sp.GetRequiredService<IAuthorityClientStore>(); | ||||
|             return new StandardClientProvisioningStore(pluginName, clientStore); | ||||
|             var revocationStore = sp.GetRequiredService<IAuthorityRevocationStore>(); | ||||
|             var timeProvider = sp.GetRequiredService<TimeProvider>(); | ||||
|             return new StandardClientProvisioningStore(pluginName, clientStore, revocationStore, timeProvider); | ||||
|         }); | ||||
|  | ||||
|         context.Services.AddSingleton<IIdentityProviderPlugin>(sp => | ||||
|   | ||||
		Reference in New Issue
	
	Block a user