{"id":20690588,"url":"https://github.com/notmyself/securing-vue","last_synced_at":"2025-04-22T16:57:58.740Z","repository":{"id":40951853,"uuid":"172114620","full_name":"NotMyself/securing-vue","owner":"NotMyself","description":"A Vue.js example application for demos.","archived":false,"fork":false,"pushed_at":"2023-01-09T16:36:29.000Z","size":5640,"stargazers_count":11,"open_issues_count":31,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T16:51:15.094Z","etag":null,"topics":["auth0","expressjs","vscode","vuejs"],"latest_commit_sha":null,"homepage":"https://notmyself.livecoders.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotMyself.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-22T18:21:53.000Z","updated_at":"2022-09-20T11:31:48.000Z","dependencies_parsed_at":"2023-02-08T13:01:23.473Z","dependency_job_id":null,"html_url":"https://github.com/NotMyself/securing-vue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fsecuring-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fsecuring-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fsecuring-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fsecuring-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotMyself","download_url":"https://codeload.github.com/NotMyself/securing-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250284507,"owners_count":21405294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth0","expressjs","vscode","vuejs"],"created_at":"2024-11-16T23:13:38.914Z","updated_at":"2025-04-22T16:57:58.671Z","avatar_url":"https://github.com/NotMyself.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue.js Example Application\n\nThis application is a starting point application for demos. It is based on the [Vuejs 2 Authentication Tutorial](https://auth0.com/blog/vuejs2-authentication-tutorial/) created on the Auth0 blog.\n\n![Vue Example](/docs/images/screenshot.png?raw=true \"Vue Example\")\n\n## Getting Started\n\n1. Install [Visual Studio Code](https://code.visualstudio.com/), the [Insiders Edition](https://code.visualstudio.com/insiders) is highly recommended.\n1. Ensure you have vue and nodemon globally installed `npm install -g @vue/cli nodemon`\n1. Clone the repository `git clone https://github.com/NotMyself/securing-vue.git vue-example`\n1. Change directory into the cloned repository `cd vue-example`\n1. Open the workspace `code vue-example.code-workspace`\n1. Open the integrated terminal in code \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003e`\u003c/kbd\u003e\n1. Run the init script `./script/init`\n1. [Register for Application Keys](https://auth0.com/docs/quickstart/spa/vuejs#get-your-application-keys)\n    - Set the **Allowed Callback URLs**, **Allowed Web Origins** and **Allowed Logout Urls** to `http://localhost:8080`\n1. Update **/client/.env** with the appropriate values.\n1. [Register an API](https://auth0.com/docs/quickstart/backend/nodejs#create-an-api)\n    - Set the **Identifier** to `https://startup-battle`\n1. Update **/server/.env** with the appropriate values.\n1. Run the start script `./script/start`\n\nThis will start both the backend server and the front end client. To quit use \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eC\u003c/kbd\u003e.\n\n## Suggested Code Extensions\n\nThis project has a set of suggested extensions for Visual Studio Code. They are intended to make the development experience on the code base easier.\n\n- [dotENV](https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv) - .env syntax highlighting\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - Integrates ESLint into VS Code\n- [Import Cost](https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost) - Show the file size cost of your imports\n- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - VS Code package to format your JavaScript / TypeScript / CSS using Prettier.\n- [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) - Vue tooling for VS Code\n- [REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) - REST Client allows you to send HTTP request and view the response in Visual Studio Code directly.\n\n## Editor Settings\n\nThis project has a set of editor settings for Visual Studio Code. They are related to the suggested extension and wire up some automated code formatting.\n\n```json\n{\n  \"[javascript]\": {\n    \"editor.formatOnSave\": true\n  },\n  \"prettier.eslintIntegration\": true,\n}\n```\nCombined these settings will cause the prettier code formatter to run on save as well as configure prettier to respect eslint defined rules.\n\n## Testing the API\n\nYou can open the `example.http` file in the `server` directory to test the api with [rest-client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client). If you accepted the workspace suggested extensions, it should already be installed.\n\nSimply, click the `Send Request` link above the API call you want to make.\n\n![Rest Client Usage](/docs/images/example.http.gif?raw=true \"Rest Client Usage\")\n\n## Presentation Materials\n\nDid you get this link from seeing a presentation I did on **Securing Vue.js with OpenID Connect and OAuth2**? Here are some further reading materials for the presentation.\n\n- [Slide Deck](https://www.slideshare.net/secret/2keSpaXJYIWIq1)\n- [OWASP HTML5 Security - Local Storage](https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html#local-storage)\n- [OAuth 2.0 for Browser-Based Apps](https://tools.ietf.org/html/draft-parecki-oauth-browser-based-apps-02)\n- [Announcing the General Availability of the Auth0 SPA JS SDK](https://community.auth0.com/t/announcing-the-general-availability-of-the-auth0-spa-js-sdk/27399)\n- [Auth0 SPA SDK Docs](https://auth0.github.io/auth0-spa-js/index.html)\n\nHere is a recording of this presentation given at Armada JS 2019. Feel free to share with your team.\n\n[Securing Vue.js with OpenID Connect and OAuth by Bobby Johnson](https://www.youtube.com/watch?v=r0BCki3U2AM)\n\nIf you would like to get some hands on experience using OAuth and OIDC, check out these self-paced labs that cover: web signin, calling an api, mobile applications and single page applications!\n\n- [Auth0 Identity Labs](https://auth0.com/docs/identity-labs/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmyself%2Fsecuring-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotmyself%2Fsecuring-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmyself%2Fsecuring-vue/lists"}