diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 08:41:16 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 08:41:16 -0800 |
commit | 475b47ab8eaa23e064763b05539fa750accebfdc (patch) | |
tree | 785a8c82ec1d8884fc51c201c23040923cbfa6fc /src/DotNetOpenAuth.OAuth.Common/OAuth/ChannelElements/OAuthIdentity.cs | |
parent | 74b6b4efd2be2680e3067f716829b0c9385ceebe (diff) | |
parent | 1fdcca1a8019189237e86907f220307e2ccd61c9 (diff) | |
download | DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.zip DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.gz DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.bz2 |
Merge branch 'OAuthSimple' into httpclient
Diffstat (limited to 'src/DotNetOpenAuth.OAuth.Common/OAuth/ChannelElements/OAuthIdentity.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth.Common/OAuth/ChannelElements/OAuthIdentity.cs | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/DotNetOpenAuth.OAuth.Common/OAuth/ChannelElements/OAuthIdentity.cs b/src/DotNetOpenAuth.OAuth.Common/OAuth/ChannelElements/OAuthIdentity.cs deleted file mode 100644 index 28e0333..0000000 --- a/src/DotNetOpenAuth.OAuth.Common/OAuth/ChannelElements/OAuthIdentity.cs +++ /dev/null @@ -1,64 +0,0 @@ -//----------------------------------------------------------------------- -// <copyright file="OAuthIdentity.cs" company="Outercurve Foundation"> -// Copyright (c) Outercurve Foundation. All rights reserved. -// </copyright> -//----------------------------------------------------------------------- - -namespace DotNetOpenAuth.OAuth.ChannelElements { - using System; - using System.Diagnostics.CodeAnalysis; - using System.Runtime.InteropServices; - using System.Security.Principal; - using DotNetOpenAuth.Messaging; - using Validation; - - /// <summary> - /// Represents an OAuth consumer that is impersonating a known user on the system. - /// </summary> - [SuppressMessage("Microsoft.Interoperability", "CA1409:ComVisibleTypesShouldBeCreatable", Justification = "Not cocreatable.")] - [Serializable] - [ComVisible(true)] - public class OAuthIdentity : IIdentity { - /// <summary> - /// Initializes a new instance of the <see cref="OAuthIdentity"/> class. - /// </summary> - /// <param name="username">The username.</param> - internal OAuthIdentity(string username) { - Requires.NotNullOrEmpty(username, "username"); - this.Name = username; - } - - #region IIdentity Members - - /// <summary> - /// Gets the type of authentication used. - /// </summary> - /// <value>The constant "OAuth"</value> - /// <returns> - /// The type of authentication used to identify the user. - /// </returns> - public string AuthenticationType { - get { return "OAuth"; } - } - - /// <summary> - /// Gets a value indicating whether the user has been authenticated. - /// </summary> - /// <value>The value <c>true</c></value> - /// <returns>true if the user was authenticated; otherwise, false. - /// </returns> - public bool IsAuthenticated { - get { return true; } - } - - /// <summary> - /// Gets the name of the user who authorized the OAuth token the consumer is using for authorization. - /// </summary> - /// <returns> - /// The name of the user on whose behalf the code is running. - /// </returns> - public string Name { get; private set; } - - #endregion - } -} |