# OAUTH2 basic - a nightmare :-(

**URL:** <https://meta.discourse.org/t/oauth2-basic-a-nightmare/338662>\
**Category:** SSO\
**Tags:** oauth2\
**Created:** [November 27, 2024, 5:41am UTC](https://meta.discourse.org/t/oauth2-basic-a-nightmare/338662 "2024-11-27T05:41:00Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [December 3, 2024, 2:33pm UTC](https://meta.discourse.org/t/oauth2-basic-a-nightmare/338662/16 "2024-12-03T14:33:47Z")

</div>

The provider\_name is fixed to `oauth2_basic` and the provider\_uid would be whatever you fill in `oauth2 json user id path`.

You just have to set that site setting to the path of the id based on what your provider returns. The plugin uses this json path to fill in the provider\_uid, so if it’s currently empty or a path that doesn’t exist, the value will be nil.

From your json above it looks like the value should be `sub`.

---

_[View the full topic](https://meta.discourse.org/t/oauth2-basic-a-nightmare/338662)._
