{"id":16316855,"url":"https://github.com/barqawiz/fastapi_twitter_auth","last_synced_at":"2026-05-03T05:41:21.943Z","repository":{"id":79676667,"uuid":"295026906","full_name":"Barqawiz/FastAPI_Twitter_Auth","owner":"Barqawiz","description":"Create twitter login API using FastAPI.","archived":false,"fork":false,"pushed_at":"2020-09-16T23:31:12.000Z","size":105,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T15:57:12.145Z","etag":null,"topics":["fastapi","fastapi-twitter","outh","twitter-api"],"latest_commit_sha":null,"homepage":"","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/Barqawiz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-12T21:11:52.000Z","updated_at":"2023-06-02T08:19:53.000Z","dependencies_parsed_at":"2023-05-25T07:45:43.396Z","dependency_job_id":null,"html_url":"https://github.com/Barqawiz/FastAPI_Twitter_Auth","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.16666666666666663","last_synced_commit":"5eab906f12842f0bd647de3c753e8cdffeaca8d5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Barqawiz/FastAPI_Twitter_Auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barqawiz%2FFastAPI_Twitter_Auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barqawiz%2FFastAPI_Twitter_Auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barqawiz%2FFastAPI_Twitter_Auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barqawiz%2FFastAPI_Twitter_Auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Barqawiz","download_url":"https://codeload.github.com/Barqawiz/FastAPI_Twitter_Auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barqawiz%2FFastAPI_Twitter_Auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32559716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T03:21:47.309Z","status":"ssl_error","status_checked_at":"2026-05-03T03:21:43.884Z","response_time":103,"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":["fastapi","fastapi-twitter","outh","twitter-api"],"created_at":"2024-10-10T22:05:46.540Z","updated_at":"2026-05-03T05:41:21.907Z","avatar_url":"https://github.com/Barqawiz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Twitter Auth\n Create twitter authentication API using FastAPI.\n\n## Introduction\nFast API template for social authentication using twitter API. This API can be used as python backend for mobiles and websites login and registration using twitter.\n\n\u003cimg width=\"580px\" src=\"resource/twitter_api.png\" alt=\"[ Available Functions ]\"/\u003e\n\n\n## Requirements\nInstall the application requirements using following command:\n```\npip install -r requirements.txt\n```\n\n## Setup Instructions\n1. Install the requirements.\n2. Create twitter application and fill the configuration keys inside ```Config.py```.\n\n\u003cimg width=\"320px\" src=\"resource/config.png\" alt=\"[ Available Functions ]\"/\u003e\n\n3. Run the API using python.\n```\ncd social_api\npython main.py\n```\n\n## How to use\n### Twitter Authentication\nFrom your client application:\n1. Call **request_token** function with a callback URL to get outh token .\n   * Make sure the callback URL defined in the twitter application.\n2. Redirect the user to twitter authentication page with outh token parameter.\n\nhttps://api.twitter.com/oauth/authenticate?oauth_token=\u003ctoken_code\u003e\n\n3. Twitter will redirect the user to the callback URL with the login verifier.\n4. Use the login verifier from twitter to perform the login functionality using **access_token** function.\n   * This function will return the user identification details such as user id and screen name.\n\n\nLicense\n-------\n    The MIT License (MIT)\n\n    Copyright (c) 2017 Ahmad Barqawi (github.com/Barqawiz)\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarqawiz%2Ffastapi_twitter_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarqawiz%2Ffastapi_twitter_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarqawiz%2Ffastapi_twitter_auth/lists"}