{"id":26116597,"url":"https://github.com/zaeval/oauth-valid","last_synced_at":"2026-02-02T23:44:40.879Z","repository":{"id":57447556,"uuid":"181283687","full_name":"zaeval/oauth-valid","owner":"zaeval","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-20T16:41:02.000Z","size":493,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T05:44:20.867Z","etag":null,"topics":["auth","authentication","authorization","facebook","fblogin","google","googlelogin","kakao","kakaologin","login","oauth","pip","pypi","python3","sns-login"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/zaeval.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-04-14T09:01:39.000Z","updated_at":"2023-08-11T23:08:31.000Z","dependencies_parsed_at":"2022-09-15T22:13:09.776Z","dependency_job_id":null,"html_url":"https://github.com/zaeval/oauth-valid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zaeval/oauth-valid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaeval%2Foauth-valid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaeval%2Foauth-valid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaeval%2Foauth-valid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaeval%2Foauth-valid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaeval","download_url":"https://codeload.github.com/zaeval/oauth-valid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaeval%2Foauth-valid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29024068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T23:43:56.073Z","status":"ssl_error","status_checked_at":"2026-02-02T23:43:49.438Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["auth","authentication","authorization","facebook","fblogin","google","googlelogin","kakao","kakaologin","login","oauth","pip","pypi","python3","sns-login"],"created_at":"2025-03-10T09:47:04.932Z","updated_at":"2026-02-02T23:44:40.861Z","avatar_url":"https://github.com/zaeval.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oauth-valid\nOauth valid served by zaeval.\n\nIt is using for nonprofit.\n\n![](https://img.shields.io/badge/pip-v0.0.2-blue.svg)\n![](https://img.shields.io/github/license/mashape/apistatus.svg)\n![](https://img.shields.io/badge/require-requests%20%7C%20bs4-orange.svg)\n![](https://img.shields.io/badge/author-zaeval-red.svg)\n\n# Oauth Process\n![](https://raw.githubusercontent.com/among-software/oauth-valid/master/statics/oauth_server_process.png)\n\n# FaceBook\n\nUpdate soon\n\n# Kakao\n\n[kakao 연동 예제 바로가기](https://github.com/among-software/oauth-valid/blob/master/examples/kakao.py)\n\n## 클라에서 코드 요청하기\n### redirect_url과 함께 code 요청 ( 카카오 로그인 창 띄우기 )\n\nhttps://kauth.kakao.com/oauth/authorize?client_id={KAKAO_APP_ID}\u0026redirect_uri={REDIRECTION_URI}\u0026response_type=code\n\n위 url로 리다이렉트를 하면 카카오 로그인 창이 뜹니다.\n\n로그인 창에 회원 정보를 입력하여 로그인하면 redirection url로 이동하고 url parameter로 code가 같이 넘어옵니다.\n\n### 허용 redirection url 설정하기\n\n위 코드를 가져오기 위한 url을 완성하기 위해선 KAKAO_APP_ID와 REDIRECTION_URI가 필요합니다.\n\nREDIRECTION_URI는 아래 화면에서 수정을 눌러 추가가 가능합니다.\n\n![](https://raw.githubusercontent.com/among-software/oauth-valid/master/statics/kakao_redirect_uri.png)\n\n\u003e 단 https://~:포트번호/path 까지 absolute url로 full path를 써주어야 합니다.\n\n### client id 찾기 \n\n요약 정보에서 Rest Api키 부분에 있는걸 쓰면 됩니다.\n\n![](https://raw.githubusercontent.com/among-software/oauth-valid/master/statics/kakao_app_id.png)\n\n## 서버 세팅하기\n### 코드 찾기 \n```javascript\n  function parseCode() {\n    let queryString = {};\n    window.location.search.substr(1)\n      .split(\"\u0026\")\n      .forEach((value, idx) =\u003e {\n        const set = value.split(\"=\");\n        queryString[set[0]] = set[1];\n      });\n    return queryString[\"code\"];\n  }\n```\n위와 같이 redirect된 url에 해당하 소스에 삽입하여 코드를 추출해낼 수 있습니다. 여기서 추출한 값을 서버로 전송해줍니다.\n### secret key 찾기\n\n카카오 로그인 \u003e 보안 탭에서 코드 부분에 있는 값을 쓰면 됩니다.\n\n![](https://raw.githubusercontent.com/among-software/oauth-valid/master/statics/kakao_secret.png)\n\n### access token 받아오기\n```python\nfrom oauth_valid.kakao import get_token\n\ntoken_res = get_token(KAKAO_APP_ID, REDIRECTION_URI, KAKAO_SECRET_KEY, CODE)\n```\n\n지금까지 찾아논 APP_IDD, REDIRECTION_URI, SECRET_KEY, CODE를 parameter로 넘겨줍니다.\n그러면 원하는 access token과 유효기간을 받을 수 있습니다!\n\n더 자세한 필드명과 도큐멘테이션은 \n[카카오 developer 문서](https://developers.kakao.com/docs/latest/ko/kakaologin/rest-api)\n를 참조해 주세요!\n\n[kakao 연동 예제 바로가기](https://github.com/among-software/oauth-valid/blob/master/examples/kakao.py)\n\n# Google\n\nUpdate soon","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaeval%2Foauth-valid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaeval%2Foauth-valid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaeval%2Foauth-valid/lists"}