# Gateway showing OpenID "sub" value instead of "name"

**URL:** <https://forum.inductiveautomation.com/t/gateway-showing-openid-sub-value-instead-of-name/110247>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 28, 2025, 5:02pm UTC](https://forum.inductiveautomation.com/t/gateway-showing-openid-sub-value-instead-of-name/110247 "2025-08-28T17:02:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [August 28, 2025, 5:02pm UTC](https://forum.inductiveautomation.com/t/gateway-showing-openid-sub-value-instead-of-name/110247/1 "2025-08-28T17:02:53Z")

</div>

I setup a new Identity provider with `OpenID Connect 1.0` and when I use the Test Login feature it works and I get all the correct information back including this userInfo record

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/7/d7472bbd3babc51920c0f1579653eb96dbeff69b.png)

When I sign in on the actual gateway however it does work and it lets me sign in but it shows the “sub” field instead of the “name” field at the top right. Can I change this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/2/d244581ecf422244445067c2cffb8ff40e12c565.png)

---

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [August 28, 2025, 5:12pm UTC](https://forum.inductiveautomation.com/t/gateway-showing-openid-sub-value-instead-of-name/110247/2 "2025-08-28T17:12:41Z")

</div>

I also attempted to switch the username path field from `sub` (default) to `name` and when I try to login it silently fails and after typing in my email/password on the redirect screen it just brings me back to the login screen with no errors or anything.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/d/3df0513bcd87491652b60295ffe8d630b8ee5eb2.png)

---

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [August 28, 2025, 5:14pm UTC](https://forum.inductiveautomation.com/t/gateway-showing-openid-sub-value-instead-of-name/110247/3 "2025-08-28T17:14:50Z")

</div>

ah, after reading the `wrapper.log` I realized I had the Source field wrong it should have been `User Info Claims`

```python
INFO | jvm 1 | 2025/08/28 12:11:11 | E [g.IdpAdapter] [12:11:11.873]: Unable to map the IdP attribute source to a user route-group=federate, route-path=/callback/:type, idp-adapter-name=Entra_OpenID
INFO | jvm 1 | 2025/08/28 12:11:11 | com.inductiveautomation.ignition.gateway.auth.mapper.attr.AttributeMapperException: Username is required but it mapped to an empty value
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.mapper.attr.user.UserAttributeMapper$AttributeSourceWrapper.lambda$createExceptionSupplier$0(UserAttributeMapper.java:70)
INFO | jvm 1 | 2025/08/28 12:11:11 | at java.base/java.util.Optional.orElseThrow(Unknown Source)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.mapper.attr.user.UserAttributeMapper$AttributeSourceWrapper.invokeRequiredMapper(UserAttributeMapper.java:76)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.mapper.attr.user.UserAttributeMapper.map(UserAttributeMapper.java:106)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.idp.IdpAdapter.mapUser(IdpAdapter.java:133)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.idp.WebAuthSessionImpl.onLoginResponseInternal(WebAuthSessionImpl.java:256)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.idp.WebAuthSessionImpl.lambda$onLoginResponse$3(WebAuthSessionImpl.java:270)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.idp.WebAuthSessionImpl.mdc(WebAuthSessionImpl.java:109)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.idp.WebAuthSessionImpl.onLoginResponse(WebAuthSessionImpl.java:270)
INFO | jvm 1 | 2025/08/28 12:11:11 | at com.inductiveautomation.ignition.gateway.auth.web.WebAuthRequestCollection

```
