How does mongodb’s local Library Do User Authentication

  mongodb, question

As the topic is. Local cannot add users, if the shell can complete verification under admin, then cut to the local library. How should it be written in the application?

I don’t know what language you are using, but at present the drivers of various languages support switching databases, which means that authentication can be separated from operating databases. You can select admin for authentication when connecting to the database, and switch to the local database for operation after connecting. Note that you must ensure that your users in admin have permission to operate the local database!