There are loads of solutions here, some for proprietary systems like Discord which I believe is now native, but there is also an OIDC plugin, which is the right way to go if you can use it:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Login to Discourse with custom Oauth2 provider | 24 | 274199 | July 6, 2020 | |
| Discourse as OpenID Connect provider | 2 | 1721 | December 14, 2021 | |
| Customized login auth plugin | 5 | 5474 | September 4, 2016 | |
| Sign in to Discourse using ORCID | 5 | 1609 | November 15, 2023 | |
| Discourse OpenID Connect (OIDC) | 42 | 48076 | March 14, 2026 |