protected static IContainerConfig ConfigureTheContainer(CngKey cngKey) { var kc = new FakeEccKeyRepository(cngKey); return(Jwt4NetContainer.Configure( As.Issuer("my issuer").WithCngKey(cngKey.KeyName, "https://example.org/"), As.Consumer().TrustIssuer("my issuer", "https://example.org/")) .Replace <ICngKeyProvider, FakeEccKeyRepository>(kc) .Replace <IEccPublicKeyProvider, FakeEccKeyRepository>(kc)); }
protected static IContainerConfig ConfigureTheContainer(CngKey cngKey) { var kc = new FakeEccKeyRepository(cngKey); return Jwt4NetContainer.Configure( As.Issuer("my issuer").WithCngKey(cngKey.KeyName, "https://example.org/"), As.Consumer().TrustIssuer("my issuer", "https://example.org/")) .Replace<ICngKeyProvider, FakeEccKeyRepository>(kc) .Replace<IEccPublicKeyProvider, FakeEccKeyRepository>(kc); }