diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-18 20:38:14 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-18 21:49:43 -0800 |
commit | ecbb5402198330d7796059ccd2500f3b3e66ceb7 (patch) | |
tree | 06c003aa55b05bc4bb5ffe873e7994a157291d24 /src/DotNetOpenAuth/OAuthWrap/Messages/UserAuthorizationViaUsernamePasswordSuccessResponse.cs | |
parent | 47ba4e9c49be9479b7c3d30613cab982ecda042d (diff) | |
download | DotNetOpenAuth-ecbb5402198330d7796059ccd2500f3b3e66ceb7.zip DotNetOpenAuth-ecbb5402198330d7796059ccd2500f3b3e66ceb7.tar.gz DotNetOpenAuth-ecbb5402198330d7796059ccd2500f3b3e66ceb7.tar.bz2 |
Renamed SimpleApiAuth to OAuthWrap.
Diffstat (limited to 'src/DotNetOpenAuth/OAuthWrap/Messages/UserAuthorizationViaUsernamePasswordSuccessResponse.cs')
-rw-r--r-- | src/DotNetOpenAuth/OAuthWrap/Messages/UserAuthorizationViaUsernamePasswordSuccessResponse.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OAuthWrap/Messages/UserAuthorizationViaUsernamePasswordSuccessResponse.cs b/src/DotNetOpenAuth/OAuthWrap/Messages/UserAuthorizationViaUsernamePasswordSuccessResponse.cs new file mode 100644 index 0000000..11c9a20 --- /dev/null +++ b/src/DotNetOpenAuth/OAuthWrap/Messages/UserAuthorizationViaUsernamePasswordSuccessResponse.cs @@ -0,0 +1,37 @@ +//----------------------------------------------------------------------- +// <copyright file="UserAuthorizationViaUsernamePasswordSuccessResponse.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.OAuthWrap.Messages { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Text; + using DotNetOpenAuth.Messaging; + + /// <summary> + /// A response from the Token Issuer to the Consumer containing a delegation code + /// that the Consumer should use to obtain an access token. + /// </summary> + internal class UserAuthorizationViaUsernamePasswordSuccessResponse : MessageBase { + /// <summary> + /// Initializes a new instance of the <see cref="UserAuthorizationViaUsernamePasswordSuccessResponse"/> class. + /// </summary> + /// <param name="request">The request.</param> + internal UserAuthorizationViaUsernamePasswordSuccessResponse(UserAuthorizationViaUsernamePasswordRequest request) + : base(request) { + } + + /// <summary> + /// Gets or sets the delegation code. + /// </summary> + /// <value> + /// The long-lived credential assigned by the Token Issuer to this Consumer for + /// use in accessing the authorizing user's protected resources. + /// </value> + [MessagePart(Protocol.sa_delegation_code, IsRequired = true, AllowEmpty = true)] + internal string DelegationCode { get; set; } + } +} |