Identityserver4.admin: API error - /api/Users/{id}/RoleClaims

Created on 6 Feb 2020  路  7Comments  路  Source: skoruba/IdentityServer4.Admin

Hi,

image

Requested to fetch Role claims using user Id, it showing mapper error
image

medium task

Most helpful comment

Thanks, let me check it

All 7 comments

Hi,
Thanks for reporting this issue, I will check it.

Do you use the latest version of Admin UI?

I'm using - New release 1.0.0-rc1

Thanks, let me check it

@skoruba @anthonynewlineinfo If you use AutoMapper with DI like services.AddAutoMapper(), mapper error will heppen. I have encountered this error and use custom servive code solved this problem.
sample code

Hi @anthonynewlineinfo,
You can fix it temporarily by adding code below in IdentityMapperProfile.cs
CreateMap>(MemberList.Source);
CreateMap>(MemberList.Destination);
CreateMap>(MemberList.Destination);
Thanks!

Thanks for reminder for this, I will add it into next release.

Was this page helpful?
0 / 5 - 0 ratings