{"id":42866279,"url":"https://github.com/gsainfoteam/account-be","last_synced_at":"2026-01-30T12:47:43.870Z","repository":{"id":224952221,"uuid":"764683260","full_name":"gsainfoteam/account-be","owner":"gsainfoteam","description":"infoteam-account의 backend repository입니다.","archived":false,"fork":false,"pushed_at":"2026-01-25T14:37:57.000Z","size":1767,"stargazers_count":7,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-25T18:59:56.001Z","etag":null,"topics":["backend","gist","nestjs","oauth2-server"],"latest_commit_sha":null,"homepage":"https://api.account.gistory.me/api","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gsainfoteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-28T14:25:17.000Z","updated_at":"2026-01-25T13:58:02.000Z","dependencies_parsed_at":"2024-02-28T15:43:13.793Z","dependency_job_id":"95a13c72-dd7a-443b-8053-c284243d7ab8","html_url":"https://github.com/gsainfoteam/account-be","commit_stats":null,"previous_names":["gsainfoteam/infoteam-idp","gsainfoteam/account-be"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/gsainfoteam/account-be","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsainfoteam%2Faccount-be","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsainfoteam%2Faccount-be/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsainfoteam%2Faccount-be/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsainfoteam%2Faccount-be/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsainfoteam","download_url":"https://codeload.github.com/gsainfoteam/account-be/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsainfoteam%2Faccount-be/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"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":["backend","gist","nestjs","oauth2-server"],"created_at":"2026-01-30T12:47:43.048Z","updated_at":"2026-01-30T12:47:43.864Z","avatar_url":"https://github.com/gsainfoteam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://introduce.gistory.me/\" target=\"blank\"\u003e\u003cimg src=\"assets/Infoteam.png\" alt=\"Infoteam Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Infoteam Account\n\n## Purpose\n\nGIST 학생들의 계정을 한 곳에서 관리하여 GIST구성원들이 사용할 수 있는 여러 서비스에 쉽게 로그인을 할 수 있도록 하는 Id Provider Server를 만드는 것이 InfoTeam Account의 목적입니다.\n\n## Caution\n\n본 서비스는 [GIST](https://www.gist.ac.kr/kr/main.html)구성원을 대상으로 하는 서비스이므로, gist구성원에게 기본적으로 지급되는 @gist.ac.kr 혹은 @gm.gist.ac.kr이메일이 필수적으로 있어야지 로그인이 가능합니다.\n\n## Explanation\n\n### Oauth2.1\n\n본 서비스는 Oauth2.1 프로토콜을 이용해서 구현을 하였습니다. 따라서 본 서비스 로직의 더 자세한 정보를 알고 싶다면, 아래 문서를 참고하시기 바랍니다.  \n[Oauth2.1](https://www.ietf.org/archive/id/draft-ietf-oauth-v2-1-12.html)  \n[Open id connect](https://openid.net/specs/openid-connect-core-1_0.html)\n\n### 명칭 정리\n\n본 서비스를 사용하는 주체는 크게 두 가지가 있습니다. 하나는 user, 다른 하나는 client입니다.\n\nuser는 infoteam-account에서 gist mail을 인증하고, 관련된 정보를 제공하여 infoteam-account를 사용하는 다른 서비스를 사용하려는 사람입니다.\n\nclient는 infoteam-account를 사용하여, user의 정보를 받고, 그에 맞추어서 서비스를 제공하는 어플리케이션입니다.\n\n### 로그인 과정\n\n- Authorization Code Flow\n\n```mermaid\nsequenceDiagram\nparticipant AccountFe as Account FrontEnd\nparticipant ClientFe as Client Frontend\nparticipant Client\nparticipant Account\n\ncritical Requesting Login\n  ClientFe -\u003e\u003e Client: Request Account Login\n  Client -\u003e\u003e ClientFe: REDIRECT account.gistory.me/authorize\n  ClientFe -\u003e\u003e AccountFe:\nend\n\nAccountFe -\u003e\u003e AccountFe: login or sign up\n\nAccountFe -\u003e\u003e+ Account: client_id, code_challenge, code_challenge_method, redirect_uri, scope, \"Account jwt user token\"\nnote right of Account: GET /oauth/authorize\nAccount -\u003e\u003e- ClientFe: REDIRECT \u003cclient url\u003e?code=code\n\nClientFe -\u003e\u003e Account: client_id, code, code_verifier\nnote right of Account: POST /oauth/token\n\nalt client using id token\n  Account -\u003e\u003e ClientFe: access token, refresh token, id token\n  ClientFe -\u003e\u003e+ Client: access token, refresh token, id token\n  Client -\u003e\u003e Client: service logic with id token\n  Client -\u003e\u003e- ClientFe:\nelse\n  Account -\u003e\u003e ClientFe: access token, refresh token\n  ClientFe -\u003e\u003e+ Client: access token, refresh token\n  Client -\u003e\u003e+ Account: access token\n  note right of Account: POST /oauth/userinfo\n  Account -\u003e\u003e- Client: user's information\n  Client -\u003e\u003e ClientFe:\nend\n\n```\n\n- Refresh Token Grant\n\n```mermaid\nsequenceDiagram\nparticipant ClientFe as Client Frontend\nparticipant Account\n\nClientFe -\u003e\u003e+ Account: client_id, refresh_token\nnote right of Account: POST /oauth/token\n\nAccount -\u003e\u003e- ClientFe: access token, refresh token, (id token)\n```\n\n- Client Credential flow\n\nClient를 만들면, 같이 나오는 client의 id와 secret을 이용해서, client가 user의 정보를 가져올 수 있도록 합니다.\n\n```mermaid\nsequenceDiagram\nparticipant Client\nparticipant Account\n\nClient -\u003e\u003e+ Account: client_id, client_secret, scope\nnote right of Account: POST /oauth/token\n\nAccount -\u003e\u003e- Client: access token, refresh token\n\nopt if client want to get userinfo\n  Client -\u003e\u003e+ Account: access token, user id\n  note right of Account: POST /oauth/userinfo\n  Account -\u003e\u003e- Client: userinfo\nend\n```\n\n## API DOCS\n\nAPI DOCS는 swagger로 구현되어있으며, 각 문서는 아래의 페이지에서 확인할 수 있습니다.\n\nProduction: \u003chttps://api.account.gistory.me/api\u003e  \nStaging: \u003chttps://api.stg.account.gistory.me/api\u003e\n\n## Database Structure\n\nDatabase structure는 [mermaid](https://mermaid.js.org/)로 구현되었으며, 문서는 아래의 링크에서 확인할 수 있습니다.\n\n[ERD 링크](./docs/erd.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsainfoteam%2Faccount-be","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsainfoteam%2Faccount-be","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsainfoteam%2Faccount-be/lists"}