summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/RelyingParty/AssociationPreference.cs
blob: 348c0592143b8c3d86e2b41fb13906d5f3c44a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetOpenId.RelyingParty {
	/// <summary>
	/// Preferences regarding creation and use of an association between a relying party
	/// and provider for authentication.
	/// </summary>
	internal enum AssociationPreference {
		/// <summary>
		/// Indicates that an association should be created for use in authentication
		/// if one has not already been established between the relying party and the
		/// selected provider.
		/// </summary>
		/// <remarks>
		/// Even with this value, if an association attempt fails or the relying party
		/// has no application store to recall associations, the authentication may 
		/// proceed without an association.
		/// </remarks>
		IfPossible,

		/// <summary>
		/// Indicates that an association should be used for authentication only if
		/// it happens to already exist.
		/// </summary>
		IfAlreadyEstablished,

		/// <summary>
		/// Indicates that an authentication attempt should NOT use an OpenID association
		/// between the relying party and the provider, even if an association was previously
		/// created.
		/// </summary>
		Never,
	}
}