Closed jersiovic closed 3 years ago
@kevinchalet may be the answer you gave here is related with this problem https://github.com/openiddict/openiddict-core/issues/1227 However I've not been able to do sth with that answer at Orchard source
The OpenID module would have to map the WS-Fed ClaimTypes.Name
to name
for that to work (the OpenIddict validation handler uses name
for the name claim).
Cool, it works, I'm going to submit a PR asap thank you
I'm pretty sure there are a few tickets about making this part configurable. We should maybe make the mapping configurable using some sort of script?
Fixed by #9555
Describe the bug
Using a bearer token provided by openid module which contains a claim with the user name, when User.Identity.Name is accessed its value is null despite a claim for name is present at User.Claims. It seems that current configuration Is not mapping properly claims to User.Identity model.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the name "admin" would be at User.Identity.Name
Screenshots