{"_id":"mock-oauth-2-server","_rev":"177-550ed22732f681cc07b3bb245b0923da","name":"mock-oauth-2-server","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.2":{"name":"mock-oauth-2-server","version":"1.0.2","license":"MIT","_id":"mock-oauth-2-server@1.0.2","maintainers":[{"name":"policygenius","email":"engineering@policygenius.com"}],"dist":{"shasum":"43c29fcbf10fac239460a331756b14d5bf03658f","tarball":"https://registry.npmjs.org/mock-oauth-2-server/-/mock-oauth-2-server-1.0.2.tgz","integrity":"sha512-90ySNd5sQL8NIP0WgpmSdI99l/HpJO0Jf/FolXTB1gF/fJeip5lH+HQYkXnnqh8MkaeIV5tSuNzbulWgZdpk8Q==","signatures":[{"sig":"MEUCIQCAICuemj2SzuKdKGGd+/c4jVGoCypBSWrqzAPT7R3E0wIgTtnzm61mGGXmr3hX5mWIpFPVssskFGvCXbiorxmwc0U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_npmUser":{"name":"policygenius","email":"engineering@policygenius.com"},"repository":{"url":"git+https://github.com/policygenius/mock-oauth-2-server.git","type":"git"},"description":"``` javascript const mockData = { client: { id : 'oauth2_application_client_id', secret : 'oauth2_application_secret', redirectUris : ['http://localhost:5000/oauth2/redirect/callback'], grants: ['authorization_code'] }, user: { id : '123', uuid : 'dkalfye","directories":{},"dependencies":{"uuid":"^3.0.1","lodash":"^4.17.4","moment":"^2.18.1","express":"^4.15.3","body-parser":"^1.17.2","jsonwebtoken":"^7.4.1","express-oauth-server":"^2.0.0-b1"},"_npmOperationalInternal":{"tmp":"tmp/mock-oauth-2-server-1.0.2.tgz_1496697007258_0.6045396020635962","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"mock-oauth-2-server","version":"1.0.3","license":"MIT","_id":"mock-oauth-2-server@1.0.3","maintainers":[{"name":"policygenius","email":"engineering@policygenius.com"}],"dist":{"shasum":"80b4abaa5d7b84279c16a45d7cee8cf99a4be2fc","tarball":"https://registry.npmjs.org/mock-oauth-2-server/-/mock-oauth-2-server-1.0.3.tgz","integrity":"sha512-ZCbrpusHbIEIxbxL/elO4Zh3YQYUP100Gfb9br2SHM4oAkOeVFeu2saZ7v8n+3UiBXk6cXieSZ7RjxmdDOzcoA==","signatures":[{"sig":"MEQCICBRGBqGGdHRlzQTxJgLEofqkAWdLXfJP4tRvUr1wKUGAiBmuGnRURkTQJoKL0qy+/I6zLI9kANvu6YmyyfM2Wl+Rw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_npmUser":{"name":"policygenius","email":"engineering@policygenius.com"},"repository":{"url":"git+https://github.com/policygenius/mock-oauth-2-server.git","type":"git"},"description":"``` javascript const mockData = { client: { id : 'oauth2_application_client_id', secret : 'oauth2_application_secret', redirectUris : ['http://localhost:5000/oauth2/redirect/callback'], grants: ['authorization_code'] }, user: { id : '123', uuid : 'dkalfye","directories":{},"dependencies":{"uuid":"^3.0.1","lodash":"^4.17.4","moment":"^2.18.1","express":"^4.15.3","body-parser":"^1.17.2","jsonwebtoken":"^7.4.1","express-oauth-server":"^2.0.0-b1"},"_npmOperationalInternal":{"tmp":"tmp/mock-oauth-2-server-1.0.3.tgz_1496697126132_0.9577766640577465","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-06-05T21:10:08.181Z","modified":"2026-09-10T16:42:40.199Z","1.0.2":"2017-06-05T21:10:08.181Z","1.0.3":"2017-06-05T21:12:07.026Z"},"license":"MIT","repository":{"url":"git+https://github.com/policygenius/mock-oauth-2-server.git","type":"git"},"description":"``` javascript const mockData = { client: { id : 'oauth2_application_client_id', secret : 'oauth2_application_secret', redirectUris : ['http://localhost:5000/oauth2/redirect/callback'], grants: ['authorization_code'] }, user: { id : '123', uuid : 'dkalfye","maintainers":[{"email":"technical@policygenius.com","name":"pgengineering"},{"email":"robot@policygenius.com","name":"randy-the-robot"},{"email":"neelmay@gmail.com","name":"neelmay"},{"email":"neeraj.negi@zinnia.com","name":"zneerajnegi"},{"email":"praman.satya@policygenius.com","name":"praman_satya"},{"email":"milind.srivastava@policygenius.com","name":"milind.srivastava"},{"email":"gauri.sharma@zinnia.com","name":"gaurisharma_zinnia"},{"email":"donatas.tubutis@zinnia.com","name":"donatastubutis-zinnia"},{"email":"ludovic.racape@se2.com","name":"ludo-zinnia"},{"email":"soniya.agrawal@zinnia.com","name":"soniyazinnia"},{"email":"raj.tripathi@policygenius.com","name":"raj_tripathi"},{"email":"rajesh.bhasin@zinnia.com","name":"rajeshbhasin"},{"email":"daniel.gremmell@policygenius.com","name":"dgremmell19"},{"email":"atishay.jain@zinnia.com","name":"atishayj"},{"email":"kiko.naoumov@zinnia.com","name":"kiko12"},{"email":"anssam.ghezala@zinnia.com","name":"anssam"},{"email":"brian.byers@zinnia.com","name":"brian-byers-zinnia"},{"email":"gagander.kushwah@zinnia.com","name":"gagan013240"}],"readme":"Mock OAuth2 server for testing\n\n### Mock Data ###\n``` javascript\nconst mockData = {\n  client: {\n    id : 'oauth2_application_client_id',\n    secret : 'oauth2_application_secret',\n    redirectUris : ['http://localhost:5000/oauth2/redirect/callback'],\n    grants: ['authorization_code']\n  },\n  user: {\n    id : '123',\n    uuid : 'dkalfyeoiqajaof',\n    email: 'brad@email.com'\n  },\n  jwtSecret: 'jwt_secret_key'\n};\n```\n### generateAccessToken ###\n``` javascript\nconst defaultGenerateAccessToken(client, user, scope) {\n  return jwt.sign(user, 'im_a_secret', { algorithm: 'HS512', jwtid: uuid() });\n},\n```\n\n","readmeFilename":"README.md","users":{"yeming":true}}