summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/DotNetOpenAuth/DotNetOpenAuth.csproj2
-rw-r--r--src/DotNetOpenAuth/OpenId/OpenIdProvider.cs38
-rw-r--r--src/DotNetOpenAuth/OpenId/OpenIdRelyingParty.cs38
3 files changed, 78 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/DotNetOpenAuth.csproj b/src/DotNetOpenAuth/DotNetOpenAuth.csproj
index cb65451..2a0c900 100644
--- a/src/DotNetOpenAuth/DotNetOpenAuth.csproj
+++ b/src/DotNetOpenAuth/DotNetOpenAuth.csproj
@@ -147,6 +147,7 @@
<Compile Include="OpenId\ChannelElements\KeyValueFormEncoding.cs" />
<Compile Include="OpenId\ChannelElements\OpenIdChannel.cs" />
<Compile Include="OpenId\ChannelElements\OpenIdMessageTypeProvider.cs" />
+ <Compile Include="OpenId\OpenIdProvider.cs" />
<Compile Include="OpenId\Messages\AssociateDiffieHellmanRequest.cs" />
<Compile Include="OpenId\Messages\AssociateDiffieHellmanResponse.cs" />
<Compile Include="OpenId\Messages\AssociateRequest.cs" />
@@ -157,6 +158,7 @@
<Compile Include="OpenId\Messages\DirectErrorResponse.cs" />
<Compile Include="OpenId\Messages\RequestBase.cs" />
<Compile Include="OpenId\Messages\ResponseBase.cs" />
+ <Compile Include="OpenId\OpenIdRelyingParty.cs" />
<Compile Include="OpenId\OpenIdStrings.Designer.cs">
<DependentUpon>OpenIdStrings.resx</DependentUpon>
<DesignTime>True</DesignTime>
diff --git a/src/DotNetOpenAuth/OpenId/OpenIdProvider.cs b/src/DotNetOpenAuth/OpenId/OpenIdProvider.cs
new file mode 100644
index 0000000..b7278ad
--- /dev/null
+++ b/src/DotNetOpenAuth/OpenId/OpenIdProvider.cs
@@ -0,0 +1,38 @@
+//-----------------------------------------------------------------------
+// <copyright file="OpenIdProvider.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.OpenId {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using DotNetOpenAuth.Messaging;
+ using DotNetOpenAuth.OpenId.ChannelElements;
+
+ /// <summary>
+ /// Offers services for a web page that is acting as an OpenID identity server.
+ /// </summary>
+ public sealed class OpenIdProvider {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="OpenIdProvider"/> class.
+ /// </summary>
+ public OpenIdProvider() {
+ this.OpenIdChannel = new OpenIdChannel();
+ }
+
+ /// <summary>
+ /// Gets the channel to use for sending/receiving messages.
+ /// </summary>
+ public Channel Channel {
+ get { return this.OpenIdChannel; }
+ }
+
+ /// <summary>
+ /// Gets or sets the channel to use for sending/receiving messages.
+ /// </summary>
+ internal OpenIdChannel OpenIdChannel { get; set; }
+ }
+}
diff --git a/src/DotNetOpenAuth/OpenId/OpenIdRelyingParty.cs b/src/DotNetOpenAuth/OpenId/OpenIdRelyingParty.cs
new file mode 100644
index 0000000..2ecb071
--- /dev/null
+++ b/src/DotNetOpenAuth/OpenId/OpenIdRelyingParty.cs
@@ -0,0 +1,38 @@
+//-----------------------------------------------------------------------
+// <copyright file="OpenIdRelyingParty.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.OpenId {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using DotNetOpenAuth.Messaging;
+ using DotNetOpenAuth.OpenId.ChannelElements;
+
+ /// <summary>
+ /// Provides the programmatic facilities to act as an OpenId consumer.
+ /// </summary>
+ public sealed class OpenIdRelyingParty {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="OpenIdRelyingParty"/> class.
+ /// </summary>
+ public OpenIdRelyingParty() {
+ this.OpenIdChannel = new OpenIdChannel();
+ }
+
+ /// <summary>
+ /// Gets the channel to use for sending/receiving messages.
+ /// </summary>
+ public Channel Channel {
+ get { return this.OpenIdChannel; }
+ }
+
+ /// <summary>
+ /// Gets or sets the channel to use for sending/receiving messages.
+ /// </summary>
+ internal OpenIdChannel OpenIdChannel { get; set; }
+ }
+}