/// <summary>
		/// Creates the relying party instance used to generate authentication requests.
		/// </summary>
		/// <param name="store">The store to pass to the relying party constructor.</param>
		/// <returns>The instantiated relying party.</returns>
		protected virtual OpenIdRelyingParty CreateRelyingParty(ICryptoKeyAndNonceStore store) {
			return new OpenIdRelyingParty(store);
		}
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenIdProvider" /> class.
 /// </summary>
 /// <param name="applicationStore">The application store to use.  Cannot be null.</param>
 /// <param name="hostFactories">The host factories.</param>
 public OpenIdProvider(ICryptoKeyAndNonceStore applicationStore, IHostFactories hostFactories = null)
     : this((INonceStore)applicationStore, (ICryptoKeyStore)applicationStore, hostFactories)
 {
     Requires.NotNull(applicationStore, "applicationStore");
 }
Esempio n. 3
0
 /// <summary>
 /// Creates the relying party instance used to generate authentication requests.
 /// </summary>
 /// <param name="store">The store to pass to the relying party constructor.</param>
 /// <returns>The instantiated relying party.</returns>
 protected override OpenIdRelyingParty CreateRelyingParty(ICryptoKeyAndNonceStore store)
 {
     return(new OpenIdAjaxRelyingParty(store));
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenIdRelyingParty" /> class.
 /// </summary>
 /// <param name="applicationStore">The application store.  If <c>null</c>, the relying party will always operate in "stateless/dumb mode".</param>
 /// <param name="hostFactories">The host factories.</param>
 public OpenIdRelyingParty(ICryptoKeyAndNonceStore applicationStore, IHostFactories hostFactories = null)
     : this(applicationStore, applicationStore, hostFactories)
 {
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenIdAjaxRelyingParty"/> class.
 /// </summary>
 /// <param name="applicationStore">The application store.  If <c>null</c>, the relying party will always operate in "dumb mode".</param>
 public OpenIdAjaxRelyingParty(ICryptoKeyAndNonceStore applicationStore)
     : base(applicationStore)
 {
     Reporting.RecordFeatureUse(this);
 }
		/// <summary>
		/// Initializes a new instance of the <see cref="OpenIdAjaxRelyingParty"/> class.
		/// </summary>
		/// <param name="applicationStore">The application store.  If <c>null</c>, the relying party will always operate in "dumb mode".</param>
		public OpenIdAjaxRelyingParty(ICryptoKeyAndNonceStore applicationStore)
			: base(applicationStore) {
			Reporting.RecordFeatureUse(this);
		}
Esempio n. 7
0
		/// <summary>
		/// Initializes a new instance of the <see cref="OpenIdProvider" /> class.
		/// </summary>
		/// <param name="applicationStore">The application store to use.  Cannot be null.</param>
		/// <param name="hostFactories">The host factories.</param>
		public OpenIdProvider(ICryptoKeyAndNonceStore applicationStore, IHostFactories hostFactories = null)
			: this((INonceStore)applicationStore, (ICryptoKeyStore)applicationStore, hostFactories) {
			Requires.NotNull(applicationStore, "applicationStore");
		}