mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-26 16:45:09 +00:00
* Return the created API key from POST /Auth/Keys * Keep the other API key fields in the DTO
70 lines
1.6 KiB
C#
70 lines
1.6 KiB
C#
using System;
|
|
|
|
namespace Jellyfin.Api.Models.ApiKeyDtos;
|
|
|
|
/// <summary>
|
|
/// An API key.
|
|
/// </summary>
|
|
public class AuthenticationInfoDto
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the identifier.
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the access token.
|
|
/// </summary>
|
|
public string? AccessToken { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the device identifier.
|
|
/// </summary>
|
|
public string? DeviceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the app using the key.
|
|
/// </summary>
|
|
public string? AppName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the application version.
|
|
/// </summary>
|
|
public string? AppVersion { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the device.
|
|
/// </summary>
|
|
public string? DeviceName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the user identifier.
|
|
/// </summary>
|
|
public Guid UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this instance is active.
|
|
/// </summary>
|
|
public bool IsActive { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the date the key was created.
|
|
/// </summary>
|
|
public DateTime DateCreated { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the date the key was revoked.
|
|
/// </summary>
|
|
public DateTime? DateRevoked { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the date of the last activity.
|
|
/// </summary>
|
|
public DateTime DateLastActivity { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the user name.
|
|
/// </summary>
|
|
public string? UserName { get; set; }
|
|
}
|