diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-10-24 15:12:19 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-10-24 15:12:19 -0700 |
commit | 2fac11f19f31b097022669dfced33dd7b787d27c (patch) | |
tree | 7d4734bc1164746edf205c11268efc6e7749b086 /src/DotNetOpenAuth/OAuth/WebConsumer.cs | |
parent | f897f6f17b7ad6fa2f53a827f35bddfc2b7d5336 (diff) | |
download | DotNetOpenAuth-origin/Silverlight.zip DotNetOpenAuth-origin/Silverlight.tar.gz DotNetOpenAuth-origin/Silverlight.tar.bz2 |
Added OAuth Consumer components and fixed a bunch of build breaks.origin/Silverlight
Diffstat (limited to 'src/DotNetOpenAuth/OAuth/WebConsumer.cs')
-rw-r--r-- | src/DotNetOpenAuth/OAuth/WebConsumer.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OAuth/WebConsumer.cs b/src/DotNetOpenAuth/OAuth/WebConsumer.cs index de37b80..e3bbfef 100644 --- a/src/DotNetOpenAuth/OAuth/WebConsumer.cs +++ b/src/DotNetOpenAuth/OAuth/WebConsumer.cs @@ -8,12 +8,16 @@ namespace DotNetOpenAuth.OAuth { using System; using System.Collections.Generic; using System.Diagnostics.Contracts; +#if !SILVERLIGHT using System.Web; +#endif using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth.ChannelElements; using DotNetOpenAuth.OAuth.Messages; +#if !SILVERLIGHT using DotNetOpenAuth.OpenId.Extensions.OAuth; using DotNetOpenAuth.OpenId.RelyingParty; +#endif /// <summary> /// A website or application that uses OAuth to access the Service Provider on behalf of the User. @@ -32,6 +36,7 @@ namespace DotNetOpenAuth.OAuth { : base(serviceDescription, tokenManager) { } +#if !SILVERLIGHT /// <summary> /// Begins an OAuth authorization request and redirects the user to the Service Provider /// to provide that authorization. Upon successful authorization, the user is redirected @@ -45,6 +50,7 @@ namespace DotNetOpenAuth.OAuth { Uri callback = this.Channel.GetRequestFromContext().UrlBeforeRewriting.StripQueryArgumentsWithPrefix(Protocol.ParameterPrefix); return this.PrepareRequestUserAuthorization(callback, null, null); } +#endif /// <summary> /// Prepares an OAuth message that begins an authorization request that will @@ -62,6 +68,7 @@ namespace DotNetOpenAuth.OAuth { return this.PrepareRequestUserAuthorization(callback, requestParameters, redirectParameters, out token); } +#if !SILVERLIGHT /// <summary> /// Processes an incoming authorization-granted message from an SP and obtains an access token. /// </summary> @@ -151,5 +158,6 @@ namespace DotNetOpenAuth.OAuth { return null; } } +#endif } } |