/// <summary> /// Creates a relying party that does not verify incoming messages against /// nonce or association stores. /// </summary> /// <returns>The instantiated <see cref="OpenIdRelyingParty"/>.</returns> /// <remarks> /// Useful for previewing messages while /// allowing them to be fully processed and verified later. /// </remarks> internal static OpenIdRelyingParty CreateNonVerifying() { OpenIdRelyingParty rp = new OpenIdRelyingParty(); rp.Channel = OpenIdChannel.CreateNonVerifyingChannel(); return(rp); }
public void Setup() { this.webHandler = new Mocks.TestWebRequestHandler(); this.channel = new OpenIdChannel(new AssociationMemoryStore <Uri>(), new NonceMemoryStore(maximumMessageAge), new RelyingPartySecuritySettings()); this.accessor = OpenIdChannel_Accessor.AttachShadow(this.channel); this.channel.WebRequestHandler = this.webHandler; }
public void Setup() { this.channel = new OpenIdRelyingPartyChannel(new MemoryCryptoKeyStore(), new MemoryNonceStore(maximumMessageAge), new RelyingPartySecuritySettings(), this.HostFactories); }
public void Setup() { this.webHandler = new Mocks.TestWebRequestHandler(); this.channel = new OpenIdRelyingPartyChannel(new MemoryCryptoKeyStore(), new NonceMemoryStore(maximumMessageAge), new RelyingPartySecuritySettings()); this.channel.WebRequestHandler = this.webHandler; }