# Recreating the single sign on logic for generating usernames

**URL:** <https://meta.discourse.org/t/recreating-the-single-sign-on-logic-for-generating-usernames/67748>\
**Category:** Development\
**Created:** [10. August 2017 um 00:11 UTC](https://meta.discourse.org/t/recreating-the-single-sign-on-logic-for-generating-usernames/67748 "2017-08-10T00:11:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [10. August 2017 um 00:18 UTC](https://meta.discourse.org/t/recreating-the-single-sign-on-logic-for-generating-usernames/67748/2 "2017-08-10T00:18:50Z")

</div>

> [@SwisherSweet](#):
>
> Does anyone know what the logic is and/or can point me to the code in GIT that performs the magic?

Here you go:

> <https://github.com/discourse/discourse/blob/bb0fa5abbc6da2ad32ec52264796ee78d1cf3a45/lib/user_name_suggester.rb>

---

_[View the full topic](https://meta.discourse.org/t/recreating-the-single-sign-on-logic-for-generating-usernames/67748)._
