Versatile OpenID Connect stack for ASP.NET Core and Microsoft.Owin (compatible with ASP.NET 4.6.1)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

69 lines
2.2 KiB

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text.Json;
namespace OpenIddict.Abstractions;
/// <summary>
/// Represents an OpenIddict application descriptor.
/// </summary>
public class OpenIddictApplicationDescriptor
{
/// <summary>
/// Gets or sets the client identifier associated with the application.
/// </summary>
public string? ClientId { get; set; }
/// <summary>
/// Gets or sets the client secret associated with the application.
/// Note: depending on the application manager used when creating it,
/// this property may be hashed or encrypted for security reasons.
/// </summary>
public string? ClientSecret { get; set; }
/// <summary>
/// Gets or sets the consent type associated with the application.
/// </summary>
public string? ConsentType { get; set; }
/// <summary>
/// Gets or sets the display name associated with the application.
/// </summary>
public string? DisplayName { get; set; }
/// <summary>
/// Gets the localized display names associated with the application.
/// </summary>
public Dictionary<CultureInfo, string> DisplayNames { get; } = new();
/// <summary>
/// Gets the permissions associated with the application.
/// </summary>
public HashSet<string> Permissions { get; } = new(StringComparer.Ordinal);
/// <summary>
/// Gets the logout callback URLs associated with the application.
/// </summary>
public HashSet<Uri> PostLogoutRedirectUris { get; } = new();
/// <summary>
/// Gets the additional properties associated with the application.
/// </summary>
public Dictionary<string, JsonElement> Properties { get; } = new(StringComparer.Ordinal);
/// <summary>
/// Gets the callback URLs associated with the application.
/// </summary>
public HashSet<Uri> RedirectUris { get; } = new();
/// <summary>
/// Gets the requirements associated with the application.
/// </summary>
public HashSet<string> Requirements { get; } = new(StringComparer.Ordinal);
/// <summary>
/// Gets or sets the application type associated with the application.
/// </summary>
public string? Type { get; set; }
}