# Discourse Login using external API

**URL:** https://meta.discourse.org/t/discourse-login-using-external-api/181773
**Category:** Development
**Created:** [March 3, 2021, 2:36pm UTC](https://meta.discourse.org/t/discourse-login-using-external-api/181773 "2021-03-03T14:36:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yeezy450](https://avatars.discourse-cdn.com/v4/letter/y/d26b3c/32.png) [@yeezy450](https://meta.discourse.org/u/yeezy450)
#### Post date: [March 3, 2021, 2:36pm UTC](https://meta.discourse.org/t/discourse-login-using-external-api/181773/1 "2021-03-03T14:36:50Z")

</div>

Hi,

Can I use an external API in Discourse’s default authentication and registration? I would like to validate our users using the external API in the system and just use the UI from Discourse during login, registration, change password, etc.  
The user data is already migrated in Discourse DB from our own DB.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [March 3, 2021, 2:56pm UTC](https://meta.discourse.org/t/discourse-login-using-external-api/181773/2 "2021-03-03T14:56:28Z")

</div>

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:

> [@Discourse OpenID Connect (OIDC)](https://meta.discourse.org/t/openid-connect-authentication-plugin/103632):
>
> discourse2Summary Discourse OpenID Connect allows an OpenID Connect provider to be used as an authentication provider for Discourse.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features The plugin aims to provide a minimal implementation of [the specification](https://openid.net/specs/openid-connect-basic-1_0.html). Specifically, it supports the “Authorization Code Flow”. To get started, follow [the plugin installation instructions](https://meta.discourse.org/t/install-plugins-in-discourse/19157), or contact your hosti…
