# Having an issue with XDMoD openidc auth -error- A user must have a valid username

**URL:** <https://discourse.openondemand.org/t/having-an-issue-with-xdmod-openidc-auth-error-a-user-must-have-a-valid-username/4352>\
**Category:** Get Help\
**Tags:** question\
**Created:** [July 10, 2025, 12:59pm UTC](https://discourse.openondemand.org/t/having-an-issue-with-xdmod-openidc-auth-error-a-user-must-have-a-valid-username/4352 "2025-07-10T12:59:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolly7575](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jolly7575/32/1978_2.png) [@jolly7575](https://discourse.openondemand.org/u/jolly7575)\
**Post date:** [July 10, 2025, 12:59pm UTC](https://discourse.openondemand.org/t/having-an-issue-with-xdmod-openidc-auth-error-a-user-must-have-a-valid-username/4352/1 "2025-07-10T12:59:14Z")

</div>

The idea is to use the same openid connect clientid being used by Open OnDemand. Any idea how to get around this?

```auto
[10-Jul-2025 08:24:23 Africa/Blantyre] PHP Notice: Trying to access array offset on value of type null in /usr/share/xdmod/classes/Authentication/SAML/XDSamlAuthentication.php on line 117
[10-Jul-2025 08:24:23 Africa/Blantyre] PHP Notice: Undefined index: organization in /usr/share/xdmod/classes/Authentication/SAML/XDSamlAuthentication.php on line 134
[10-Jul-2025 08:24:23 Africa/Blantyre] PHP Notice: Trying to access array offset on value of type null in /usr/share/xdmod/classes/Authentication/SAML/XDSamlAuthentication.php on line 134
[10-Jul-2025 08:50:07 Africa/Blantyre] PHP Notice: Undefined index: username in /usr/share/xdmod/classes/Authentication/SAML/XDSamlAuthentication.php on line 117
[10-Jul-2025 08:50:07 Africa/Blantyre] PHP Notice: Trying to access array offset on value of type null in /usr/share/xdmod/classes/Authentication/SAML/XDSamlAuthentication.php on line 117
[10-Jul-2025 08:50:07 Africa/Blantyre] PHP Notice: Undefined index: organization in /usr/share/xdmod/classes/Authentication/SAML/XDSamlAuthentication.php on line 134
[10-Jul-2025 08:50:07 Africa/Blantyre] PHP Notice: Trying to access array offset on value of type null in /usr/share/xdmod/classes/Authentication/SAML/XDSamlAuthentication.php on line 134

```

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [July 10, 2025, 2:05pm UTC](https://discourse.openondemand.org/t/having-an-issue-with-xdmod-openidc-auth-error-a-user-must-have-a-valid-username/4352/2 "2025-07-10T14:05:23Z")

</div>

I have no idea about XDMoD errors like that. Maybe it’d be better to reach out to the XDMoD team through their channels to get an answer.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [January 6, 2026, 2:05pm UTC](https://discourse.openondemand.org/t/having-an-issue-with-xdmod-openidc-auth-error-a-user-must-have-a-valid-username/4352/3 "2026-01-06T14:05:31Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
