# "Fake" OAuth Provider?

**URL:** <https://meta.discourse.org/t/fake-oauth-provider/212116>\
**Category:** Development\
**Created:** [December 14, 2021, 10:57pm UTC](https://meta.discourse.org/t/fake-oauth-provider/212116 "2021-12-14T22:57:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cookieman768](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cookieman768/32/118511_2.png) [@cookieman768](https://meta.discourse.org/u/cookieman768)\
**Post date:** [December 14, 2021, 10:57pm UTC](https://meta.discourse.org/t/fake-oauth-provider/212116/1 "2021-12-14T22:57:27Z")

</div>

Hello 👋 I’m wondering if something I’m trying to do would even be possible.

So, I’m wanting to associate Minecraft accounts with Discourse Accounts much like how you can add Discord, Google, etc. but, Minecraft doesn’t have an OAuth system currently (maybe once everyone is migrated to a Microsoft account but, that’d be a bit of waiting). So, the system I am proposing is having the user enter a randomly generated code that they’d get in-game. Would there be a way to then add this to their account like any other connected account? I’d probably structure it similar to how [https://mc-oauth.net/](https://mc-oauth.net/) works but, instead of logging in, they’d use a command in chat.

If this _would_ be possible, do you have any pointers on how I could accomplish this? I pretty much just would need a modal popup asking for the code → validate code → get UUID and store as external account identifier.

EDIT: Actually, it looks like with the transition to Microsoft accounts I _might_ be able to modify the existing Microsoft account plugin to store Minecraft UUIDs. I’ll have to see.

---

_[View the full topic](https://meta.discourse.org/t/fake-oauth-provider/212116)._
