{"id":5335,"date":"2020-01-09T13:44:36","date_gmt":"2020-01-09T08:14:36","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5335"},"modified":"2026-11-07T13:56:50","modified_gmt":"2026-11-07T08:26:50","slug":"how-to-enable-the-mongo-database-authentication-method","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-mongo-database-authentication-method\/","title":{"rendered":"How to Enable MongoDB Database Authentication"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Post Date:<\/strong> January 9, 2020 <br><strong>Last Updated:<\/strong> November 07, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to enable <strong>MongoDB database authentication<\/strong> on a self-managed MongoDB server. By default, MongoDB deployments do not enable access control automatically. Without authentication, clients that can reach the database may be able to access data without providing a username and password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling MongoDB database authentication helps protect your database by requiring users to authenticate before accessing it. You can create an administrative user and separate database-specific users with different access permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we will create an administrator, enable authentication, create a database-specific user, and verify the connection using the MongoDB Shell (<code>mongosh<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more details, refer to the official MongoDB documentation on <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/enable-authentication\/\" target=\"_blank\" rel=\"noopener\">enabling access control<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before enabling MongoDB database authentication, make sure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MongoDB installed and running. If you haven&#8217;t installed MongoDB yet, refer to our guide: <a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-mongodb-7-0-on-ubuntu-20-04-and-22-04\/?utm_source=chatgpt.com\">How to Install MongoDB 7.0 on Ubuntu 20.04 and 22.04<\/a>. You can install the MongoDB version that meets your environment&#8217;s requirements.<\/li>\n\n\n\n<li>Root or sudo access to the Linux server.<\/li>\n\n\n\n<li>Access to the MongoDB configuration file.<\/li>\n\n\n\n<li>MongoDB Shell (<code>mongosh<\/code>) installed.<\/li>\n\n\n\n<li>A backup of your MongoDB configuration file.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The commands below are intended for a self-managed standalone MongoDB deployment. Replica sets and sharded clusters require additional security configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Architecture<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The MongoDB application connects to the MongoDB server.<\/li>\n\n\n\n<li>The MongoDB server checks the supplied username and password.<\/li>\n\n\n\n<li>The authentication database validates the user&#8217;s credentials.<\/li>\n\n\n\n<li>MongoDB checks the user&#8217;s assigned roles and permissions.<\/li>\n\n\n\n<li>The user can access only the resources permitted by those roles.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The following image illustrates how MongoDB database authentication works, from user login to database access.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Authentication-Flow-Infographic.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Authentication-Flow-Infographic-1024x576.png\" alt=\"\" class=\"wp-image-13005\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Authentication-Flow-Infographic-1024x576.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Authentication-Flow-Infographic-300x169.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Authentication-Flow-Infographic-768x432.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Authentication-Flow-Infographic-1536x864.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Authentication-Flow-Infographic.png 1672w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For more information about MongoDB users and role-based access, refer to the official <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/create-users\/\" target=\"_blank\" rel=\"noopener\">MongoDB user management documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Enable MongoDB Database Authentication<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Connect to MongoDB<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, connect to the MongoDB server using the MongoDB Shell:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mongosh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Switch to the admin database:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">use admin<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>admin<\/code> database is commonly used to create administrative users who manage the MongoDB deployment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Create an Admin User<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create an administrative user with the required privileges.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db.createUser({\n    user: \"mongo-root\",\n    pwd: passwordPrompt(),\n    roles: [\n        { role: \"root\", db: \"admin\" }\n    ]\n})<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When prompted, enter a strong password for the administrative user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>root<\/code> role provides full privileges across the MongoDB deployment. Use it only for trusted administrators and routine administration where full access is required.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> MongoDB does not create a default <code>mongo-root<\/code> user. You must create the administrative user yourself.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Create a Database-Specific User<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can create separate users for individual databases instead of using the administrative account for application connections.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, to create a user for a database named <code>dbname<\/code>, run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">use dbname\n\ndb.createUser({\n    user: \"dbuser\",\n    pwd: passwordPrompt(),\n    roles: [\n        { role: \"readWrite\", db: \"dbname\" }\n    ]\n})<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>readWrite<\/code> role allows the user to read and modify data in the specified database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the user also needs database administration privileges, you can assign the <code>dbAdmin<\/code> role:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db.grantRolesToUser(\"dbuser\", [\n    { role: \"dbAdmin\", db: \"dbname\" }\n])<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use only the permissions required by the application. Avoid granting administrative privileges unnecessarily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a complete list of available roles, refer to the official <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/built-in-roles\/\" target=\"_blank\" rel=\"noopener\">MongoDB built-in roles documentation<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Enable MongoDB Authentication<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After creating the required users, enable access control in the MongoDB configuration file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the configuration file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo vi \/etc\/mongod.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Locate the <code>security<\/code> section or add the following configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">security:\n  authorization: enabled<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The configuration file may be located elsewhere depending on your operating system and MongoDB installation. Check the MongoDB service configuration if <code>\/etc\/mongod.conf<\/code> does not exist.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>authorization: enabled<\/code> setting ensures that MongoDB requires users to authenticate and applies their assigned roles when accessing database resources.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Restart the MongoDB Service<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restart MongoDB to apply the authentication configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl restart mongod<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the service status:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl status mongod<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure the MongoDB service is running successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Connect Using the Database User<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After enabling MongoDB database authentication, connect using the database-specific user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mongosh --host 127.0.0.1 \\\n  --username dbuser \\\n  --authenticationDatabase dbname \\\n  --password<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the password when prompted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>127.0.0.1<\/code> specifies the MongoDB server address.<\/li>\n\n\n\n<li><code>dbuser<\/code> is the database username.<\/li>\n\n\n\n<li><code>dbname<\/code> is the database where the user was created.<\/li>\n\n\n\n<li><code>--password<\/code> prompts you to enter the password securely.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you are connecting with the administrative user, use <code>admin<\/code> as the authentication database:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mongosh --host 127.0.0.1 \\\n  --username mongo-root \\\n  --authenticationDatabase admin \\\n  --password<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For more connection options, refer to the official <a href=\"https:\/\/www.mongodb.com\/docs\/mongodb-shell\/connect\/\" target=\"_blank\" rel=\"noopener\">MongoDB Shell connection documentation<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. Verify MongoDB Authentication<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After connecting, switch to the database:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">use dbname<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the authenticated user:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db.runCommand({ connectionStatus: 1 })<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Review the <code>authenticatedUsers<\/code> and <code>authenticatedUserRoles<\/code> fields in the output.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also verify the user&#8217;s assigned roles:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db.getUser(\"dbuser\")<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the user connects successfully and can perform only the operations allowed by the assigned roles, MongoDB database authentication is working correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you encounter issues after enabling MongoDB database authentication, check the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Authentication failed:<\/strong> Verify the username, password, and authentication database. A user created in <code>admin<\/code> must authenticate against <code>admin<\/code>, unless another authentication database was specified.<\/li>\n\n\n\n<li><strong>MongoDB service fails to start:<\/strong> Check the YAML indentation in <code>\/etc\/mongod.conf<\/code> and review the MongoDB service logs using <code>journalctl -u mongod<\/code>.<\/li>\n\n\n\n<li><strong>Access denied:<\/strong> Verify that the user has the required roles for the database and operation.<\/li>\n\n\n\n<li><strong>Connection refused:<\/strong> Confirm that MongoDB is running and listening on the expected IP address and port.<\/li>\n\n\n\n<li><strong>Application connection fails:<\/strong> Update the application&#8217;s MongoDB connection string with the correct username, password, and authentication database.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Security recommendation:<\/strong> Do not expose MongoDB port <code>27017<\/code> publicly without appropriate network restrictions. Use firewall rules, restrict <code>bindIp<\/code> to trusted interfaces, and configure TLS when connections need to travel over untrusted networks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling MongoDB database authentication is an important step in securing your database server. By creating an administrative user, assigning database-specific roles, enabling authorization in <code>mongod.conf<\/code>, and verifying authenticated connections, you can control who accesses your MongoDB deployment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Always follow the principle of least privilege and create separate database users for applications instead of sharing administrative credentials.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Is MongoDB authentication enabled by default?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No. MongoDB access control is not enabled by default in a standard self-managed deployment. You must enable authorization in the MongoDB configuration file or start the server with the appropriate authentication option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. What is the default MongoDB authentication database?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The authentication database depends on how the user was created and the connection options. Users created in the <code>admin<\/code> database should authenticate against <code>admin<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. What is the difference between the root and readWrite roles?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>root<\/code> role provides broad administrative privileges across the deployment. The <code>readWrite<\/code> role allows a user to read and modify data in a specified database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Can I create multiple users in MongoDB?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. You can create multiple users with different roles and permissions. It is recommended to create separate users for administrators, applications, and database operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. How do I change an existing MongoDB user&#8217;s password?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connect as a user with sufficient privileges, switch to the user&#8217;s authentication database, and run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">use admin\ndb.changeUserPassword(\"mongo-root\", passwordPrompt())<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>admin<\/code> with the correct authentication database if the user was created elsewhere.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/data-types-and-data-model-in-mongodb\/\" target=\"_blank\" rel=\"noreferrer noopener\">Data Types and Data Model in MongoDB<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-mongodb-7-0-on-ubuntu-20-04-and-22-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to install MongoDB 7.0 on Ubuntu 20.04 and 22.04<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to Our Technology Experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Need assistance with MongoDB configuration, database security, or Linux server administration? Our team can help you configure secure database environments, manage user permissions, and maintain reliable server infrastructure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/contact\">Connect with our technology experts.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: January 9, 2020 Last Updated: November 07, 2026 Introduction This guide explains how to enable MongoDB database authentication [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13006,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[744,743],"class_list":["post-5335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-architecture","tag-authentication","tag-mongo","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1o3","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/01\/MongoDB-Database-Authentication-Guide.png","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5335"}],"version-history":[{"count":4,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5335\/revisions"}],"predecessor-version":[{"id":13011,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5335\/revisions\/13011"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media\/13006"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}