2013-08-12 15:06:12 +02:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Security
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Data structure used to store information in the authentication cookie
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataContract(Name = "userData", Namespace = "")]
|
|
|
|
|
|
internal class UserData
|
|
|
|
|
|
{
|
|
|
|
|
|
public UserData()
|
|
|
|
|
|
{
|
|
|
|
|
|
AllowedApplications = new string[] {};
|
|
|
|
|
|
Roles = new string[] {};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "id")]
|
|
|
|
|
|
public object Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "roles")]
|
|
|
|
|
|
public string[] Roles { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
//public int SessionTimeout { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "username")]
|
|
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "name")]
|
|
|
|
|
|
public string RealName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "startContent")]
|
|
|
|
|
|
public int StartContentNode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "startMedia")]
|
|
|
|
|
|
public int StartMediaNode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "allowedApps")]
|
|
|
|
|
|
public string[] AllowedApplications { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "culture")]
|
|
|
|
|
|
public string Culture { get; set; }
|
|
|
|
|
|
}
|
2013-07-31 17:08:56 +10:00
|
|
|
|
}
|