diff options
Diffstat (limited to 'src/DotNetOpenAuth.OAuth.Consumer/OAuth')
6 files changed, 26 insertions, 10 deletions
diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessTokenResponse.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessTokenResponse.cs index dd35400..69160c0 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessTokenResponse.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessTokenResponse.cs @@ -6,14 +6,32 @@ using System.Text; using System.Threading.Tasks; + /// <summary> + /// Captures the data that is returned from a request for an access token. + /// </summary> public class AccessTokenResponse { + /// <summary> + /// Initializes a new instance of the <see cref="AccessTokenResponse"/> class. + /// </summary> + /// <param name="accessToken">The access token.</param> + /// <param name="tokenSecret">The token secret.</param> + /// <param name="extraData">Any extra data that came with the response.</param> public AccessTokenResponse(string accessToken, string tokenSecret, NameValueCollection extraData) { this.AccessToken = new AccessToken(accessToken, tokenSecret); this.ExtraData = extraData; } + /// <summary> + /// Gets or sets the access token. + /// </summary> + /// <value> + /// The access token. + /// </value> public AccessToken AccessToken { get; set; } + /// <summary> + /// Gets or sets any extra data that came with the response.. + /// </summary> public NameValueCollection ExtraData { get; set; } } } diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs index 93fbaac..9f79aef 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs @@ -23,7 +23,7 @@ namespace DotNetOpenAuth.OAuth { using Validation; /// <summary> - /// Base class for <see cref="WebConsumer"/> and <see cref="DesktopConsumer"/> types. + /// Provides OAuth 1.0 consumer services to a client or web application. /// </summary> public class Consumer { /// <summary> @@ -74,7 +74,7 @@ namespace DotNetOpenAuth.OAuth { } /// <summary> - /// Gets the Consumer Key used to communicate with the Service Provider. + /// Gets or sets the Consumer Key used to communicate with the Service Provider. /// </summary> public string ConsumerKey { get; set; } @@ -103,7 +103,7 @@ namespace DotNetOpenAuth.OAuth { public ServiceProviderDescription ServiceProvider { get; set; } /// <summary> - /// Gets the persistence store for tokens and secrets. + /// Gets or sets the persistence store for tokens and secrets. /// </summary> public ITemporaryCredentialStorage TemporaryCredentialStorage { get; set; } diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/CookieTemporaryCredentialStorage.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/CookieTemporaryCredentialStorage.cs index 25941e6..dac2139 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/CookieTemporaryCredentialStorage.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/CookieTemporaryCredentialStorage.cs @@ -31,7 +31,7 @@ namespace DotNetOpenAuth.OAuth { private readonly HttpContextBase httpContext; /// <summary> - /// Initializes a new instance of the <see cref="CookieTemporaryCredentialsStorage"/> class + /// Initializes a new instance of the <see cref="CookieTemporaryCredentialStorage"/> class /// using <see cref="HttpContext.Current"/> as the source for the context to read and write cookies to. /// </summary> public CookieTemporaryCredentialStorage() @@ -39,7 +39,7 @@ namespace DotNetOpenAuth.OAuth { } /// <summary> - /// Initializes a new instance of the <see cref="CookieTemporaryCredentialsStorage"/> class. + /// Initializes a new instance of the <see cref="CookieTemporaryCredentialStorage"/> class. /// </summary> /// <param name="httpContext">The HTTP context from and to which to access cookies.</param> public CookieTemporaryCredentialStorage(HttpContextBase httpContext) { @@ -75,7 +75,6 @@ namespace DotNetOpenAuth.OAuth { /// <returns> /// An initialized key value pair if credentials are available; otherwise both key and value are <c>null</c>. /// </returns> - /// <exception cref="System.NotImplementedException"></exception> public KeyValuePair<string, string> RetrieveTemporaryCredential() { HttpCookie cookie = this.httpContext.Request.Cookies[TokenCookieKey]; if (cookie == null || cookie.Values.Count == 0) { diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/MemoryTemporaryCredentialStorage.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/MemoryTemporaryCredentialStorage.cs index 832084d..125505a 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/MemoryTemporaryCredentialStorage.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/MemoryTemporaryCredentialStorage.cs @@ -51,7 +51,6 @@ namespace DotNetOpenAuth.OAuth { /// <summary> /// Clears the temporary credentials from storage. /// </summary> - /// <param name="identifier">The identifier of the credentials to clear.</param> /// <remarks> /// DotNetOpenAuth calls this when the credentials are no longer needed. /// </remarks> diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/OAuth1HttpMessageHandlerBase.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/OAuth1HttpMessageHandlerBase.cs index aa462f3..0fb8414 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/OAuth1HttpMessageHandlerBase.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/OAuth1HttpMessageHandlerBase.cs @@ -1,5 +1,5 @@ //----------------------------------------------------------------------- -// <copyright file="OAuth1HttpMessageHandler.cs" company="Andrew Arnott"> +// <copyright file="OAuth1HttpMessageHandlerBase.cs" company="Andrew Arnott"> // Copyright (c) Andrew Arnott. All rights reserved. // </copyright> //----------------------------------------------------------------------- diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ServiceProviderDescription.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ServiceProviderDescription.cs index 2d07af4..b04b35b 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ServiceProviderDescription.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ServiceProviderDescription.cs @@ -61,7 +61,7 @@ namespace DotNetOpenAuth.OAuth { public HttpMethod TemporaryCredentialsRequestEndpointMethod { get; set; } /// <summary> - /// Gets the resource owner authorization endpoint. + /// Gets or sets the resource owner authorization endpoint. /// </summary> /// <value> /// The resource owner authorization endpoint. @@ -70,7 +70,7 @@ namespace DotNetOpenAuth.OAuth { public Uri ResourceOwnerAuthorizationEndpoint { get; set; } /// <summary> - /// Gets the token request endpoint. + /// Gets or sets the token request endpoint. /// </summary> /// <value> /// The token request endpoint. |