summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-11-27 21:57:18 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-11-27 21:57:39 -0700
commit8e3189655e50cb3a6d461ba48ac984bb4a9d5699 (patch)
treeac1e3a60c7c22529b5846a713ea0679c42a1aba2 /src
parent3731024762f98757aafb694e62ce798539d90ff2 (diff)
downloadDotNetOpenAuth-8e3189655e50cb3a6d461ba48ac984bb4a9d5699.zip
DotNetOpenAuth-8e3189655e50cb3a6d461ba48ac984bb4a9d5699.tar.gz
DotNetOpenAuth-8e3189655e50cb3a6d461ba48ac984bb4a9d5699.tar.bz2
Added skeletal Google Apps for Domains discovery service.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/DotNetOpenAuth.csproj1
-rw-r--r--src/DotNetOpenAuth/OpenId/GoogleAppsDiscoveryService.cs47
2 files changed, 48 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/DotNetOpenAuth.csproj b/src/DotNetOpenAuth/DotNetOpenAuth.csproj
index 5246b96..9f58cf6 100644
--- a/src/DotNetOpenAuth/DotNetOpenAuth.csproj
+++ b/src/DotNetOpenAuth/DotNetOpenAuth.csproj
@@ -431,6 +431,7 @@ http://opensource.org/licenses/ms-pl.html
<Compile Include="OpenId\Extensions\UI\UIUtilities.cs" />
<Compile Include="OpenId\Extensions\UI\UIModes.cs" />
<Compile Include="OpenId\Extensions\UI\UIRequest.cs" />
+ <Compile Include="OpenId\GoogleAppsDiscoveryService.cs" />
<Compile Include="OpenId\Identifier.cs" />
<Compile Include="OpenId\IdentifierContract.cs" />
<Compile Include="OpenId\Extensions\ExtensionsInteropHelper.cs" />
diff --git a/src/DotNetOpenAuth/OpenId/GoogleAppsDiscoveryService.cs b/src/DotNetOpenAuth/OpenId/GoogleAppsDiscoveryService.cs
new file mode 100644
index 0000000..6a3c23b
--- /dev/null
+++ b/src/DotNetOpenAuth/OpenId/GoogleAppsDiscoveryService.cs
@@ -0,0 +1,47 @@
+//-----------------------------------------------------------------------
+// <copyright file="GoogleAppsDiscoveryService.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;
+
+ /// <summary>
+ /// The discovery service to support Google Apps for Domains' proprietary discovery.
+ /// </summary>
+ /// <remarks>
+ /// The spec for this discovery mechanism can be found at:
+ /// http://groups.google.com/group/google-federated-login-api/web/openid-discovery-for-hosted-domains
+ /// and the XMLDSig spec referenced in that spec can be found at:
+ /// http://wiki.oasis-open.org/xri/XrdOne/XmlDsigProfile
+ /// </remarks>
+ public class GoogleAppsDiscoveryService : IIdentifierDiscoveryService {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="GoogleAppsDiscoveryService"/> class.
+ /// </summary>
+ public GoogleAppsDiscoveryService() {
+ }
+
+ #region IIdentifierDiscoveryService Members
+
+ /// <summary>
+ /// Performs discovery on the specified identifier.
+ /// </summary>
+ /// <param name="identifier">The identifier to perform discovery on.</param>
+ /// <param name="requestHandler">The means to place outgoing HTTP requests.</param>
+ /// <param name="abortDiscoveryChain">if set to <c>true</c>, no further discovery services will be called for this identifier.</param>
+ /// <returns>
+ /// A sequence of service endpoints yielded by discovery. Must not be null, but may be empty.
+ /// </returns>
+ public IEnumerable<IdentifierDiscoveryResult> Discover(Identifier identifier, IDirectWebRequestHandler requestHandler, out bool abortDiscoveryChain) {
+ throw new NotImplementedException();
+ }
+
+ #endregion
+ }
+}