# UserAuthenticator autoloading issue

**URL:** <https://meta.discourse.org/t/userauthenticator-autoloading-issue/132282>\
**Category:** Support\
**Created:** [October 30, 2019, 9:45pm UTC](https://meta.discourse.org/t/userauthenticator-autoloading-issue/132282 "2019-10-30T21:45:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![exadeci](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@exadeci](https://meta.discourse.org/u/exadeci)\
**Post date:** [October 30, 2019, 9:45pm UTC](https://meta.discourse.org/t/userauthenticator-autoloading-issue/132282/1 "2019-10-30T21:45:30Z")

</div>

Hello,

On my Discourse instance when using the api to create a user sometimes I get the error along the lines of:  
`Undefined class UserAuthenticator::Users::OmniauthCallbacksController`

I don’t quite get why it doesn’t find `Users::OmniauthCallbacksController` and instead looks for it under the `UserAuthenticator` namespace.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [July 15, 2023, 7:06pm UTC](https://meta.discourse.org/t/userauthenticator-autoloading-issue/132282/2 "2023-07-15T19:06:22Z")

</div>



---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [July 15, 2023, 11:40pm UTC](https://meta.discourse.org/t/userauthenticator-autoloading-issue/132282/3 "2023-07-15T23:40:32Z")

</div>


