//----------------------------------------------------------------------- // // Copyright (c) Microsoft. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.ApplicationBlock { using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; /// /// Contains clains of a AzureAD token. /// /// /// 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. /// [DataContract] [EditorBrowsable(EditorBrowsableState.Never)] [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "AzureAD", Justification = "Brand name")] public class AzureADClaims { #region Public Properties /// /// Gets or sets the audience. /// /// The audience token is valid for. [DataMember(Name = "aud")] public string Aud { get; set; } /// /// Gets or sets the issuer. /// /// The issuer. [DataMember(Name = "iss")] public string Iss { get; set; } /// /// Gets or sets the early expiry time. /// /// The early expiry time. [DataMember(Name = "nbf")] public string Nbf { get; set; } /// /// Gets or sets the expiry time. /// /// The expiry time. [DataMember(Name = "exp")] public string Exp { get; set; } /// /// Gets or sets the id of the user. /// /// The id of the user. [DataMember(Name = "oid")] public string Oid { get; set; } /// /// Gets or sets the id of the tenant. /// /// The tenant . [DataMember(Name = "tid")] public string Tid { get; set; } /// /// Gets or sets the appid of application. /// /// The id of the application. [DataMember(Name = "appid")] public string Appid { get; set; } #endregion } }