{"id":18277028,"url":"https://github.com/shapelayer/oauth2example-flask-only","last_synced_at":"2025-04-09T04:29:40.756Z","repository":{"id":131302208,"uuid":"152752742","full_name":"ShapeLayer/Oauth2Example-Flask-only","owner":"ShapeLayer","description":"Oauth2 로그인 예제","archived":false,"fork":false,"pushed_at":"2019-03-07T13:25:39.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T22:45:52.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/ShapeLayer.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-12T13:13:27.000Z","updated_at":"2019-03-07T13:25:40.000Z","dependencies_parsed_at":"2023-07-31T00:15:14.204Z","dependency_job_id":null,"html_url":"https://github.com/ShapeLayer/Oauth2Example-Flask-only","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/ShapeLayer%2FOauth2Example-Flask-only","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShapeLayer%2FOauth2Example-Flask-only/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShapeLayer%2FOauth2Example-Flask-only/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShapeLayer%2FOauth2Example-Flask-only/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShapeLayer","download_url":"https://codeload.github.com/ShapeLayer/Oauth2Example-Flask-only/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980719,"owners_count":21027800,"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":[],"created_at":"2024-11-05T12:17:56.263Z","updated_at":"2025-04-09T04:29:40.705Z","avatar_url":"https://github.com/ShapeLayer.png","language":"Python","readme":"# Oauth2Example-Flask-only\n\nFlask로 Oauth2 인증 절차를 밟아보는 예제입니다. 모듈 의존성을 최대한 줄인 코드를 찾아봤지만 찾지 못해 작성했으며, ```Flask-Social```모듈을 사용하지 않았습니다.\n\n## 시작하기\n### 파이썬 설치\n[파이썬 설치 가이드](https://github.com/404-sdok/how-to-python/blob/master/0.md)를 보며 파이썬을 설치합니다.\n### 모듈 설치\nWindows 환경이라면 ```pip install Flask```, Linux 환경이라면 ```pip3 install Flask```를 입력합니다.\n### 애플리케이션 실행\n다음 명령어로 실행합니다.\n\n```python (파일명)``` 또는 ```python3 (파일명)```\n\n * `client_id`와 `client_secret`은 예제가 정상 작동할수 있도록 채워두었으며, 실 사용시 각 제공자의 설정값에 맞게 변경하면 됩니다.\n * `get_token`디렉토리 내 코드는 액세스토큰을 받아 사용자 정보를 불러오고 마무리됩니다. `refresh`디렉토리 내 코드는 refresh 토큰으로 액세스토큰을 갱신하는 코드도 포함되어 있으며, 더 복잡합니다.\n\n### 로컬호스트 접속\n[http://localhost:2500](http://localhost:2500)에 접속합니다.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapelayer%2Foauth2example-flask-only","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshapelayer%2Foauth2example-flask-only","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapelayer%2Foauth2example-flask-only/lists"}