/// <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");
 }
Пример #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));
 }
Пример #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)
 {
 }
Пример #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);
		}
Пример #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");
		}