Comments (7)
the different pieces of data are not tied to different logins. Once you log in you have access to any data running from that host/port. Are you spinning up your sessions with different ports?
from dtale.
Yes
Two python sessions were binded to two different port. Username and password were also different between sessions.
Once login with either one account password. It can access both sessions but changing the port in the url
from dtale.
Are you spinning them up from different processes? The authentication settings are global state. So all it does is a simple verification against the username & password you set in your .ini
file or using set_auth_settings
.
So essentially if you start a python console, start one D-Tale process w/ one set of credentials, then spin up another D-Tale process from the same console but with different credentials then it should get access to both since the credentials are shared and you essentially overrode them.
In that scenario I'd be interested to see if you logged out of the first session could you still log in with the first set of creds? I would think not
from dtale.
I have used two separated Jupiter notebook sessions to create the process with two port binding. I think it should in separate console, because if show the df within the same console, it will bind on the existing port instead of assigning to a new one. Please correct me if I am wrong.
I could try to use log off to check the behavior
from dtale.
I have just tested with two separate console to create two different dtale session with different credential.
I copied one of the URL to browser and login with the corresponding credential. And then without log off, change the url to access the another session. It was not required me to input any credential and allow me access the data in the other session.
I suspect browser cookie keep the login status and with any successful login status will allow us to access all dtale sessions even different credential were set
from dtale.
I have checked the auth.py
If the browser session variable logged_in and username are set, then it will not redirect to login page. And the browser session status could allow use to access any other dtale session, even credential are different
from dtale.
So unfortunately it looks as if Flask is sharing cookies between tabs in your browser. There doesn't appear to be a solution to this other than implementing a completely different authentication mechanism. As I told someone else I think I might create a way for users to specify their own authentication mechanism because what is there now certainly isn't comprehensive enough.
from dtale.
Related Issues (20)
- hoverinfo cannot be displayed on the lines to the left of the chart HOT 1
- dtale.show() error without data HOT 4
- Frequency table search problem HOT 3
- D-tale HOT 1
- Show duplicates: Bug or wanted behaviour ? HOT 4
- html code not running HOT 1
- Re-opening D-Tale Chart Colors GitHub Issue #325? HOT 5
- Cannot open Dtale with browser from Notebook HOT 3
- Create "Select All" option when selecting Duplicates HOT 6
- Option to pin the top menu? HOT 2
- Firewall or antivirus software may have blocked the connection. HOT 2
- Export charts as Plotly objects when using `offline_chart` API HOT 3
- Changed behaviour of port and host assignment HOT 1
- Info Page HOT 5
- can I use customize line to add new column otherwise only +-*/ buttom? HOT 2
- selecting all columns instead of one by one HOT 4
- Dynamically Calculating Column Aggregates HOT 2
- Access Altered DF Results (after filtering, sorting, etc.) HOT 2
- How to set up the IP address and port for the open page HOT 1
- Colab + Firefox = 404 Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtale.