{"id":19662116,"url":"https://github.com/chanos-dev/vue-.net-keycloak","last_synced_at":"2026-06-17T10:32:17.107Z","repository":{"id":194594291,"uuid":"627034801","full_name":"chanos-dev/vue-.net-keycloak","owner":"chanos-dev","description":"vue + .net6+ web api + keycloak(sso)","archived":false,"fork":false,"pushed_at":"2023-09-13T16:56:26.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T21:42:38.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/chanos-dev.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,"governance":null}},"created_at":"2023-04-12T16:44:01.000Z","updated_at":"2023-09-13T16:56:29.000Z","dependencies_parsed_at":"2023-09-14T07:43:57.038Z","dependency_job_id":null,"html_url":"https://github.com/chanos-dev/vue-.net-keycloak","commit_stats":null,"previous_names":["chanos-dev/vue-.net-keycloak"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chanos-dev/vue-.net-keycloak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanos-dev%2Fvue-.net-keycloak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanos-dev%2Fvue-.net-keycloak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanos-dev%2Fvue-.net-keycloak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanos-dev%2Fvue-.net-keycloak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanos-dev","download_url":"https://codeload.github.com/chanos-dev/vue-.net-keycloak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanos-dev%2Fvue-.net-keycloak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34445179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-11T16:09:36.018Z","updated_at":"2026-06-17T10:32:17.077Z","avatar_url":"https://github.com/chanos-dev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"### vue(FE) + .NET Web API(BE) + Keycloak(SSO)\n---\n\n##### Deploy infrastructure services using Docker.\n- postgresql docker [docker-compose.yml](./docker/postgresql/docker-compose.yml)\n- quay.io/keycloak docker [docker-compose.yml](./docker/keycloak/docker-compose.yml)\n\n---\n##### Vue3 + vite framework\n```\nnpm create vite@latest\nnpm install keycloak-js\n```\n- `keycloak-js`에서 token 교환 방식이 authorization code의 public type으로 진행이 된다.\n  - client secret을 사용하지 않고 token을 교환한다.\n    - keycloak-js 라이브러리 [client secret 로직 삭제](https://github.com/keycloak/keycloak/commit/913056b2b2d39707347a39dddb7bdad69fe47cc3)\n- [PKCE 설정](#pkce-설정)을 통해 token 교환 시 보안성을 높일 수 있다.\n---\n\n##### PKCE 설정\n###### Keycloak\n- `realm -\u003e clients -\u003e client id 선택`\n- `Settings -\u003e Access Type을 public으로 선택`\n  - ![keycloak-client-type](./assets/keycloak-client-type.png)\n- `Settings -\u003e Advanced Settings -\u003e Proof Key for Code Exchange Code Challenge Method를 S256으로 선택`\n  - ![keycloak-client-pkce-method](./assets/keycloak-client-pkce-method.png)\n###### keycloak.js\n```javascript \n// init method 호출 시 pkceMethod 지정\nkeycloak.init({ onLoad: 'login-required', pkceMethod: 'S256' })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanos-dev%2Fvue-.net-keycloak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanos-dev%2Fvue-.net-keycloak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanos-dev%2Fvue-.net-keycloak/lists"}