# Is there a "log\_in" SSO API endpoint?

**URL:** https://meta.discourse.org/t/is-there-a-log-in-sso-api-endpoint/33545
**Category:** SSO
**Tags:** rest-api
**Created:** [9월 21, 2015, 9:36오후 UTC](https://meta.discourse.org/t/is-there-a-log-in-sso-api-endpoint/33545 "2015-09-21T21:36:00Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [9월 22, 2015, 6:23오전 UTC](https://meta.discourse.org/t/is-there-a-log-in-sso-api-endpoint/33545/2 "2015-09-22T06:23:09Z")

</div>

You can’t set cookies for another domain from the server, so that wouldn’t work 😛

Try giving the user a page with this on it:

```plaintext
<embed src="https://discourse.example.com/session/sso" onload="window.location='/login_finished'" width=0 height=0>
<div style="display:flex;justify-content:center;align-items:center">
  <div class="loading-spinner">
  <h1>Please wait, logging you into Discourse...</h1>
  <aside><a href="/login_finished">Click here if you don't want to wait</a></aside>
</div>

```

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-log-in-sso-api-endpoint/33545)._
