# Oauth Redirecting to /login after successful user JSON call

**URL:** <https://meta.discourse.org/t/oauth-redirecting-to-login-after-successful-user-json-call/143851>\
**Category:** SSO\
**Tags:** oauth2\
**Created:** [10 במרץ,‏ 2020,‏ 10:52pm UTC](https://meta.discourse.org/t/oauth-redirecting-to-login-after-successful-user-json-call/143851 "2020-03-10T22:52:22Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [11 במרץ,‏ 2020,‏ 4:56pm UTC](https://meta.discourse.org/t/oauth-redirecting-to-login-after-successful-user-json-call/143851/8 "2020-03-11T16:56:31Z")

</div>

> [@patrickeaton](#):
>
> Though in that case, surely the username should at least be coming through to the signup page?

Yes it should. Have you configured `oauth2_json_username_path` to be `username`?

---

_[View the full topic](https://meta.discourse.org/t/oauth-redirecting-to-login-after-successful-user-json-call/143851)._
