# Log in a user via the API

**URL:** https://meta.discourse.org/t/log-in-a-user-via-the-api/42862
**Category:** SSO
**Created:** [20 באפריל,‏ 2016,‏ 8:02am UTC](https://meta.discourse.org/t/log-in-a-user-via-the-api/42862 "2016-04-20T08:02:42Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![wasimkham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wasimkham/32/121528_2.png) [@wasimkham](https://meta.discourse.org/u/wasimkham)
#### Post date: [20 באפריל,‏ 2016,‏ 1:27pm UTC](https://meta.discourse.org/t/log-in-a-user-via-the-api/42862/5 "2016-04-20T13:27:54Z")

</div>

Hmm that is ugly, but may be necessary. I hope there could be a different way.

---

_[View the full topic](https://meta.discourse.org/t/log-in-a-user-via-the-api/42862)._
