diff options
Diffstat (limited to 'src/DotNetOAuth/OAuth/Messages/AccessProtectedResourceRequest.cs')
-rw-r--r-- | src/DotNetOAuth/OAuth/Messages/AccessProtectedResourceRequest.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/DotNetOAuth/OAuth/Messages/AccessProtectedResourceRequest.cs b/src/DotNetOAuth/OAuth/Messages/AccessProtectedResourceRequest.cs deleted file mode 100644 index 2704dd5..0000000 --- a/src/DotNetOAuth/OAuth/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.OAuth.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; }
- }
-}
|