{"id":15024943,"url":"https://github.com/michaelbukachi/flask-authlib-client","last_synced_at":"2026-01-05T05:03:27.306Z","repository":{"id":57430129,"uuid":"230799905","full_name":"michaelbukachi/flask-authlib-client","owner":"michaelbukachi","description":"A flask extension to help validate tokens from a different resource server.","archived":false,"fork":false,"pushed_at":"2020-01-16T15:54:19.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T20:33:32.329Z","etag":null,"topics":["authlib","flask"],"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/michaelbukachi.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}},"created_at":"2019-12-29T20:29:03.000Z","updated_at":"2020-01-16T15:54:21.000Z","dependencies_parsed_at":"2022-08-26T02:43:01.446Z","dependency_job_id":null,"html_url":"https://github.com/michaelbukachi/flask-authlib-client","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/michaelbukachi%2Fflask-authlib-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbukachi%2Fflask-authlib-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbukachi%2Fflask-authlib-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbukachi%2Fflask-authlib-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelbukachi","download_url":"https://codeload.github.com/michaelbukachi/flask-authlib-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026005,"owners_count":20549067,"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":["authlib","flask"],"created_at":"2024-09-24T20:01:15.253Z","updated_at":"2026-01-05T05:03:27.301Z","avatar_url":"https://github.com/michaelbukachi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask-Authlib-Client\n\n[![Build Status](https://travis-ci.org/michaelbukachi/flask-authlib-client.svg?branch=master)](https://travis-ci.org/michaelbukachi/flask-authlib-client)\n\n\nFlask-Authlib-Client is a Flask extension that adds support for separate authorization/resource servers. It extends\nauthlib's flask integration. This extension is heavily inspired by \n[django-oauth-toolkit](https://django-oauth-toolkit.readthedocs.io/en/latest/)\n\n### Install\n\n```bash\n$ pip install Flask-Authlib-Client\n```\n\n### Usage\n```python\nfrom flask import Flask\nfrom authlib.integrations.flask_client import OAuth\nfrom flask_authlib_client import AuthClient\n\n\nclass Config:\n    # Other configurations\n    RESOURCE_SERVER_INTROSPECTION_URL = 'http://someurl'\n    RESOURCE_SERVER_INTROSPECTION_CREDENTIALS = ('test', 'test') # Client id and secret to authorization server\n\n\n\napp = Flask(__name__)\napp.config.from_object(Config)\noauth = OAuth(app)\nac = AuthClient(app, oauth)\n\n# protect your endpoints\n@app.route('/')\n@ac.require_oauth()\ndef example():\n    return 'Ok'\n\n@app.route('/')\n@ac.require_oauth('home') # Specify scope\ndef example():\n    return 'Ok'\n```\n\n\n### Issues\nFeel free to raise any issue [here](https://github.com/michaelbukachi/flask-authlib-client/issues).\n\n### Contributions\nAll contributions are welcome:smile:.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelbukachi%2Fflask-authlib-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelbukachi%2Fflask-authlib-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelbukachi%2Fflask-authlib-client/lists"}