diff options
Diffstat (limited to 'src/DotNetOpenId/RelyingParty/AssociationPreference.cs')
-rw-r--r-- | src/DotNetOpenId/RelyingParty/AssociationPreference.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/DotNetOpenId/RelyingParty/AssociationPreference.cs b/src/DotNetOpenId/RelyingParty/AssociationPreference.cs new file mode 100644 index 0000000..348c059 --- /dev/null +++ b/src/DotNetOpenId/RelyingParty/AssociationPreference.cs @@ -0,0 +1,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,
+ }
+}
|