# Calling a login page from X-pack realm

**URL:** <https://discuss.elastic.co/t/calling-a-login-page-from-x-pack-realm/119099>\
**Category:** Elasticsearch\
**Created:** [February 8, 2018, 6:00pm UTC](https://discuss.elastic.co/t/calling-a-login-page-from-x-pack-realm/119099 "2018-02-08T18:00:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasi](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kasi](https://discuss.elastic.co/u/kasi)\
**Post date:** [February 8, 2018, 6:00pm UTC](https://discuss.elastic.co/t/calling-a-login-page-from-x-pack-realm/119099/1 "2018-02-08T18:00:01Z")

</div>

The following is the requirement:

We are planning on using Open ID connect and oauth2, should be able to bring in a  
login page from X-pack realm let the users enter the userid and password information and then  
redirect to x-pack ream/page. Is it possible to do this? is there a way to bring up a webpage from the  
x-pack realm?

Thanks,

Kasi

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [February 8, 2018, 10:54pm UTC](https://discuss.elastic.co/t/calling-a-login-page-from-x-pack-realm/119099/2 "2018-02-08T22:54:04Z")

</div>

Hello,

We've added SAML support in 6.2.0 so that might be easier for you to configure. Guide for it is here:  
[https://www.elastic.co/guide/en/x-pack/current/saml-guide.html](https://www.elastic.co/guide/en/x-pack/current/saml-guide.html)

---

<div class="post-metadata">

**Author:** ![kasi](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kasi](https://discuss.elastic.co/u/kasi)\
**Post date:** [February 9, 2018, 11:21pm UTC](https://discuss.elastic.co/t/calling-a-login-page-from-x-pack-realm/119099/3 "2018-02-09T23:21:03Z")

</div>

Thanks, I looked at the page, not sure it will solve what I am looking for, I have outlined below

Users logs into ES --\> ES redirects to a page hosted on our site supporting Open Connect, --\>user enters login credentials, Open Connect server returns auth code, which is then used for returning a JWT token.

Please let me know if this is possible with the above, do we need to extend xpack realms also?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 9, 2018, 11:21pm UTC](https://discuss.elastic.co/t/calling-a-login-page-from-x-pack-realm/119099/4 "2018-03-09T23:21:11Z")

</div>

Closed on March 9, 2018, 11:21pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
