Browse Source

Identity server module consts converted to static

pull/4527/head
Ahmet Çotur 6 years ago
parent
commit
581f92cf8e
  1. 5
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientIdPRestrictionConsts.cs
  2. 5
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientPostLogoutRedirectUriConsts.cs
  3. 11
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientPropertyConsts.cs
  4. 5
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientRedirectUriConsts.cs
  5. 5
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientScopeConsts.cs
  6. 35
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Grants/PersistedGrantConsts.cs
  7. 17
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/IdentityResources/IdentityResourceConsts.cs
  8. 18
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/SecretConsts.cs
  9. 5
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/UserClaimConsts.cs

5
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientIdPRestrictionConsts.cs

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

5
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientPostLogoutRedirectUriConsts.cs

@ -2,7 +2,10 @@
{ {
public class ClientPostLogoutRedirectUriConsts 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; public static int PostLogoutRedirectUriMaxLengthValue { get; set; } = 2000;
} }
} }

11
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientPropertyConsts.cs

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

5
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientRedirectUriConsts.cs

@ -2,7 +2,10 @@
{ {
public class ClientRedirectUriConsts 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; public static int RedirectUriMaxLengthValue { get; set; } = 2000;
} }
} }

5
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Clients/ClientScopeConsts.cs

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

35
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/Grants/PersistedGrantConsts.cs

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

17
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/IdentityResources/IdentityResourceConsts.cs

@ -2,8 +2,19 @@
{ {
public class IdentityResourceConsts public class IdentityResourceConsts
{ {
public const int NameMaxLength = 200; /// <summary>
public const int DisplayNameMaxLength = 200; /// Default value: 200
public const int DescriptionMaxLength = 1000; /// </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;
} }
} }

18
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/SecretConsts.cs

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

5
modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared/Volo/Abp/IdentityServer/UserClaimConsts.cs

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