summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-04-12 21:06:57 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2008-04-15 22:23:42 -0700
commit03374ffbc284ea9a7eefa02584e4750b8082d066 (patch)
treeb436667889009e50d3fa4da1b48d8f6b33cf267d
parent1a31e492cda56e542be91f6d34d5c49941d21d24 (diff)
downloadDotNetOpenAuth-03374ffbc284ea9a7eefa02584e4750b8082d066.zip
DotNetOpenAuth-03374ffbc284ea9a7eefa02584e4750b8082d066.tar.gz
DotNetOpenAuth-03374ffbc284ea9a7eefa02584e4750b8082d066.tar.bz2
Added skeletal structure of Attribute Exchange extension classes.
-rw-r--r--src/DotNetOpenId/DotNetOpenId.csproj4
-rw-r--r--src/DotNetOpenId/Extensions/AttributeExchangeFetchRequest.cs27
-rw-r--r--src/DotNetOpenId/Extensions/AttributeExchangeFetchResponse.cs26
-rw-r--r--src/DotNetOpenId/Extensions/AttributeExchangeStoreRequest.cs27
-rw-r--r--src/DotNetOpenId/Extensions/AttributeExchangeStoreResponse.cs26
-rw-r--r--src/DotNetOpenId/Extensions/Constants.cs9
-rw-r--r--src/DotNetOpenId/Extensions/SimpleRegistrationFieldValues.cs1
7 files changed, 119 insertions, 1 deletions
diff --git a/src/DotNetOpenId/DotNetOpenId.csproj b/src/DotNetOpenId/DotNetOpenId.csproj
index 92abebd..e6f0d5f 100644
--- a/src/DotNetOpenId/DotNetOpenId.csproj
+++ b/src/DotNetOpenId/DotNetOpenId.csproj
@@ -52,7 +52,11 @@
<Compile Include="AssociationMemoryStore.cs" />
<Compile Include="Associations.cs" />
<Compile Include="ExtensionArgumentsManager.cs" />
+ <Compile Include="Extensions\AttributeExchangeFetchResponse.cs" />
<Compile Include="Extensions\Constants.cs" />
+ <Compile Include="Extensions\AttributeExchangeFetchRequest.cs" />
+ <Compile Include="Extensions\AttributeExchangeStoreRequest.cs" />
+ <Compile Include="Extensions\AttributeExchangeStoreResponse.cs" />
<Compile Include="HmacSha256Association.cs" />
<Compile Include="Identifier.cs" />
<Compile Include="Protocol.cs" />
diff --git a/src/DotNetOpenId/Extensions/AttributeExchangeFetchRequest.cs b/src/DotNetOpenId/Extensions/AttributeExchangeFetchRequest.cs
new file mode 100644
index 0000000..ad27769
--- /dev/null
+++ b/src/DotNetOpenId/Extensions/AttributeExchangeFetchRequest.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using DotNetOpenId.RelyingParty;
+
+namespace DotNetOpenId.Extensions {
+ /// <summary>
+ /// The Attribute Exchange Fetch message, request leg.
+ /// </summary>
+ public struct AttributeExchangeFetchRequest {
+ /// <summary>
+ /// Adds the properties of this Attribute Exchange request to an outgoing
+ /// OpenID authentication request.
+ /// </summary>
+ public void AddToRequest(Provider.IAuthenticationRequest authenticationRequest) {
+ throw new NotImplementedException();
+ }
+ /// <summary>
+ /// Reads an incoming authentication request (from a relying party)
+ /// for Attribute Exchange properties and returns an instance of this
+ /// struct with them.
+ /// </summary>
+ public static AttributeExchangeFetchRequest ReadFromRequest(IAuthenticationResponse response) {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/src/DotNetOpenId/Extensions/AttributeExchangeFetchResponse.cs b/src/DotNetOpenId/Extensions/AttributeExchangeFetchResponse.cs
new file mode 100644
index 0000000..4e7dbc2
--- /dev/null
+++ b/src/DotNetOpenId/Extensions/AttributeExchangeFetchResponse.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using DotNetOpenId.RelyingParty;
+
+namespace DotNetOpenId.Extensions {
+ /// <summary>
+ /// The Attribute Exchange Fetch message, response leg.
+ /// </summary>
+ public struct AttributeExchangeFetchResponse {
+ /// <summary>
+ /// Adds the values of this struct to an authentication response being prepared
+ /// by an OpenID Provider.
+ /// </summary>
+ public void AddToResponse(Provider.IAuthenticationRequest authenticationRequest) {
+ throw new NotImplementedException();
+ }
+ /// <summary>
+ /// Reads a Provider's response for Attribute Exchange values and returns
+ /// an instance of this struct with the values.
+ /// </summary>
+ public static AttributeExchangeFetchResponse ReadFromResponse(IAuthenticationResponse response) {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/src/DotNetOpenId/Extensions/AttributeExchangeStoreRequest.cs b/src/DotNetOpenId/Extensions/AttributeExchangeStoreRequest.cs
new file mode 100644
index 0000000..1fdc715
--- /dev/null
+++ b/src/DotNetOpenId/Extensions/AttributeExchangeStoreRequest.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using DotNetOpenId.RelyingParty;
+
+namespace DotNetOpenId.Extensions {
+ /// <summary>
+ /// The Attribute Exchange Store message, request leg.
+ /// </summary>
+ public struct AttributeExchangeStoreRequest {
+ /// <summary>
+ /// Adds the properties of this Attribute Exchange request to an outgoing
+ /// OpenID authentication request.
+ /// </summary>
+ public void AddToRequest(Provider.IAuthenticationRequest authenticationRequest) {
+ throw new NotImplementedException();
+ }
+ /// <summary>
+ /// Reads an incoming authentication request (from a relying party)
+ /// for Attribute Exchange properties and returns an instance of this
+ /// struct with them.
+ /// </summary>
+ public static AttributeExchangeStoreRequest ReadFromRequest(IAuthenticationResponse response) {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/src/DotNetOpenId/Extensions/AttributeExchangeStoreResponse.cs b/src/DotNetOpenId/Extensions/AttributeExchangeStoreResponse.cs
new file mode 100644
index 0000000..b28d2be
--- /dev/null
+++ b/src/DotNetOpenId/Extensions/AttributeExchangeStoreResponse.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using DotNetOpenId.RelyingParty;
+
+namespace DotNetOpenId.Extensions {
+ /// <summary>
+ /// The Attribute Exchange Store message, response leg.
+ /// </summary>
+ public struct AttributeExchangeStoreResponse {
+ /// <summary>
+ /// Adds the values of this struct to an authentication response being prepared
+ /// by an OpenID Provider.
+ /// </summary>
+ public void AddToResponse(Provider.IAuthenticationRequest authenticationRequest) {
+ throw new NotImplementedException();
+ }
+ /// <summary>
+ /// Reads a Provider's response for Attribute Exchange values and returns
+ /// an instance of this struct with the values.
+ /// </summary>
+ public static AttributeExchangeStoreResponse ReadFromResponse(IAuthenticationResponse response) {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/src/DotNetOpenId/Extensions/Constants.cs b/src/DotNetOpenId/Extensions/Constants.cs
index 9a59bff..304f52f 100644
--- a/src/DotNetOpenId/Extensions/Constants.cs
+++ b/src/DotNetOpenId/Extensions/Constants.cs
@@ -8,6 +8,15 @@ namespace DotNetOpenId.Extensions {
/// constants to each version used in the protocol.
/// </summary>
internal static class Constants {
+ /// <summary>
+ /// Attribute Exchange constants
+ /// </summary>
+ internal static class ae {
+ internal const string ns = "http://openid.net/srv/ax/1.0";
+ }
+ /// <summary>
+ /// Simple Registration constants
+ /// </summary>
internal static class sreg {
internal const string TypeUri = "http://openid.net/sreg/1.0";
internal const string sreg_ns = "http://openid.net/extensions/sreg/1.1";
diff --git a/src/DotNetOpenId/Extensions/SimpleRegistrationFieldValues.cs b/src/DotNetOpenId/Extensions/SimpleRegistrationFieldValues.cs
index adb4f2c..f7cf70d 100644
--- a/src/DotNetOpenId/Extensions/SimpleRegistrationFieldValues.cs
+++ b/src/DotNetOpenId/Extensions/SimpleRegistrationFieldValues.cs
@@ -112,7 +112,6 @@ namespace DotNetOpenId.Extensions
/// Adds the values of this struct to an authentication response being prepared
/// by an OpenID Provider.
/// </summary>
- /// <param name="authenticationRequest"></param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public void AddToResponse(Provider.IAuthenticationRequest authenticationRequest) {
if (authenticationRequest == null) throw new ArgumentNullException("authenticationRequest");