这是indexloc提供的服务,不要输入任何密码
Skip to content

mapper throw exception on clientclaims on 4.0.0-rc.2 #41

@dsquadcgi

Description

@dsquadcgi

Hello
thanks for the great work

i have a issue on version 4.0.0-rc.2 due to automapper configuration

adding a client claim and store it runs perfectly
but fetching it fails because of a type mapping missing between claim client and securityclaim

code to reproduce
Client c= new Client()
{
ClientId = clientId,
AllowedScopes = new List(new string[] { "dsquad:public" }),
ClientSecrets = secrets,
AllowedGrantTypes = GrantTypes.ClientCredentials,
AccessTokenType = AccessTokenType.Jwt,
AccessTokenLifetime = int.MaxValue,
Enabled = true,
AlwaysSendClientClaims = true,
ClientClaimsPrefix = ""
};
c.Claims.Add(new ClientClaim("hello", ""world"));
c.ToEntity().ToModel(); // throw exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions