{"id":20307388,"url":"https://github.com/oktadev/okta-graphql-vue-olympics-example","last_synced_at":"2026-04-15T19:41:04.749Z","repository":{"id":103824243,"uuid":"206580911","full_name":"oktadev/okta-graphql-vue-olympics-example","owner":"oktadev","description":"Secure GraphQL + Vue Example","archived":false,"fork":false,"pushed_at":"2021-04-16T22:32:36.000Z","size":5640,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T07:32:22.065Z","etag":null,"topics":["expressjs","graphql","javascript","jwt","nodejs","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2019/11/11/graphql-vue","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oktadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-05T14:15:12.000Z","updated_at":"2021-04-16T22:32:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"724f4e13-3b16-4acd-859a-5e7a47db4442","html_url":"https://github.com/oktadev/okta-graphql-vue-olympics-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-graphql-vue-olympics-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-graphql-vue-olympics-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-graphql-vue-olympics-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-graphql-vue-olympics-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-graphql-vue-olympics-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-graphql-vue-olympics-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-graphql-vue-olympics-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31857620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["expressjs","graphql","javascript","jwt","nodejs","vue","vuejs"],"created_at":"2024-11-14T17:17:32.126Z","updated_at":"2026-04-15T19:41:04.740Z","avatar_url":"https://github.com/oktadev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure GraphQL + Vue Example\n\nThis example app shows how to use GraphQL and Vue.js to build a Olympic Events app and add authentication with Okta.\n\nPlease read [Use Vue and GraphQL to Build a Secure App](https://developer.okta.com/blog/2019/11/11/graphql-vue) to see how this app was created.\n\n**Prerequisites:** [Node.js](https://nodejs.org/) and an internet connection.\n\n\u003e [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage, and secure users and roles in any application.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit https://github.com/oktadeveloper/okta-graphql-vue-olympics-example.git graphql-vue\ncd graphql-vue\n```\n\nThis will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.\n\nTo run the GraphQL API, cd into the `olympics-server` folder and install its dependencies:\n \n```bash\nnpm i\n```\n\nThen start the server `node index.js`.\n\nTo run the client, cd into the `olympics-client` folder and run:\n \n```bash\nnpm i\nnpm run serve\n```\n\nYou won't be able to login unless you configure the app to use your Okta organization.\n\n### Setup Okta\n\nLog in to your Okta Developer account (or [sign up](https://developer.okta.com/signup/) if you don’t have an account) and navigate to **Applications** \u003e **Add Application**. Click **Single-Page App**, click **Next**, and give the app a name you’ll remember. \n\nOn the following screen, select `Authorization Code` for **Grant type allowed** and click **Done** to finalize the set-up.\n\n#### Server Configuration\n\nOpen `olympics-server/auth.js` and replace `{yourOktadomain}` and `{yourClientId}` in the following code block. \n\n```ts\nconst oktaJwtVerifier = new OktaJwtVerifier({\n  clientId: '{yourClientId}',\n  issuer: 'https://{yourOktaDomain}/oauth2/default'\n});\n```\n\n**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.okta.com`. Make sure you don't include `-admin` in the value!\n\n#### Client Configuration\n\nFor the client, set the `issuer` and `client_id` in `olympics-client/main.js`.\n\n```js\nVue.use(Auth, {\n  issuer: 'https://{yourOktaDomain}/oauth2/default',\n  client_id: '{yourClientId}',\n  redirect_uri: 'http://localhost:8080/callback',\n  pkce: true\n});\n```\n\nThen restart both your server and client and you should be able to authenticate!\n\n## Links\n\nThis example uses the following libraries provided by Okta:\n\n* [Okta JWT Verifier](https://github.com/okta/okta-oidc-js/tree/master/packages/jwt-verifier)\n* [Okta Vue SDK](https://github.com/okta/okta-oidc-js/tree/master/packages/okta-vue)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2019/11/11/graphql-vue), or visit our [Okta Developer Forums](https://devforum.okta.com/). \n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-graphql-vue-olympics-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-graphql-vue-olympics-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-graphql-vue-olympics-example/lists"}