OIDC connector claimMapping has no impact #2158
Replies: 3 comments 4 replies
-
It looks like you need to indent the connectors:
- type: oidc
id: idp-test
name: Custom OIDC
config:
issuer: https://<HOST>
clientID: <CLIENT-ID>
clientSecret: <SECRET>
redirectURI: https://<DEX-HOST>/dex/callback
scopes:
- email
- profile
- openid
- customBase
getUserInfo: true
insecureSkipEmailVerified: true
claimMapping:
email: customEmailID You can find the example with a detailed description here https://dexidp.io/docs/connectors/oidc/#configuration |
Beta Was this translation helpful? Give feedback.
-
We have just discovered in the code that the https://github.com/dexidp/dex/blob/master/connector/oidc/oidc.go#L304-L310 But this is not the case here, we actually want to change the default mapping of So we have @nabokihms - that should be doable in either in specific code above or by using other configuration option (so that the behavior is properly described). Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm also having troubles with claim mapping. I have a Dex instance connected to a ADFS 2019 server. When I authenticate against Dex and ADFS I get an exception about "missing name claim". I know ADFS does not return a "name: something" claim. I can see it when I inspect the id-token it returns. In the token it has claims: { I want Dex to map the upn claim to name. In Dex Config I have the following:
any tips? |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
I have a question about the possibilities how to troubleshoot the situation when the
claimMapping
configuration of OIDC connector has no impact and keeps the original value.My situation:
customEmailID
is part of thecustomBase
scopeAfter the connector configuration is applied to dex, claim mapping after logging in custom provider has no effect (I can see that the information is released from provider).
I also tried some other variants like
email: "customBase:customEmailID"
oremail: sub
but I am always getting the original value.Is there alternatively some way how to troubleshoot such OIDC integration? e.g. to see exactly what claims are being returned with which values etc.?
Dex version: v2.27.0
Thank you in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions