How to send user profile fields such as First Name and Last Name with IdentityManger/MembershipReboot?

736 Views Asked by At

Is there any way to get the First Name and Last Name and such fields that show up in IdentityManager while using Membership Reboot as the user/claims store to come down via claims or some other method to be used in IDS clients? I have had to manually add claims for the first / last names (given_name and family_name). I do have the profile scope included in my application in both the IDS and client configuration. Authentication and everything else appears to be working nicely. Any help would be greatly appreciated.

1

There are 1 best solutions below

2
rawel On BEST ANSWER

Frankly, I haven't done this. But I would look into https://identityserver.github.io/Documentation/docsv2/advanced/userService.html GetProfileDataAsync method.

MR implementation is here(https://github.com/IdentityServer/IdentityServer3.MembershipReboot/blob/master/source/IdentityServer3.MembershipReboot/IdentityServer3.MembershipReboot.cs). You should be able to push FirstName and LastName properties as open-id claims inside GetProfileDataAsync method.