{"id":18068378,"url":"https://github.com/themusharraf/fastapi-oauth2","last_synced_at":"2026-04-29T10:03:26.822Z","repository":{"id":259786688,"uuid":"879414574","full_name":"themusharraf/FastAPI-OAuth2","owner":"themusharraf","description":"FastAPI va token autentifikatsiyasi yordamida foydalanuvchilarni autentifikatsiya qilish","archived":false,"fork":false,"pushed_at":"2024-10-27T20:49:09.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T20:00:50.869Z","etag":null,"topics":["authentication","authorization","fastapi","oauth2"],"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/themusharraf.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":"2024-10-27T20:48:51.000Z","updated_at":"2024-10-27T20:50:51.000Z","dependencies_parsed_at":"2024-10-28T01:49:33.127Z","dependency_job_id":"5937761c-6fef-4985-aa58-b0cd26ffa4e3","html_url":"https://github.com/themusharraf/FastAPI-OAuth2","commit_stats":null,"previous_names":["themusharraf/fastapi-oauth2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/themusharraf/FastAPI-OAuth2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPI-OAuth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPI-OAuth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPI-OAuth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPI-OAuth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themusharraf","download_url":"https://codeload.github.com/themusharraf/FastAPI-OAuth2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPI-OAuth2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32420356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"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":["authentication","authorization","fastapi","oauth2"],"created_at":"2024-10-31T08:06:16.143Z","updated_at":"2026-04-29T10:03:26.788Z","avatar_url":"https://github.com/themusharraf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI OAuth2\n\n## Model\nBu kod `username` degan o'zgaruvchiga `str` yoki `None` qiymatlarini qabul qilish imkonini beradi. Keling, detallab tushuntirib beraman:\n\n```python\nusername: str or None = None\n```\nBu yerdagi koddagi har bir qismning ma'nosi:\n\n- username: O'zgaruvchi nomi.\n- `: str or None`: Bu \"type hint\" bo'lib, username o'zgaruvchisi str (string, ya'ni matn) yoki None qiymatini qabul qilishini bildiradi. str - matnni ifodalaydi, None esa qiymatning bo'sh yoki mavjud emasligini bildiradi.\n- `= None`: O'zgaruvchiga boshlang'ich qiymat sifatida None berilmoqda. Bu shuni anglatadiki, dastur ishga tushganda username o'zgaruvchisi None qiymatiga ega bo'ladi va agar kerak bo'lsa, keyinroq str tipidagi qiymat bilan yangilanishi mumkin.\nQisqacha, bu kodda username o'zgaruvchisi boshida None qiymatiga ega bo'lib, agar kerak bo'lsa, matn (str) qiymat bilan almashtirilishi mumkin.\n\n## Secret ket generate\n```bash\n# openssl rand - hex 32\n```\n\n## get password hash\n```python\npwd = get_password_hash('mrx1234')\nprint(pwd)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemusharraf%2Ffastapi-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemusharraf%2Ffastapi-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemusharraf%2Ffastapi-oauth2/lists"}