diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-05-05 15:36:55 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-05-05 15:36:55 -0700 |
commit | 49d654965b6cf0ee6aa171dec50b1d0b8fb86e0c (patch) | |
tree | 9b836b0b9e94b8aa1e650c68e714bc214439d8da /samples/DotNetOpenAuth.ApplicationBlock/AzureADGraph.cs | |
parent | 7edb0a63ef796af300c670ce90df8e7670930a10 (diff) | |
parent | 489bf70111fe4839e87fa591928d2845341f0059 (diff) | |
download | DotNetOpenAuth-49d654965b6cf0ee6aa171dec50b1d0b8fb86e0c.zip DotNetOpenAuth-49d654965b6cf0ee6aa171dec50b1d0b8fb86e0c.tar.gz DotNetOpenAuth-49d654965b6cf0ee6aa171dec50b1d0b8fb86e0c.tar.bz2 |
Adds Azure Active Directory OAuth 2 client.
Closes #271
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/AzureADGraph.cs')
-rw-r--r-- | samples/DotNetOpenAuth.ApplicationBlock/AzureADGraph.cs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/AzureADGraph.cs b/samples/DotNetOpenAuth.ApplicationBlock/AzureADGraph.cs new file mode 100644 index 0000000..625a0fe --- /dev/null +++ b/samples/DotNetOpenAuth.ApplicationBlock/AzureADGraph.cs @@ -0,0 +1,62 @@ +//----------------------------------------------------------------------- +// <copyright file="AzureADGraph.cs" company="Microsoft"> +// Copyright (c) Microsoft. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.ApplicationBlock +{ + using System; + using System.ComponentModel; + using System.Diagnostics.CodeAnalysis; + using System.Runtime.Serialization; + + /// <summary> + /// Contains data of a AzureAD user. + /// </summary> + /// <remarks> + /// Technically, this class doesn't need to be public, but because we want to make it serializable in medium trust, it has to be public. + /// </remarks> + [DataContract] + [EditorBrowsable(EditorBrowsableState.Never)] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "AzureAD", Justification = "Brand name")] + public class AzureADGraph { + #region Public Properties + + /// <summary> + /// Gets or sets the firstname. + /// </summary> + /// <value> The first name. </value> + [DataMember(Name = "givenName")] + public string GivenName { get; set; } + + /// <summary> + /// Gets or sets the lastname. + /// </summary> + /// <value> The last name. </value> + [DataMember(Name = "surname")] + public string Surname { get; set; } + + /// <summary> + /// Gets or sets the email. + /// </summary> + /// <value> The email. </value> + [DataMember(Name = "userPrincipalName")] + public string UserPrincipalName { get; set; } + + /// <summary> + /// Gets or sets the fullname. + /// </summary> + /// <value> The fullname. </value> + [DataMember(Name = "displayName")] + public string DisplayName { get; set; } + + /// <summary> + /// Gets or sets the id. + /// </summary> + /// <value> The id. </value> + [DataMember(Name = "objectId")] + public string ObjectId { get; set; } + #endregion + } +} |