{"_id":"@andrew.vanbeekokta/okta-node-cli-example","_rev":"1-c62c61407234b2a368f28891e266678b","name":"@andrew.vanbeekokta/okta-node-cli-example","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@andrew.vanbeekokta/okta-node-cli-example","version":"0.1.0","description":"This project is the sample CLI application code for the blog post [Build a Command Line Application with Node.js](https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs). This sample app demonstrates using Node.js to build a CLI applicati","main":"bin/index.js","scripts":{"eslint":"eslint --fix src/*.js bin/*.js","pkce-login":"node bin/pkceLogin.js"},"repository":{"type":"git","url":"git+https://github.com/oktadeveloper/okta-node-cli-example.git"},"keywords":[],"author":{"name":"David Neal","email":"david@reverentgeek.com","url":"https://reverentgeek.com"},"license":"MIT","bugs":{"url":"https://github.com/oktadeveloper/okta-node-cli-example/issues"},"homepage":"https://github.com/oktadeveloper/okta-node-cli-example#readme","bin":{"hello":"./bin/index.js","pkce-login":"./bin/pkceLogin.js"},"devDependencies":{"eslint":"^5.16.0"},"dependencies":{"@hapi/hapi":"^18.3.1","axios":"^0.19.0","boxen":"^4.0.0","chalk":"^2.4.2","dotenv":"^8.0.0","open":"^6.3.0","uuid":"^3.3.2","yargs":"^13.2.4"},"gitHead":"8d1627a67a7f5a0145be0bbcfa6c78027e4c3d9b","_id":"@andrew.vanbeekokta/okta-node-cli-example@0.1.0","_nodeVersion":"10.16.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-5egt/keM2Xo84x20qygUwn0p0a0lj5fe1uX8UZ8G5+GITZxiEMKC1zIeS9mCq88dcg1K8oP1K0OKeL5MXfMzzQ==","shasum":"cc9fe24890bdeff807960a7b8973e75e33fc9d26","tarball":"https://registry.npmjs.org/@andrew.vanbeekokta/okta-node-cli-example/-/okta-node-cli-example-0.1.0.tgz","fileCount":9,"unpackedSize":9815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4q5fCRA9TVsSAnZWagAA6eIQAIESoyCgu+FCkmiQpY2W\nkEDtBiTA1747VvifgYMBXJItjsbdvXYwKqbBBenCy/ug841EOF2TN+dOQNGk\ngD9WNic/t6H62X0piR8Z/kLicx5zEms506v8dyFsHhDmrz35+ald74SKQdvs\nJwcPKnJcEgpbZjViKZq2yDCgF9WXi2RstTBU4xBv1C4Em4xnhjlVU362gjbP\nfveRQgQLHJrKzTTxai0l//gRyD1iNAaDY2p4D5Zb/ZGOcu6lQeV5sd1+WqPn\nMYEPhnqCxx5AuGmuUivcfCf0UGa5u3CJuJAx50pBFhtxAFOx2Z+dXThBKuGS\nasoo2bLRFdiCLpE89/kGxWxsD5IE5fcjQDHipVYuUONcFuEFjEXoJ/AUCOTE\nEcsyDsl5JNHh3S6xGm2zwJDzQ7MvWnTreJ7OVkee/npMer3WIJmlbHe8+Mqv\n5nkHKuhu9DS6MkTWshLInNtMsOGn/NXpxjZmj3D+h0GAeSb1RHD5xPQPwsMp\nIOdRxrx+x1pZrw8z0NbBs3HWPehjIY3lpBmaTJ8bQZcLK3IfL9X052Avbv6V\nPsAwSYxY9jyEMXbQWIVLi9fqvjWRqC4VHNctangraogjYY01CvjXm8Cw9KxH\nyQ8BEZmfe1cnd/TSaSkui/IVUan5C3aKpFqdwmq8qAhLmQT8EEI+fGW1YfHa\nNskr\r\n=BI15\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPsN/miaeFT5K/MbgjaPJRXBAiCWmIiwjsCZ3UZpIlBQIhALOkNu52gAbmQgbURplHSOzVijoWsiHOX/dvdcEfhF8U"}]},"maintainers":[{"name":"andrew.vanbeekokta","email":"andrew.vanbeek@okta.com"}],"_npmUser":{"name":"andrew.vanbeekokta","email":"andrew.vanbeek@okta.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/okta-node-cli-example_0.1.0_1591914079024_0.4389302358353053"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-11T22:21:18.979Z","0.1.0":"2020-06-11T22:21:19.145Z","modified":"2022-04-04T14:01:08.270Z"},"maintainers":[{"name":"andrew.vanbeekokta","email":"andrew.vanbeek@okta.com"}],"description":"This project is the sample CLI application code for the blog post [Build a Command Line Application with Node.js](https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs). This sample app demonstrates using Node.js to build a CLI applicati","homepage":"https://github.com/oktadeveloper/okta-node-cli-example#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/oktadeveloper/okta-node-cli-example.git"},"author":{"name":"David Neal","email":"david@reverentgeek.com","url":"https://reverentgeek.com"},"bugs":{"url":"https://github.com/oktadeveloper/okta-node-cli-example/issues"},"license":"MIT","readme":"# Okta Node.js Command Line Application Example\n\nThis project is the sample CLI application code for the blog post [Build a Command Line Application with Node.js](https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs). This sample app demonstrates using Node.js to build a CLI application that can use PKCE to authenticate with an OAuth 2.0 API. Please read the blog post for more information!\n\nTo use this code, you will need the following:\n\n* A recent version of [Node.js](https://nodejs.org) downloaded and installed\n* A good text editor, such as [Visual Studio Code](https://code.visualstudio.com)\n* A [free Okta developer account](https://developer.okta.com/signup/)\n\nTo successfully run this project you will need to:\n\n1. Clone or download the source code.\n1. Run `npm install` from the command line in the project folder.\n1. Copy `.env.sample` to `.env`\n1. Create a \"native\" application in [Okta](https://developer.okta.com)\n1. Update `.env` with your **Okta developer URL** and application's **Client ID**\n1. Install the CLI app globally using `npm install -g .`\n\nAfter installing the CLI app globally, you will have two commands you can use: `hello` and `pkce-login`.\n\nEnjoy!\n","readmeFilename":"README.md"}