[GH-ISSUE #3394] [bug]: I cannot log in on admin. always redirect to home admin #1135

Closed
opened 2026-03-16 18:49:03 +03:00 by kerem · 7 comments
Owner

Originally created by @jams008 on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3394

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Hi, I cannot log in on admin. always redirect to the home admin page again after login Authorization callback.

I try using EMAIL and GitHub auth, but some redirects to home admin again.

kevet issue

Steps to reproduce

  1. goto admin page 'example.com:3100'
  2. i login using email or github
  3. redirect to home again as in the picture.

Environment

Production

Version

Self-hosted

Originally created by @jams008 on GitHub (Sep 26, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3394 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior Hi, I cannot log in on admin. always redirect to the home admin page again after login Authorization callback. I try using EMAIL and GitHub auth, but some redirects to home admin again. ![kevet issue](https://github.com/hoppscotch/hoppscotch/assets/26858550/6b1f48bf-49d8-42ab-b1aa-ffb435971f0f) ### Steps to reproduce 1. goto admin page 'example.com:3100' 2. i login using email or github 3. redirect to home again as in the picture. ### Environment Production ### Version Self-hosted
kerem 2026-03-16 18:49:03 +03:00
Author
Owner

@balub commented on GitHub (Sep 27, 2023):

@jams008 Is your instance secured over HTTPS? We use HTTP secure cookies for auth so if your instance is over HTTP the cookies wont get set in your browser.

<!-- gh-comment-id:1736632198 --> @balub commented on GitHub (Sep 27, 2023): @jams008 Is your instance secured over `HTTPS`? We use `HTTP` secure cookies for auth so if your instance is over `HTTP` the cookies wont get set in your browser.
Author
Owner

@jams008 commented on GitHub (Sep 27, 2023):

oh yes, i use HTTP. Apa harus menggunakan HTTPS @balub ?

<!-- gh-comment-id:1736639084 --> @jams008 commented on GitHub (Sep 27, 2023): oh yes, i use `HTTP`. Apa harus menggunakan `HTTPS` @balub ?
Author
Owner

@balub commented on GitHub (Sep 27, 2023):

@jams008 As mentioned in our docs, you have to use HTTPS for it to work.

<!-- gh-comment-id:1736654389 --> @balub commented on GitHub (Sep 27, 2023): @jams008 As mentioned in our docs, you have to use `HTTPS` for it to work.
Author
Owner

@jams008 commented on GitHub (Sep 27, 2023):

@balub sorry my bad, thanks for help me. Can you refer me to the doc?
I can try again to night.

<!-- gh-comment-id:1736745662 --> @jams008 commented on GitHub (Sep 27, 2023): @balub sorry my bad, thanks for help me. Can you refer me to the doc? I can try again to night.
Author
Owner

@owlpro commented on GitHub (Sep 28, 2023):

i have the same issue, always redirected to env.REDIRECT_URL after login

<!-- gh-comment-id:1738948449 --> @owlpro commented on GitHub (Sep 28, 2023): i have the same issue, always redirected to env.REDIRECT_URL after login
Author
Owner

@jams008 commented on GitHub (Sep 28, 2023):

@owlpro Have you tried using tls / https ?
I check in recommendations this doc. But i don't try agin today.
https://docs.hoppscotch.io/documentation/self-host/community-edition/prerequisites#oauth

<!-- gh-comment-id:1739033360 --> @jams008 commented on GitHub (Sep 28, 2023): @owlpro Have you tried using tls / https ? I check in recommendations this doc. But i don't try agin today. https://docs.hoppscotch.io/documentation/self-host/community-edition/prerequisites#oauth
Author
Owner

@raphaelSm commented on GitHub (Oct 4, 2023):

Hi @All I expected the same problem, with redirecting from all auth services and magic link to home page via http . Verify method response return error in this case. Switching to https solve problem to me, doc mentions this at the very end in the link that you provided @jams008 . I wouldn't have find solution without this topic, so thanks for guidance.

obraz

// Error from auth callback response
{
    "errors": [
        {
            "message": "auth/cookies_not_found",
            "extensions": {
                "code": "FORBIDDEN",
                "response": {
                    "statusCode": 403,
                    "message": "auth/cookies_not_found",
                    "error": "Forbidden"
                }
            }
        }
    ],
}
<!-- gh-comment-id:1747581048 --> @raphaelSm commented on GitHub (Oct 4, 2023): Hi @All I expected the same problem, with redirecting from all auth services and magic link to home page via **http** . Verify method response return error in this case. Switching to **https** solve problem to me, doc mentions this at the very end in the link that you provided @jams008 . I wouldn't have find solution without this topic, so thanks for guidance. ![obraz](https://github.com/hoppscotch/hoppscotch/assets/45426478/d192eefa-12a2-4595-a601-f62d531d7f03) ``` js // Error from auth callback response { "errors": [ { "message": "auth/cookies_not_found", "extensions": { "code": "FORBIDDEN", "response": { "statusCode": 403, "message": "auth/cookies_not_found", "error": "Forbidden" } } } ], } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1135
No description provided.