Giter Club home page Giter Club logo

Comments (4)

SamuelTallet avatar SamuelTallet commented on July 27, 2024

Have you tried specifying the database and the query param authSource in the MongoDB URI?

from mongodb-php-gui.

stephenkenny avatar stephenkenny commented on July 27, 2024

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.

stephenkenny avatar stephenkenny commented on July 27, 2024

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.

stephenkenny avatar stephenkenny commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.