diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/DotNetOpenAuth.csproj | 2 | ||||
-rw-r--r-- | src/DotNetOpenAuth/OAuthWrap/AuthorizationServerDescription.cs (renamed from src/DotNetOpenAuth/OAuthWrap/TokenIssuerDescription.cs) | 14 | ||||
-rw-r--r-- | src/DotNetOpenAuth/OAuthWrap/ChannelElements/UriOrOutOfBandEncoding.cs | 2 | ||||
-rw-r--r-- | src/DotNetOpenAuth/OAuthWrap/ConsumerBase.cs | 8 | ||||
-rw-r--r-- | src/DotNetOpenAuth/OAuthWrap/WebConsumer.cs | 17 |
5 files changed, 29 insertions, 14 deletions
diff --git a/src/DotNetOpenAuth/DotNetOpenAuth.csproj b/src/DotNetOpenAuth/DotNetOpenAuth.csproj index 9e8858c..4fac07c 100644 --- a/src/DotNetOpenAuth/DotNetOpenAuth.csproj +++ b/src/DotNetOpenAuth/DotNetOpenAuth.csproj @@ -580,7 +580,7 @@ http://opensource.org/licenses/ms-pl.html <DesignTime>True</DesignTime> <DependentUpon>SimpleAuthStrings.resx</DependentUpon> </Compile> - <Compile Include="OAuthWrap\TokenIssuerDescription.cs" /> + <Compile Include="OAuthWrap\AuthorizationServerDescription.cs" /> <Compile Include="OAuthWrap\WebConsumer.cs" /> <Compile Include="Util.cs" /> <Compile Include="OAuth\Protocol.cs" /> diff --git a/src/DotNetOpenAuth/OAuthWrap/TokenIssuerDescription.cs b/src/DotNetOpenAuth/OAuthWrap/AuthorizationServerDescription.cs index 0dd07c4..8f8f218 100644 --- a/src/DotNetOpenAuth/OAuthWrap/TokenIssuerDescription.cs +++ b/src/DotNetOpenAuth/OAuthWrap/AuthorizationServerDescription.cs @@ -1,5 +1,5 @@ //----------------------------------------------------------------------- -// <copyright file="TokenIssuerDescription.cs" company="Andrew Arnott"> +// <copyright file="AuthorizationServerDescription.cs" company="Andrew Arnott"> // Copyright (c) Andrew Arnott. All rights reserved. // </copyright> //----------------------------------------------------------------------- @@ -11,21 +11,21 @@ namespace DotNetOpenAuth.OAuthWrap { using System.Text; /// <summary> - /// A description of a OAuth WRAP Token Issuer. + /// A description of an OAuth WRAP Authorization Server. /// </summary> - public class TokenIssuerDescription { + public class AuthorizationServerDescription { /// <summary> - /// Initializes a new instance of the <see cref="TokenIssuerDescription"/> class. + /// Initializes a new instance of the <see cref="AuthorizationServerDescription"/> class. /// </summary> - public TokenIssuerDescription() { + public AuthorizationServerDescription() { this.Version = Protocol.DefaultVersion; } /// <summary> - /// Initializes a new instance of the <see cref="TokenIssuerDescription"/> class. + /// Initializes a new instance of the <see cref="AuthorizationServerDescription"/> class. /// </summary> /// <param name="endpointUrl">The endpoint URL of the Token Issuer.</param> - public TokenIssuerDescription(Uri endpointUrl) + public AuthorizationServerDescription(Uri endpointUrl) : this() { this.EndpointUrl = endpointUrl; } diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/UriOrOutOfBandEncoding.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/UriOrOutOfBandEncoding.cs index bb7fc01..2917cba 100644 --- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/UriOrOutOfBandEncoding.cs +++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/UriOrOutOfBandEncoding.cs @@ -17,7 +17,7 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements { /// instead of an empty/missing argument. /// </summary> /// <remarks> - /// This class is functionality equivalent to the <see cref="DotNetOpenAuth.OAuth.UriOrOobEncoding"/> + /// This class is functionality equivalent to the <see cref="DotNetOpenAuth.OAuth.ChannelElements.UriOrOobEncoding"/> /// encoding element, except that instead of using "oob" for null Uri values, /// "out_of_band" is used. /// </remarks> diff --git a/src/DotNetOpenAuth/OAuthWrap/ConsumerBase.cs b/src/DotNetOpenAuth/OAuthWrap/ConsumerBase.cs index bdfb9b8..d45562d 100644 --- a/src/DotNetOpenAuth/OAuthWrap/ConsumerBase.cs +++ b/src/DotNetOpenAuth/OAuthWrap/ConsumerBase.cs @@ -13,14 +13,14 @@ namespace DotNetOpenAuth.OAuthWrap { using DotNetOpenAuth.Messaging; /// <summary> - /// A base class for common Consumer behaviors. + /// A base class for common OAuth WRAP Consumer behaviors. /// </summary> public class ConsumerBase { /// <summary> /// Initializes a new instance of the <see cref="ConsumerBase"/> class. /// </summary> /// <param name="tokenIssuer">The token issuer.</param> - protected ConsumerBase(TokenIssuerDescription tokenIssuer) { + protected ConsumerBase(AuthorizationServerDescription tokenIssuer) { ErrorUtilities.VerifyArgumentNotNull(tokenIssuer, "tokenIssuer"); this.TokenIssuer = tokenIssuer; } @@ -30,7 +30,7 @@ namespace DotNetOpenAuth.OAuthWrap { /// </summary> /// <param name="tokenIssuerEndpoint">The token issuer endpoint.</param> protected ConsumerBase(Uri tokenIssuerEndpoint) - : this(new TokenIssuerDescription(tokenIssuerEndpoint)) { + : this(new AuthorizationServerDescription(tokenIssuerEndpoint)) { } /// <summary> @@ -45,7 +45,7 @@ namespace DotNetOpenAuth.OAuthWrap { /// Gets the token issuer. /// </summary> /// <value>The token issuer.</value> - public TokenIssuerDescription TokenIssuer { get; private set; } + public AuthorizationServerDescription TokenIssuer { get; private set; } /// <summary> /// Gets the channel. diff --git a/src/DotNetOpenAuth/OAuthWrap/WebConsumer.cs b/src/DotNetOpenAuth/OAuthWrap/WebConsumer.cs index 828dd0b..3470b62 100644 --- a/src/DotNetOpenAuth/OAuthWrap/WebConsumer.cs +++ b/src/DotNetOpenAuth/OAuthWrap/WebConsumer.cs @@ -12,15 +12,30 @@ namespace DotNetOpenAuth.OAuthWrap { using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuthWrap.Messages; + /// <summary> + /// An OAuth WRAP consumer designed for web applications. + /// </summary> public class WebConsumer : ConsumerBase { - public WebConsumer(TokenIssuerDescription tokenIssuer) + /// <summary> + /// Initializes a new instance of the <see cref="WebConsumer"/> class. + /// </summary> + /// <param name="tokenIssuer">The token issuer.</param> + public WebConsumer(AuthorizationServerDescription tokenIssuer) : base(tokenIssuer) { } + /// <summary> + /// Initializes a new instance of the <see cref="WebConsumer"/> class. + /// </summary> + /// <param name="tokenIssuerEndpoint">The token issuer endpoint.</param> public WebConsumer(Uri tokenIssuerEndpoint) : base(tokenIssuerEndpoint) { } + /// <summary> + /// Initializes a new instance of the <see cref="WebConsumer"/> class. + /// </summary> + /// <param name="tokenIssuerEndpoint">The token issuer endpoint.</param> public WebConsumer(string tokenIssuerEndpoint) : base(tokenIssuerEndpoint) { } |