# Login redirects to homepage, shows no error

**URL:** https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728
**Category:** Support
**Created:** [July 19, 2018, 4:36pm UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728 "2018-07-19T16:36:27Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel\_Sousa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_sousa/32/101511_2.png) [@Daniel\_Sousa](https://meta.discourse.org/u/Daniel_Sousa)
#### Post date: [July 19, 2018, 4:36pm UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/1 "2018-07-19T16:36:27Z")

</div>

I have a Discourse instance running which had SSO turned on. I got locked out due to misconfiguration.

Proceeded with changing a couple of settings:

```plaintext
./launcher enter app
rails c
SiteSetting.enable_sso = false
SiteSetting.enable_local_logins = true
exit

```

Trying to login directly shows no error and redirects to the home page. No errors are shown.  
Also tried using the `/users/admin-login`.

Log output:

```plaintext
Started GET "/u/admin-login/490c222f04e33b2c59cc6fbdab2e7373" for <IP> at 2018-07-19 16:27:18 +0000
Processing by UsersController#admin_login as HTML
  Parameters: {"token"=>"490c222f04e33b2c59cc6fbdab2e7373"}
Redirected to http://<discourse address>
Completed 302 Found in 28ms (ActiveRecord: 7.0ms)
Started GET "/" for <IP> at 2018-07-19 16:27:18 +0000
Started GET "/" for <IP> at 2018-07-19 16:32:52 +0000
Processing by CategoriesController#index as HTML
Rendering categories/index.html.erb within layouts/application
Rendered categories/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_head.html.erb (0.2ms)
Rendered common/_discourse_stylesheet.html.erb (0.1ms)
Rendered common/_special_font_face.html.erb (0.1ms)
Rendered application/_header.html.erb (0.1ms)
Rendered common/_discourse_javascript.html.erb (0.2ms)
Completed 200 OK in 93ms (Views: 6.4ms | ActiveRecord: 22.4ms)
Started GET "/" for <IP> at 2018-07-19 16:32:52 +0000

```

Anything I’m missing?

---

<div class="post-metadata">

### Author: ![Daniel\_Sousa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_sousa/32/101511_2.png) [@Daniel\_Sousa](https://meta.discourse.org/u/Daniel_Sousa)
#### Post date: [July 19, 2018, 5:24pm UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/2 "2018-07-19T17:24:21Z")

</div>

When signing up for an account I get this error:  
`We cannot detect if your account was created, please ensure you have cookies enabled.`

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 19, 2018, 11:12pm UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/3 "2018-07-19T23:12:38Z")

</div>

Is this on a local instance? Are you on our hosting? I’m confused.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 20, 2018, 3:17am UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/5 "2018-07-20T03:17:29Z")

</div>

This implies there is something going very awry with your browser or network. I suggest using a different web browser, one you don’t normally use?

---

<div class="post-metadata">

### Author: ![Daniel\_Sousa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_sousa/32/101511_2.png) [@Daniel\_Sousa](https://meta.discourse.org/u/Daniel_Sousa)
#### Post date: [July 20, 2018, 3:03pm UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/6 "2018-07-20T15:03:41Z")

</div>

This is a instance running in a EC2. Using this for staging purposes, which makes developing new integrations and updating the theme easier. Its mirroring our hosted instance we have with you.

Pretty sure I found out the reason, I’m accessing it directly by the IP Address, didn’t add a DNS record that points to it and didn’t configure Let’s Encrypt too.

Whats your thoughts?

---

<div class="post-metadata">

### Author: ![Daniel\_Sousa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_sousa/32/101511_2.png) [@Daniel\_Sousa](https://meta.discourse.org/u/Daniel_Sousa)
#### Post date: [July 20, 2018, 4:21pm UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/7 "2018-07-20T16:21:19Z")

</div>

@codinghorror

All good now. Added a DNS record and enabled Let’s Encrypt.

SSO working properly!

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [July 21, 2018, 12:30pm UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/8 "2018-07-21T12:30:02Z")

</div>

This topic was automatically closed after 19 hours. New replies are no longer allowed.
