summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-23 07:47:08 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-23 07:47:08 -0800
commit8679fd44bbe14b590353c128d47e9a73cf180160 (patch)
tree7b69e3a3170c6c825cb958863a924146c3e427ba /src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs
parentd1ef15d419f5235cc7266c9128790e20b92c5e58 (diff)
downloadDotNetOpenAuth-8679fd44bbe14b590353c128d47e9a73cf180160.zip
DotNetOpenAuth-8679fd44bbe14b590353c128d47e9a73cf180160.tar.gz
DotNetOpenAuth-8679fd44bbe14b590353c128d47e9a73cf180160.tar.bz2
Split out the authorization carrying messages into distinct interfaces.
This is to support additional grant types such as resource owner password credential and client credentials.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs
index 179c342..dcacc14 100644
--- a/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs
+++ b/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/EndUserAuthorizationSuccessAuthCodeResponse.cs
@@ -16,7 +16,7 @@ namespace DotNetOpenAuth.OAuth2.Messages {
/// to indicate that user authorization was granted, carrying an authorization code and possibly an access token,
/// and to return the user to the Client where they started their experience.
/// </summary>
- internal class EndUserAuthorizationSuccessAuthCodeResponse : EndUserAuthorizationSuccessResponseBase, IAuthorizationCarryingRequest {
+ internal class EndUserAuthorizationSuccessAuthCodeResponse : EndUserAuthorizationSuccessResponseBase, IAuthorizationCodeCarryingRequest {
/// <summary>
/// Initializes a new instance of the <see cref="EndUserAuthorizationSuccessAuthCodeResponse"/> class.
/// </summary>
@@ -40,29 +40,27 @@ namespace DotNetOpenAuth.OAuth2.Messages {
((IMessageWithClientState)this).ClientState = request.ClientState;
}
- #region IAuthorizationCarryingRequest Members
+ #region IAuthorizationCodeCarryingRequest Members
/// <summary>
- /// Gets or sets the verification code or refresh/access token.
+ /// Gets or sets the authorization code.
/// </summary>
- /// <value>The code or token.</value>
- string IAuthorizationCarryingRequest.CodeOrToken {
+ string IAuthorizationCodeCarryingRequest.Code {
get { return this.AuthorizationCode; }
set { this.AuthorizationCode = value; }
}
/// <summary>
- /// Gets the type of the code or token.
+ /// Gets or sets the authorization that the token describes.
/// </summary>
- /// <value>The type of the code or token.</value>
- CodeOrTokenType IAuthorizationCarryingRequest.CodeOrTokenType {
- get { return CodeOrTokenType.AuthorizationCode; }
- }
+ AuthorizationCode IAuthorizationCodeCarryingRequest.AuthorizationDescription { get; set; }
/// <summary>
- /// Gets or sets the authorization that the token describes.
+ /// Gets the authorization that the code describes.
/// </summary>
- IAuthorizationDescription IAuthorizationCarryingRequest.AuthorizationDescription { get; set; }
+ IAuthorizationDescription IAuthorizationCarryingRequest.AuthorizationDescription {
+ get { return ((IAuthorizationCodeCarryingRequest)this).AuthorizationDescription; }
+ }
#endregion