# Redirect to auth0 domain rather than staying on my own domain

**URL:** <https://community.auth0.com/t/redirect-to-auth0-domain-rather-than-staying-on-my-own-domain/9606>\
**Category:** Get Help\
**Tags:** auth0-lock, domains\
**Created:** [February 27, 2018, 10:57pm UTC](https://community.auth0.com/t/redirect-to-auth0-domain-rather-than-staying-on-my-own-domain/9606 "2018-02-27T22:57:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstolk](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mstolk](https://community.auth0.com/u/mstolk)\
**Post date:** [February 27, 2018, 10:57pm UTC](https://community.auth0.com/t/redirect-to-auth0-domain-rather-than-staying-on-my-own-domain/9606/1 "2018-02-27T22:57:21Z")

</div>

I always used the [shiny-auth repository](https://github.com/auth0/shiny-auth0) to secure my R Shiny Dashboard. This worked brilliantly, until recently. Some updates in the repository (I guess removing the old lock object) made that my users are now redirected to my AUTH0 domain ([mycompany.eu.auth0.com/login?client=](http://mycompany.eu.auth0.com/login?client=)…), rather than staying on our personal domain ([mycompany.com/login](http://mycompany.com/login)).

How can I let my users stay on my domain while trying to login? What caused this change in behavior and is there a good reason for redirecting users to the AUTH0 domain?

---

<div class="post-metadata">

**Author:** ![richard.dowinton](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/richard.dowinton/32/16150_2.png) [@richard.dowinton](https://community.auth0.com/u/richard.dowinton)\
**Post date:** [February 28, 2018, 6:08pm UTC](https://community.auth0.com/t/redirect-to-auth0-domain-rather-than-staying-on-my-own-domain/9606/2 "2018-02-28T18:08:00Z")

</div>

We updated the shiny-auth0 as part of our effort to move our SDKs to [universal login](https://auth0.com/docs/hosted-pages/login) .

The main advantage is security. Capturing credentials on a single domain reduces the vulnerability to man-in-the-middle attacks compared to cross-origin authentication. Another advantage of universal login is support for SSO. We’re making this available in shiny-auth0 soon.

If you want to keep your users on the same domain, you can use [custom domains](https://auth0.com/docs/custom-domains) which we aim to have ready for production usage by end of Q1 this year.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 10:30am UTC](https://community.auth0.com/t/redirect-to-auth0-domain-rather-than-staying-on-my-own-domain/9606/3 "2019-07-25T10:30:06Z")

</div>


