# 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:** 5

<div class="post-metadata">

**Author:** ![patrickeaton](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@patrickeaton](https://meta.discourse.org/u/patrickeaton)\
**Post date:** [11 במרץ,‏ 2020,‏ 4:50pm UTC](https://meta.discourse.org/t/oauth-redirecting-to-login-after-successful-user-json-call/143851/5 "2020-03-11T16:50:35Z")

</div>

The full data was

`{"id"=>"d78dd9b5-7276-499a-b7b6-02da38e03ce9", "username"=>"patrick2"}`

and the field values were “id” and “username” for the applicable fields.

I’m currently updating the endpoint to add email and name, but I was under the impression that only a id and username were required.

Thanks

Patrick

---

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