Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public void Setup()
 {
     this.channel = new OpenIdRelyingPartyChannel(new MemoryCryptoKeyStore(), new MemoryNonceStore(maximumMessageAge), new RelyingPartySecuritySettings(), this.HostFactories);
 }
Esempio n. 4
0
 public void Setup()
 {
     this.webHandler = new Mocks.TestWebRequestHandler();
     this.channel    = new OpenIdRelyingPartyChannel(new MemoryCryptoKeyStore(), new NonceMemoryStore(maximumMessageAge), new RelyingPartySecuritySettings());
     this.channel.WebRequestHandler = this.webHandler;
 }