Skip to content

How to create a unique username mapper for an idp #66

Answered by zsamji
zsamji asked this question in Q&A
Discussion options

You must be logged in to vote

The Fix/Answer

You should always map an absolutely unique value to the username mapping EMAIL is not unique!. The challenge with VC is that the unique values found as claims are not accessible when creating the role mapping. Things like
${CLAIM.sub} or any other standard oidc claim are not accessible.

If you take a look at the keycloak code base (thanks @arcshiftsolutions !) you'll find there is a use case to generate UUIDs!

in the mapper you can enter ${UUID} to generate a UUID.

More discovery is required for why standard claims can't be used as a mapper for VC.

Note: the above is true not only for VCs, but for any IdP that for some reason will not provide a unique user identifier upon s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zsamji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant