I have used file realm and JDBC realm before to host the username and password combinations. I have not yet used MongoDB to perform the same function. I have read the Tomcat docs and searched around but have not seen any tutorials.
Is there a realm someone knows of or am I missing something?
You can create your own realm and manually connect to Mongo.
This article here describes the process and provides sample code:
http://www.tomitribe.com/blog/2013/10/creating-a-mongodb-security-realm-for-tomcat/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.