Comments (4)
Have you tried specifying the database and the query param authSource in the MongoDB URI?
from mongodb-php-gui.
This is embarrassing - it actually works fine. I must've been doing something stupid on Friday. Thanks a lot for getting back to me. While I'm here - and at the risk of making another wrong conclusion about something :-) - can I ask if the following is the intended behaviour:
In the "I don't have an URI" method of logging in, if I supply an incorrect password, host or database name, I still get to see the landing page. It's only when I then click on the database name (on the landing page) that I get an error message detailing what's gone wrong. It's not a problem for us - we'll tell users to use the URI form of logging in. Was just curious.
Thanks a lot.
from mongodb-php-gui.
Hi again - I don't know if I was seeing things earlier, but after a simplified rebuild of my containers setup - with just a MongoDB UI container talking to a Bitnami MongoDB container configured with an initialized database (no Apache or Nginx reverse proxy in the mix) - I am back in the situation where the URI-based login doesn't show me the database on the landing page, whereas the non-URI login method does. I used Firefox's web developer tools to examine the POST request. They differ as follows
await fetch("http://127.0.0.1:5000/login", {
"credentials": "include",
"headers": {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8",
"Accept-Language": "en-US,en;q=0.5",
"Content-Type": "application/x-www-form-urlencoded",
"Upgrade-Insecure-Requests": "1",
"Sec-Fetch-Dest": "document",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-User": "?1"
},
"referrer": "http://127.0.0.1:5000/login",
"body": "uri=mongodb%3A%2F%2Fcarbonquest%3ALogVincentQuad%40mongodb_carbonquest%3A27017%2Fcarbonquest_db",
"method": "POST",
"mode": "cors"
});
from mongodb-php-gui.
Sorry, I'm inexperienced with posting on Github - the above message was incomplete. To finish, the "body" lines for the URI- and non-URI-based login methods are, respectively as follows:
"body": "uri=mongodb%3A%2F%2Fcarbonquest%3ALogVincentQuad%40mongodb_carbonquest%3A27017%2Fcarbonquest_db",
"body": "user=carbonquest&password=LogVincentQuad&host=mongodb_carbonquest&port=27017&database=carbonquest_db",
I dunno if that is indicative of me doing something wrong ....
Thanks once again.
from mongodb-php-gui.
Related Issues (20)
- Secure login with hCatpcha HOT 1
- Add reference to the GitHub repository/issues HOT 1
- Quick edit full document entry HOT 3
- Import from CSV / Export to CSV HOT 1
- Login for user having only database specific roles HOT 1
- Deny access to private files to improve security HOT 1
- Provide tagged Docker image HOT 5
- Not working behind ingress controller HOT 2
- Various feature requests for navigation and search
- Database visualization gets really slow with huge dataset HOT 1
- Edit document null attribute doesn't work
- Support for ARM64 architecture HOT 4
- Login page: store multiple target connection URIs
- Login page: do not retain credentials
- How to query an ObjectId field not named _id? HOT 3
- Accessing through subdirectory (reverse proxy)
- No input file specified.
- How to deploy on kubernetes
- Optimization of data visualization
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 mongodb-php-gui.