SamuelTallet / MongoDB-PHP-GUI

Open-source graphical interface for MongoDB database. Written in PHP, JavaScript, HTML & CSS.
142 stars 33 forks source link

Login for user having only database specific roles #27

Open creharmony opened 2 years ago

creharmony commented 2 years ago

Hi

context

I've a test environment with a test mongo database and a test user account:

(example on mongodb.com > manage access view > custom role)

image

NB/ in following example, I replaced real data with "blah blah".

uri login test case

When using "mongo uri login page" with following entry

 mongodb+srv://testuser:password@blah.blah.mongodb.net/test-database?retryWrites=true&w=majority

Then I got the following Screen: image

detailed fields login test case

If I retry using "detailed fields login ui", then I'm able to get in and I see

mongo shell test

Please note that if I'm trying to connect from command line in order to list collections, I've no issue

mongo.exe mongodb+srv://testuser:password@blah.blah.mongodb.net/test-database?retryWrites=true\&w=majority
PRIMARY> show collections
.coll
collB

expected evolution

I expect to use MongoDB-PHP-UI even if my security context doesn't allow me to list all databases (end so on.. manage index/users..)

If I've no access to some feature, I may have a feedback to understand that point If I've only database read/and/or/write access, then I must be able to use MongoDB-PHP-GUI related feature (find/count..)

SamuelTallet commented 2 years ago

Hi, Thanks for this detailed explanation. I planned to rework error handling. I will probably handle this issue at the same time...