# Discourse-oauth2-basic Login Inconsistencies

**URL:** <https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711>\
**Category:** SSO\
**Tags:** oauth2\
**Created:** [November 18, 2019, 6:21pm UTC](https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711 "2019-11-18T18:21:28Z")\
**Posts on this page:** 6\
**Page:** 1

## AI-generated summary

Users are experiencing login inconsistencies with the [discourse-oauth2-basic](https://github.com/discourse/discourse-oauth2-basic) plugin paired with Auth0, where previously logged-in users are prompted to create new accounts despite existing accounts being verified. [Jim.Morrison](/t/-/133711/1) reports the issue recurs even after account deactivation and reactivation via email. He has captured a HAR file for analysis and is willing to share it privately. [david](/t/-/133711/2) asks whether accounts are linked by email or Auth0 UID, and whether UIDs may have changed; [Jim.Morrison](/t/-/133711/4) confirms UIDs are unchanged and accounts are UID-linked. [Stephen](/t/-/133711/3) questions if `enable local logins` was recently enabled, which [Jim.Morrison](/t/-/133711/4) confirms it was not. [david](/t/-/133711/2) offers to review the HAR file and requests verbose server authentication logs for deeper analysis. The team is actively collaborating to resolve the issue, with [Jim.Morrison](/t/-/133711/4) preparing to send the HAR file for further troubleshooting.

<div class="post-metadata">

**Author:** ![Jim.Morrison](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim.morrison/32/162161_2.png) [@Jim.Morrison](https://meta.discourse.org/u/Jim.Morrison)\
**Post date:** [November 18, 2019, 6:21pm UTC](https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711/1 "2019-11-18T18:21:29Z")

</div>

We are continuing to run into issues where both employees and customers who have previously successfully logged into our discourse instance in the past is now being prompted to create a new account when they try to login again. I have verified the accounts are present in the system.

If we deactivate the account and send an activation email this gets them logged in for a short period of time until it happens again.

In this latest iteration, I have obtained a HAR file of the login attempt but would need to send that privately (thus not sharing it in the public thread).

We are using the [discourse-oauth2-basic](https://github.com/discourse/discourse-oauth2-basic) paired with Auth0. In the past we have confirmed the data being passed back to Discourse when logging in is correct. Yet it still asks these edge case users to create a new account.

We seriously need help overcoming this hurdle. Please advise, thank you.

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [November 18, 2019, 6:30pm UTC](https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711/2 "2019-11-18T18:30:38Z")

</div>

How are the accounts supposed to be associated? By email address, or by the UID from Auth0?

Is there any way the UIDs could have changed on Auth0?

If you PM me the HAR file I can take a look, although I can’t promise I’ll be able to solve it with only that. If you have verbose authentication logs from the server that would also be useful.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [November 18, 2019, 6:34pm UTC](https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711/3 "2019-11-18T18:34:05Z")

</div>

Has someone recently enabled `enable local logins` on that instance?

---

<div class="post-metadata">

**Author:** ![Jim.Morrison](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim.morrison/32/162161_2.png) [@Jim.Morrison](https://meta.discourse.org/u/Jim.Morrison)\
**Post date:** [November 18, 2019, 7:34pm UTC](https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711/4 "2019-11-18T19:34:38Z")

</div>

> [@Stephen](#):
>
> Has someone recently enabled `enable local logins` on that instance?

Confirmed no.

> [@david](#):
>
> How are the accounts supposed to be associated? By email address, or by the UID from Auth0?

UID and there isn’t any modification on them.

> [@david](#):
>
> If you PM me the HAR file I can take a look, although I can’t promise I’ll be able to solve it with only that.

I will send this your way and we can build out from there 👍

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [August 17, 2023, 2:39pm UTC](https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711/5 "2023-08-17T14:39:11Z")

</div>

Automatically bumped on August 17, 2023, 2:39pm UTC



---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [August 17, 2023, 3:38pm UTC](https://meta.discourse.org/t/discourse-oauth2-basic-login-inconsistencies/133711/6 "2023-08-17T15:38:44Z")

</div>

Closed on August 17, 2023, 3:38pm UTC


