summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messages/AccessProtectedResourceRequest.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-11-03 16:02:57 -0800
committerAndrew <andrewarnott@gmail.com>2008-11-03 16:02:57 -0800
commitaa1f55f58a561ff64dc268977d0d7c9decb92bbe (patch)
treefd685f00353d26493b40df7eaeac78745e27d1b8 /src/DotNetOAuth/Messages/AccessProtectedResourceRequest.cs
parentf1794fc8779ae39ac3d5bc6e8b811523e62ca482 (diff)
downloadDotNetOpenAuth-aa1f55f58a561ff64dc268977d0d7c9decb92bbe.zip
DotNetOpenAuth-aa1f55f58a561ff64dc268977d0d7c9decb92bbe.tar.gz
DotNetOpenAuth-aa1f55f58a561ff64dc268977d0d7c9decb92bbe.tar.bz2
Moved all the OAuth classes into its own namespace in preparation to receiving DotNetOpenId merge.
Diffstat (limited to 'src/DotNetOAuth/Messages/AccessProtectedResourceRequest.cs')
-rw-r--r--src/DotNetOAuth/Messages/AccessProtectedResourceRequest.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/DotNetOAuth/Messages/AccessProtectedResourceRequest.cs b/src/DotNetOAuth/Messages/AccessProtectedResourceRequest.cs
deleted file mode 100644
index e29f710..0000000
--- a/src/DotNetOAuth/Messages/AccessProtectedResourceRequest.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="AccessProtectedResourceRequest.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOAuth.Messages {
- using System.Diagnostics.CodeAnalysis;
- using DotNetOAuth.Messaging;
-
- /// <summary>
- /// A message attached to a request for protected resources that provides the necessary
- /// credentials to be granted access to those resources.
- /// </summary>
- public class AccessProtectedResourceRequest : SignedMessageBase, ITokenContainingMessage {
- /// <summary>
- /// Initializes a new instance of the <see cref="AccessProtectedResourceRequest"/> class.
- /// </summary>
- /// <param name="serviceProvider">The URI of the Service Provider endpoint to send this message to.</param>
- protected internal AccessProtectedResourceRequest(MessageReceivingEndpoint serviceProvider)
- : base(MessageTransport.Direct, serviceProvider) {
- }
-
- /// <summary>
- /// Gets or sets the Token.
- /// </summary>
- [SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes", Justification = "This property IS accessible by a different name.")]
- string ITokenContainingMessage.Token {
- get { return this.AccessToken; }
- set { this.AccessToken = value; }
- }
-
- /// <summary>
- /// Gets or sets the Access Token.
- /// </summary>
- /// <remarks>
- /// In addition to just allowing OAuth to verify a valid message,
- /// this property is useful on the Service Provider to verify that the access token
- /// has proper authorization for the resource being requested, and to know the
- /// context around which user provided the authorization.
- /// </remarks>
- [MessagePart("oauth_token", IsRequired = true)]
- public string AccessToken { get; set; }
- }
-}