# Using Discourse as an Authentication Provider with OAuth2 / OIDC

**URL:** <https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924>\
**Category:** Extras\
**Created:** [June 19, 2025, 4:22pm UTC](https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924 "2025-06-19T16:22:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![la\_panda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/la_panda/32/547078_2.png) [@la\_panda](https://meta.discourse.org/u/la_panda)\
**Post date:** [March 13, 2026, 6:33am UTC](https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924/5 "2026-03-13T06:33:36Z")

</div>

./distrust

mysql version:9.0.1

error:

FTL failed to initialize database error=“failed to migrate database: failed to create unique index: Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘IF NOT EXISTS idx\_user\_authorizations\_user\_client \n\t\tON user\_authorizations(user’ at line 1”

---

_[View the full topic](https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924)._
