Merge pull request #1873 from abpframework/maliming/IdentityServer

IdentityServer minor revison notes.
pull/1879/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit 4b89b3042a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,8 +2,8 @@
{
public class ApiScopeConsts
{
public const int NameMaxLength = 196;
public const int DisplayNameMaxLength = 128;
public const int DescriptionMaxLength = 256;
public const int NameMaxLength = 200;
public const int DisplayNameMaxLength = 200;
public const int DescriptionMaxLength = 1000;
}
}

@ -8,15 +8,15 @@
public const int ClientNameMaxLength = 200;
public const int ClientUriMaxLength = 300;
public const int ClientUriMaxLength = 2000;
public const int LogoUriMaxLength = 300;
public const int LogoUriMaxLength = 2000;
public const int DescriptionMaxLength = 1000;
public const int FrontChannelLogoutUriMaxLength = 300;
public const int FrontChannelLogoutUriMaxLength = 2000;
public const int BackChannelLogoutUriMaxLength = 300;
public const int BackChannelLogoutUriMaxLength = 2000;
public const int ClientClaimsPrefixMaxLength = 200;

@ -2,6 +2,6 @@
{
public class ClientGrantTypeConsts
{
public const int GrantTypeMaxLength = 196;
public const int GrantTypeMaxLength = 250;
}
}

@ -2,6 +2,6 @@
{
public class ClientIdPRestrictionConsts
{
public const int ProviderMaxLength = 64;
public const int ProviderMaxLength = 200;
}
}

@ -2,6 +2,6 @@
{
public class ClientPostLogoutRedirectUriConsts
{
public const int PostLogoutRedirectUriMaxLength = 200;
public const int PostLogoutRedirectUriMaxLength = 2000;
}
}

@ -2,7 +2,7 @@
{
public class ClientPropertyConsts
{
public const int KeyMaxLength = 64;
public const int ValueMaxLength = 128;
public const int KeyMaxLength = 250;
public const int ValueMaxLength = 2000;
}
}

@ -2,6 +2,6 @@
{
public class ClientRedirectUriConsts
{
public const int RedirectUriMaxLength = 200;
public const int RedirectUriMaxLength = 2000;
}
}

@ -2,6 +2,6 @@
{
public class ClientScopeConsts
{
public const int ScopeMaxLength = 196;
public const int ScopeMaxLength = 200;
}
}

@ -6,5 +6,9 @@
public const int TypeMaxLength = 50;
public const int SubjectIdMaxLength = 200;
public const int ClientIdMaxLength = 200;
// 50000 chosen to be explicit to allow enough size to avoid truncation, yet stay beneath the MySql row size limit of ~65K
// apparently anything over 4K converts to nvarchar(max) on SqlServer
public const int DataMaxLength = 5000;
}
}

@ -2,8 +2,8 @@
{
public class SecretConsts
{
public const int TypeMaxLength = 32;
public const int ValueMaxLength = 196;
public const int DescriptionMaxLength = 256;
public const int TypeMaxLength = 250;
public const int ValueMaxLength = 4000;
public const int DescriptionMaxLength = 2000;
}
}

@ -2,6 +2,6 @@
{
public class UserClaimConsts
{
public const int TypeMaxLength = 196;
public const int TypeMaxLength = 200;
}
}

@ -151,11 +151,12 @@ namespace Volo.Abp.IdentityServer.EntityFrameworkCore
grant.Property(x => x.SubjectId).HasMaxLength(PersistedGrantConsts.SubjectIdMaxLength);
grant.Property(x => x.ClientId).HasMaxLength(PersistedGrantConsts.ClientIdMaxLength).IsRequired();
grant.Property(x => x.CreationTime).IsRequired();
grant.Property(x => x.Data).IsRequired();
grant.Property(x => x.Data).HasMaxLength(PersistedGrantConsts.DataMaxLength).IsRequired();
grant.HasKey(x => x.Key); //TODO: What about Id!!!
grant.HasIndex(x => new { x.SubjectId, x.ClientId, x.Type });
grant.HasIndex(x => x.Expiration);
});
builder.Entity<IdentityResource>(identityResource =>

Loading…
Cancel
Save