# Elastic Cloud Reverse Proxy

**URL:** <https://discuss.elastic.co/t/elastic-cloud-reverse-proxy/345710>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [October 25, 2023, 9:36am UTC](https://discuss.elastic.co/t/elastic-cloud-reverse-proxy/345710 "2023-10-25T09:36:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkrauss](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pkrauss](https://discuss.elastic.co/u/pkrauss)\
**Post date:** [October 25, 2023, 9:36am UTC](https://discuss.elastic.co/t/elastic-cloud-reverse-proxy/345710/1 "2023-10-25T09:36:06Z")

</div>

I was reading through this 3 year old blog, that has been referenced multiple times by elasticsearch employees in these forums, and I was hoping to ask you a question.

> **[Custom Domains and Anonymous Access on Elastic Cloud](https://xeraa.net/blog/2020_custom-domains-and-anonymous-access-on-elastic-cloud/#proxying-with-nginx)**
>
> Workaround for two commonly requested features on Elastic Cloud with the help of proxies — nginx in these examples.

While playing around with this setup for an elastic cloud deployment, I was able to follow along and get the reverse proxy working with basic auth. However, for more complicated authentication mechanisms like SAML I noticed a bit of a drawback; if the SAML configurations redirects for the '/callback​' are pointing to the original instance domain name, it redirects off the custom reverse proxy domain. Of course, with SAML or OAuth/OIDC you can control the redirect uris for third parties like azuread. However, "login with Elastic Cloud" is an uncontrolled login method, meaning I cannot change the redirect uris.

So, my question is this, am I missing something here? are you able to alter those redirect uris for SAML with Elastic Cloud Login, or is there a trick in the reverse proxy for getting around this?

---

<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:** [November 8, 2023, 9:37am UTC](https://discuss.elastic.co/t/elastic-cloud-reverse-proxy/345710/2 "2023-11-08T09:37:06Z")

</div>

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