Skip to content

Redirect from login to dashboard fails locally #5

Open

Description

@sbenthall

After running the login and dashboard containers locally, and getting to the login page and entering the username and password, I get redirected to:

https://localhost/dashboard?bokeh-session-id={blah}

The browser errors.

image

I'm not sure if this redirect is working as intended, because the dashboard is at port 5006. So trying:

https://localhost:5006/dashboard?bokeh-session-id=B8XEv7K9odP1

... gets me a connection timeout error:

Uploading image.png…

Activity

  1. MridulS commented on Mar 26, 2023

    @MridulS
    Collaborator

    What's your LOGIN_DASHBOARD_URL=https://{dashboard_url}/dashboard ?

    It should be https://localhost:5006/dashboard

  2. MridulS commented on Mar 26, 2023

    @MridulS
    Collaborator

    ah no, just do http not https

  3. MridulS commented on Mar 26, 2023

    @MridulS
    Collaborator

    and BOKEH_ALLOW_WS_ORIGIN={dashboard_url} should be BOKEH_ALLOW_WS_ORIGIN=localhost:5006

  4. priyankaiitg commented on Mar 26, 2023

    @priyankaiitg

    I did this, yet I am getting

    The connection to the server was reset while the page was loading.

    INFO: Started server process [1]
    INFO: Waiting for application startup.
    INFO: Application startup complete.
    INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
    INFO: 172.17.0.1:57644 - "GET / HTTP/1.1" 200 OK
    INFO: 172.17.0.1:57644 - "GET /login HTTP/1.1" 401 Unauthorized
    INFO: 172.17.0.1:49710 - "GET /login HTTP/1.1" 302 Found

  5. sbenthall commented on Mar 27, 2023

    @sbenthall
    ContributorAuthor

    I can confirm now that I've gotten this working locally!

    A few notes:

    • both docker run commands name the images hosted on dockerhub; make sure to use personal image name, not mriduls
    • needed to go to localhost:8000 to access the login
    • redirect works this time!

    @priyankaiitg can you try testing this again locally? if it doesn't work for you I can show you what I've done step by step

  6. priyankaiitg commented on Mar 27, 2023

    @priyankaiitg

    I shall check and revert

  7. priyankaiitg commented on Mar 28, 2023

    @priyankaiitg

    I am getting

    The connection was reset

    The connection to the server was reset while the page was loading.

    INFO: Started server process [1]
    INFO: Waiting for application startup.
    INFO: Application startup complete.
    INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
    INFO: 172.17.0.1:43934 - "GET / HTTP/1.1" 200 OK
    INFO: 172.17.0.1:43934 - "GET /login HTTP/1.1" 401 Unauthorized
    INFO: 172.17.0.1:43934 - "GET /login HTTP/1.1" 302 Found
    INFO: 172.17.0.1:55784 - "GET / HTTP/1.1" 200 OK
    INFO: 172.17.0.1:55784 - "GET /login HTTP/1.1" 302 Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions