diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-15 15:08:24 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-15 15:08:24 -0700 |
commit | e93faf90701f5bd7376535b32b92f059552b17b5 (patch) | |
tree | 904f79a1ad8ddfa288bc58f2d8c45a890162b044 /src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderRequestToken.cs | |
parent | 70dcf0ab0a29ab3f0383303cbd1db80b1454b9a7 (diff) | |
parent | b6ca73ea7ee62ef7dd112ddbd77b606684508fa4 (diff) | |
download | DotNetOpenAuth-e93faf90701f5bd7376535b32b92f059552b17b5.zip DotNetOpenAuth-e93faf90701f5bd7376535b32b92f059552b17b5.tar.gz DotNetOpenAuth-e93faf90701f5bd7376535b32b92f059552b17b5.tar.bz2 |
Merge branch 'oauth10a' into v3.0
Diffstat (limited to 'src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderRequestToken.cs')
-rw-r--r-- | src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderRequestToken.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderRequestToken.cs b/src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderRequestToken.cs new file mode 100644 index 0000000..48f39a6 --- /dev/null +++ b/src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderRequestToken.cs @@ -0,0 +1,47 @@ +//----------------------------------------------------------------------- +// <copyright file="IServiceProviderRequestToken.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.OAuth.ChannelElements { + using System; + using DotNetOpenAuth.OAuth.Messages; + + /// <summary> + /// A description of a request token and its metadata as required by a Service Provider + /// </summary> + public interface IServiceProviderRequestToken { + /// <summary> + /// Gets the token itself. + /// </summary> + string Token { get; } + + /// <summary> + /// Gets the consumer key that requested this token. + /// </summary> + string ConsumerKey { get; } + + /// <summary> + /// Gets or sets the callback associated specifically with this token, if any. + /// </summary> + /// <value>The callback URI; or <c>null</c> if no callback was specifically assigned to this token.</value> + Uri Callback { get; set; } + + /// <summary> + /// Gets or sets the verifier that the consumer must include in the <see cref="AuthorizedTokenRequest"/> + /// message to exchange this request token for an access token. + /// </summary> + /// <value>The verifier code, or <c>null</c> if none has been assigned (yet).</value> + string VerificationCode { get; set; } + + /// <summary> + /// Gets or sets the version of the Consumer that requested this token. + /// </summary> + /// <remarks> + /// This property is used to determine whether a <see cref="VerificationCode"/> must be + /// generated when the user authorizes the Consumer or not. + /// </remarks> + Version ConsumerVersion { get; set; } + } +} |