diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-11-02 21:43:08 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-11-02 21:43:08 -0800 |
commit | 916966f88a3ed3246374efb625804b11bdda6fa5 (patch) | |
tree | 33746b2a4eab9d336db4fe57c7056e5d83f407fa /src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs | |
parent | 696c3507c353a2b96d832efe6c8b87cfbad0b17a (diff) | |
download | DotNetOpenAuth-916966f88a3ed3246374efb625804b11bdda6fa5.zip DotNetOpenAuth-916966f88a3ed3246374efb625804b11bdda6fa5.tar.gz DotNetOpenAuth-916966f88a3ed3246374efb625804b11bdda6fa5.tar.bz2 |
Renamed all the OAuth message types.
Diffstat (limited to 'src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs')
-rw-r--r-- | src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs b/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs deleted file mode 100644 index 20ad5b7..0000000 --- a/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs +++ /dev/null @@ -1,69 +0,0 @@ -//-----------------------------------------------------------------------
-// <copyright file="DirectUserToServiceProviderMessage.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOAuth.Messages {
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using DotNetOAuth.Messaging;
-
- /// <summary>
- /// A message used to redirect the user from a Consumer to a Service Provider's web site.
- /// </summary>
- public class DirectUserToServiceProviderMessage : MessageBase, ITokenContainingMessage {
- /// <summary>
- /// Initializes a new instance of the <see cref="DirectUserToServiceProviderMessage"/> class.
- /// </summary>
- /// <param name="serviceProvider">The URI of the Service Provider endpoint to send this message to.</param>
- /// <param name="requestToken">The request token.</param>
- internal DirectUserToServiceProviderMessage(MessageReceivingEndpoint serviceProvider, string requestToken)
- : this(serviceProvider) {
- this.RequestToken = requestToken;
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="DirectUserToServiceProviderMessage"/> class.
- /// </summary>
- /// <param name="serviceProvider">The URI of the Service Provider endpoint to send this message to.</param>
- internal DirectUserToServiceProviderMessage(MessageReceivingEndpoint serviceProvider)
- : base(MessageProtections.None, MessageTransport.Indirect, serviceProvider) {
- }
-
- /// <summary>
- /// Gets or sets the Request or Access Token.
- /// </summary>
- [SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes", Justification = "This property IS accessible by a different name.")]
- string ITokenContainingMessage.Token {
- get { return this.RequestToken; }
- set { this.RequestToken = value; }
- }
-
- /// <summary>
- /// Gets the extra, non-OAuth parameters that will be included in the message.
- /// </summary>
- public new IDictionary<string, string> ExtraData {
- get { return base.ExtraData; }
- }
-
- /// <summary>
- /// Gets or sets the Request Token obtained in the previous step.
- /// </summary>
- /// <remarks>
- /// The Service Provider MAY declare this parameter as REQUIRED, or
- /// accept requests to the User Authorization URL without it, in which
- /// case it will prompt the User to enter it manually.
- /// </remarks>
- [MessagePart("oauth_token", IsRequired = false)]
- internal string RequestToken { get; set; }
-
- /// <summary>
- /// Gets or sets a URL the Service Provider will use to redirect the User back
- /// to the Consumer when Obtaining User Authorization is complete. Optional.
- /// </summary>
- [MessagePart("oauth_callback", IsRequired = false)]
- internal Uri Callback { get; set; }
- }
-}
|