{"info":{"_postman_id":"c231cda3-338f-4da5-bdd3-eadf8cbfb112","name":"express-mongoose-passport","description":"<html><head></head><body><p>A guide to creating users, login in, and accessing secure routes using the express-mongoose-passport boilerplate.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6434796","collectionId":"c231cda3-338f-4da5-bdd3-eadf8cbfb112","publishedId":"SVYkvfzP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-07-29T02:36:48.000Z"},"item":[{"name":"Accessing a secure route.","id":"cc809473-08b8-4c1b-90d8-54a0b77887c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/participants/","description":"<p>A sample request for accessing a secure route. It requires an 'Authorization' header that follows the 'Bearer token' pattern, like so:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">Authorization: Bearer &lt;token&gt;\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["participants",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc809473-08b8-4c1b-90d8-54a0b77887c3"},{"name":"Login in a user.","id":"afa48262-a685-45be-a6fa-713815812dc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"johndoe123@gmail.com","description":"<p>String</p>\n","type":"text"},{"key":"password","value":"secure-password-1234","description":"<p>String</p>\n","type":"text"}]},"url":"http://localhost:5000/participants/1234566","description":"<p>Route for login in a user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["participants","1234566"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"afa48262-a685-45be-a6fa-713815812dc2"},{"name":"Register new users.","id":"d75f51d1-054e-4d47-8de5-5e4f6737e5da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"John Doe","description":"<p>String value</p>\n","type":"text"},{"key":"username","value":"johndoe123","description":"<p>String value</p>\n","type":"text"},{"key":"email","value":"johndoe123@gmail.com","description":"<p>String value</p>\n","type":"text"},{"key":"password","value":"password123","description":"<p>String value</p>\n","type":"text"}]},"url":"http://localhost:3000/users/register","description":"<p>A route to register new users.The request should be a POST with x-www-urlencoded form body containing the following:</p>\n<ul>\n<li>name</li>\n<li>username</li>\n<li>email</li>\n<li>password</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d75f51d1-054e-4d47-8de5-5e4f6737e5da"}],"event":[{"listen":"prerequest","script":{"id":"35387a69-e89d-4ab7-8ca1-8295838f6551","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"05f9ec80-1265-45f0-858f-e4e8258e9603","type":"text/javascript","exec":[""]}}]}