{"id":22819792,"url":"https://github.com/benscabbia/vuejsoidcclient","last_synced_at":"2026-04-28T20:06:40.212Z","repository":{"id":39557967,"uuid":"172983238","full_name":"benscabbia/vuejsOidcClient","owner":"benscabbia","description":"A fork of joaojosefilho/vuejsOidcClient but configured to run against a project built with vue-cli 3.4.0","archived":false,"fork":false,"pushed_at":"2023-01-03T16:59:43.000Z","size":1803,"stargazers_count":0,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T04:43:32.943Z","etag":null,"topics":["identityserver4","oidc-client","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benscabbia.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}},"created_at":"2019-02-27T20:13:23.000Z","updated_at":"2019-07-23T10:08:40.000Z","dependencies_parsed_at":"2023-02-01T08:01:31.206Z","dependency_job_id":null,"html_url":"https://github.com/benscabbia/vuejsOidcClient","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/benscabbia%2FvuejsOidcClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benscabbia%2FvuejsOidcClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benscabbia%2FvuejsOidcClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benscabbia%2FvuejsOidcClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benscabbia","download_url":"https://codeload.github.com/benscabbia/vuejsOidcClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390860,"owners_count":20769478,"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":["identityserver4","oidc-client","vuejs"],"created_at":"2024-12-12T15:14:18.848Z","updated_at":"2026-04-28T20:06:35.175Z","avatar_url":"https://github.com/benscabbia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OIDC Client\n\nBuilt the project with Vuejs CLI 3.4.0 and then migrated OIDC components from [fork](https://github.com/joaojosefilho/vuejsOidcClient).\n\n## Project setup\n\n```\nnpm install\n```\n\n### Compiles and hot-reloads for development\n\n```\nnpm run serve\nnpm run serve -- --port 5003\n```\n\n### Compiles and minifies for production\n\n```\nnpm run build\n```\n\n### Run your tests\n\n```\nnpm run test\n```\n\n### Lints and fixes files\n\n```\nnpm run lint\n```\n\n### Customize configuration\n\nSee [Configuration Reference](https://cli.vuejs.org/config/).\n\n---\n\n## Connection with identity provider\n\nChange the parameters of the variable **mgr** of the script [SecurityService.js][2] to the values of your identity provider.\n\n```bash\nvar mgr = new Oidc.UserManager({\n  userStore: new Oidc.WebStorageStateStore(),\n  authority: 'https://localhost:44321',\n  client_id: 'vuejsclient',\n  redirect_uri: window.location.origin + '/static/callback.html',\n  response_type: 'id_token token',\n  scope: 'openid profile address roles identityserver4api country subscriptionlevel offline_access',\n  post_logout_redirect_uri: window.location.origin + '/index.html',\n  silent_redirect_uri: window.location.origin + '/static/silent-renew.html',\n  accessTokenExpiringNotificationTime: 10,\n  automaticSilentRenew: true,\n  filterProtocolClaims: true,\n  loadUserInfo: true\n})\n```\n\nThe script [SecurityService.js][2] contains triggers and methods from the [oidc-client][3] library.\n\n## API\n\nThe script [ApiService.js][4] is responsible for making requests to an API using the libraries [oidc-client][3] and [axios][5]\n\nThe **baseUrl** constant receives the static part of the API Url.\n\n```bash\nconst baseUrl = 'https://localhost:44390/api/';\n```\n\nMore information on [fork](https://github.com/joaojosefilho/vuejsOidcClient).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenscabbia%2Fvuejsoidcclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenscabbia%2Fvuejsoidcclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenscabbia%2Fvuejsoidcclient/lists"}