{"id":51169225,"url":"https://github.com/wikimedia/tool-my-first-flask-oauth-tool","last_synced_at":"2026-06-26T23:00:48.130Z","repository":{"id":66109855,"uuid":"80960277","full_name":"wikimedia/tool-my-first-flask-oauth-tool","owner":"wikimedia","description":"Mirror of https://phabricator.wikimedia.org/source/tool-my-first-flask-oauth-tool/","archived":false,"fork":false,"pushed_at":"2026-06-25T23:55:26.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-06-26T01:13:16.819Z","etag":null,"topics":["flask","oauth","python3","tool-labs","tutorial"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wikimedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-02-05T01:18:22.000Z","updated_at":"2026-06-25T23:55:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa70e2b1-2c5c-47f4-b4f9-f32b6e042760","html_url":"https://github.com/wikimedia/tool-my-first-flask-oauth-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wikimedia/tool-my-first-flask-oauth-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Ftool-my-first-flask-oauth-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Ftool-my-first-flask-oauth-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Ftool-my-first-flask-oauth-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Ftool-my-first-flask-oauth-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wikimedia","download_url":"https://codeload.github.com/wikimedia/tool-my-first-flask-oauth-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Ftool-my-first-flask-oauth-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34835779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flask","oauth","python3","tool-labs","tutorial"],"created_at":"2026-06-26T23:00:46.930Z","updated_at":"2026-06-26T23:00:48.124Z","avatar_url":"https://github.com/wikimedia.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"My first Flask OAuth tool\n=========================\n\nThis git repository contains the source code for a basic Python webservice\nbuilt using the Flask framework. It shows how to use the `mwoath` library to\nmanage OAuth authentication with a MediaWiki server.\n\nDeploy on Toolforge\n-------------------\nSee https://wikitech.wikimedia.org/wiki/Help:Toolforge/My_first_Flask_OAuth_tool\nfor a detailed tutorial describing the full process of creating a tool account\nand running this tool.\n\n```\n$ ssh login.toolforge.org\n$ become $TOOL_NAME\n$ cat \u003e $HOME/service.template \u003c\u003c EOF\nbackend: kubernetes\ntype: python3.7\ncanonical: true\nEOF\n$ mkdir -p $HOME/www/python\n$ git clone https://gitlab.wikimedia.org/toolforge-repos/my-first-flask-oauth-tool.git \\\n  $HOME/www/python/src\n$ touch $HOME/www/python/src/config.yaml\n$ chmod u=rw,go= $HOME/www/python/src/config.yaml\n$ cat \u003e $HOME/www/python/src/config.yaml \u003c\u003c EOF\nSESSION_COOKIE_PATH: /$TOOL_NAME\nSECRET_KEY: $(python -c \"import os; print repr(os.urandom(24))\")\nCONSUMER_KEY: $KEY_YOU_GOT_FROM_OAUTH_REGISTRATION\nCONSUMER_SECRET: $SECRET_YOU_GOT_FROM_OAUTH_REGISTRATION\nEOF\n$ webservice shell\n$ python3 -m venv $HOME/www/python/venv\n$ source $HOME/www/python/venv/bin/activate\n$ pip install --upgrade pip\n$ pip install -r $HOME/www/python/src/requirements.txt\n$ exit\n$ webservice start\n```\n\nLicense\n-------\n[GNU GPLv3+](//www.gnu.org/copyleft/gpl.html \"GNU GPLv3+\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimedia%2Ftool-my-first-flask-oauth-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwikimedia%2Ftool-my-first-flask-oauth-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimedia%2Ftool-my-first-flask-oauth-tool/lists"}