Identity server module consts converted to static

pull/4527/head
Ahmet Çotur 5 years ago
parent 72e58df483
commit 581f92cf8e

@ -2,6 +2,9 @@
{
public class ClientIdPRestrictionConsts
{
public const int ProviderMaxLength = 200;
/// <summary>
/// Default value: 200
/// </summary>
public static int ProviderMaxLength { get; set; } = 200;
}
}

@ -2,7 +2,10 @@
{
public class ClientPostLogoutRedirectUriConsts
{
public const int PostLogoutRedirectUriMaxLength = 2000;
/// <summary>
/// Default value: 200
/// </summary>
public static int PostLogoutRedirectUriMaxLength { get; set; } = 2000;
public static int PostLogoutRedirectUriMaxLengthValue { get; set; } = 2000;
}
}

@ -2,7 +2,14 @@
{
public class ClientPropertyConsts
{
public const int KeyMaxLength = 250;
public const int ValueMaxLength = 2000;
/// <summary>
/// Default value: 250
/// </summary>
public static int KeyMaxLength { get; set; } = 250;
/// <summary>
/// Default value: 2000
/// </summary>
public static int ValueMaxLength { get; set; } = 2000;
}
}

@ -2,7 +2,10 @@
{
public class ClientRedirectUriConsts
{
public const int RedirectUriMaxLength = 2000;
/// <summary>
/// Default value: 2000
/// </summary>
public static int RedirectUriMaxLength { get; set; } = 2000;
public static int RedirectUriMaxLengthValue { get; set; } = 2000;
}
}

@ -2,6 +2,9 @@
{
public class ClientScopeConsts
{
public const int ScopeMaxLength = 200;
/// <summary>
/// Default value: 200
/// </summary>
public static int ScopeMaxLength { get; set; } = 200;
}
}

@ -2,11 +2,34 @@
{
public class PersistedGrantConsts
{
public const int KeyMaxLength = 200;
public const int TypeMaxLength = 50;
public const int SubjectIdMaxLength = 200;
public const int ClientIdMaxLength = 200;
public const int DataMaxLength = 50000;
public static int DataMaxLengthValue { get; set; }= 50000;
/// <summary>
/// Default value: 200
/// </summary>
public static int KeyMaxLength { get; set; } = 200;
/// <summary>
/// Default value: 50
/// </summary>
public static int TypeMaxLength { get; set; } = 50;
/// <summary>
/// Default value: 200
/// </summary>
public static int SubjectIdMaxLength { get; set; } = 200;
/// <summary>
/// Default value: 200
/// </summary>
public static int ClientIdMaxLength { get; set; } = 200;
/// <summary>
/// Default value: 50000
/// </summary>
public static int DataMaxLength { get; set; } = 50000;
/// <summary>
/// Default value: 50000
/// </summary>
public static int DataMaxLengthValue { get; set; } = 50000;
}
}

@ -2,8 +2,19 @@
{
public class IdentityResourceConsts
{
public const int NameMaxLength = 200;
public const int DisplayNameMaxLength = 200;
public const int DescriptionMaxLength = 1000;
/// <summary>
/// Default value: 200
/// </summary>
public static int NameMaxLength { get; set; } = 200;
/// <summary>
/// Default value: 200
/// </summary>
public static int DisplayNameMaxLength { get; set; } = 200;
/// <summary>
/// Default value: 200
/// </summary>
public static int DescriptionMaxLength { get; set; } = 1000;
}
}

@ -2,9 +2,21 @@
{
public class SecretConsts
{
public const int TypeMaxLength = 250;
public const int ValueMaxLength = 4000;
/// <summary>
/// Default value: 250
/// </summary>
public static int TypeMaxLength { get; set; } = 250;
/// <summary>
/// Default value: 4000
/// </summary>
public static int ValueMaxLength { get; set; } = 4000;
public static int ValueMaxLengthValue { get; set; } = ValueMaxLength;
public const int DescriptionMaxLength = 2000;
/// <summary>
/// Default value: 2000
/// </summary>
public static int DescriptionMaxLength { get; set; } = 2000;
}
}

@ -2,6 +2,9 @@
{
public class UserClaimConsts
{
public const int TypeMaxLength = 200;
/// <summary>
/// Default value: 200
/// </summary>
public static int TypeMaxLength { get; set; } = 200;
}
}
Loading…
Cancel
Save