Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection info on URI #35

Open
edinella opened this issue Sep 11, 2013 · 3 comments
Open

Connection info on URI #35

edinella opened this issue Sep 11, 2013 · 3 comments

Comments

@edinella
Copy link

When I am managing a database, I expect current URI to identify the current page, as suggested in http://en.wikipedia.org/wiki/URI . If so, I could copy and paste that URI in new tabs, favorite them, and so on.
That could happen, if the connection info were on URI.

@yocontra
Copy link
Owner

Are you comfortable with knowing that if somebody looks through your history they can get your DB credentials? There is a possibility for a Remember Me (Insecure) option if enough people don't care about that

@edinella
Copy link
Author

What about using basicAuth?

Maybe with a path like this:
http://localhost:8080/#/:dbType/:dbHostName/:dbHostPort/:dbName/:collectionName/:documentId

For example:
http://localhost:8080/#/mongodb/localhost/27017/cellar/vines/522fc525cda9ad4e3a000001

With these headers:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

Or inline if someone prefers it:
https://user:pass@localhost:8080/#/mongodb/localhost/27017/cellar/vines/522fc525cda9ad4e3a000001

@edinella
Copy link
Author

MongoHQ (http://mongohq.com) uses a "mongohq_session_store" cookie for an auth token, thru HTTPS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants