{"id":13705485,"url":"https://github.com/ahopkins/sanic-jwt","last_synced_at":"2025-04-11T03:32:52.827Z","repository":{"id":23632636,"uuid":"99481053","full_name":"ahopkins/sanic-jwt","owner":"ahopkins","description":"Authentication, JWT, and permission scoping for Sanic","archived":false,"fork":false,"pushed_at":"2024-10-13T21:58:06.000Z","size":816,"stargazers_count":244,"open_issues_count":40,"forks_count":53,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-03T19:56:46.196Z","etag":null,"topics":["access-token","authentication","jwt","permissions","python","refresh-token","sanic","scopes"],"latest_commit_sha":null,"homepage":"http://sanic-jwt.readthedocs.io","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/ahopkins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["ahopkins"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-08-06T11:06:22.000Z","updated_at":"2025-03-11T07:41:25.000Z","dependencies_parsed_at":"2024-01-14T21:08:35.512Z","dependency_job_id":"63e17de5-7afa-4c09-accc-0f3b026c5289","html_url":"https://github.com/ahopkins/sanic-jwt","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahopkins%2Fsanic-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahopkins%2Fsanic-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahopkins%2Fsanic-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahopkins%2Fsanic-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahopkins","download_url":"https://codeload.github.com/ahopkins/sanic-jwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335502,"owners_count":21086603,"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":["access-token","authentication","jwt","permissions","python","refresh-token","sanic","scopes"],"created_at":"2024-08-02T22:00:42.321Z","updated_at":"2025-04-11T03:32:52.795Z","avatar_url":"https://github.com/ahopkins.png","language":"Python","funding_links":["https://github.com/sponsors/ahopkins"],"categories":["Python","Extensions"],"sub_categories":["Authentication"],"readme":"# Sanic JWT\n\n[![Latest PyPI version](https://img.shields.io/pypi/v/sanic-jwt.svg)](https://pypi.python.org/pypi/sanic-jwt)\n[![Python versions](https://img.shields.io/pypi/pyversions/sanic-jwt.svg)](https://pypi.python.org/pypi/sanic-jwt)\n[![Version status](https://img.shields.io/pypi/status/sanic-jwt.svg)](https://pypi.python.org/pypi/sanic-jwt)\n[![MIT License](https://img.shields.io/pypi/l/sanic-jwt.svg)](https://raw.githubusercontent.com/ahopkins/sanic-jwt/dev/LICENSE)\n\n[![Build Status](https://travis-ci.org/ahopkins/sanic-jwt.svg?branch=master)](https://travis-ci.org/ahopkins/sanic-jwt)\n[![Documentation](https://readthedocs.org/projects/sanic-jwt/badge/?version=latest)](http://sanic-jwt.readthedocs.io/en/latest/?badge=latest)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9727756ffccd45f7bc5ad6292596e03d)](https://www.codacy.com/app/ahopkins/sanic-jwt?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ahopkins/sanic-jwt\u0026amp;utm_campaign=Badge_Grade)\n[![Test Coverage](https://codecov.io/gh/ahopkins/sanic-jwt/branch/dev/graph/badge.svg)](https://codecov.io/gh/ahopkins/sanic-jwt)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n\nSanic JWT adds authentication protection and endpoints to [Sanic].\n\nIt is both **easy** to get up and running, and **extensible** for the\ndeveloper. It can act to **protect endpoints** and also provide **authentication scoping**, all wrapped into a nice [JWT].\n\n[Read the documentation](http://sanic-jwt.rtfd.io/) | [View the source code](https://github.com/ahopkins/sanic-jwt/)\n\n------\n\n**What do I do?**\n\nIt's easy: (1) install, (2) initialize, and (3) authenticate.\n\n**Install:**\n\n```\npip install sanic-jwt\n```\n\n  [Sanic]: http://sanic.readthedocs.io\n  [JWT]: https://jwt.io\n\n**Initialize:**\n\n```python\nfrom sanic import Sanic\nfrom sanic_jwt import Initialize\n\ndef my_authenticate(request, *args, **kwargs):\n    ...\n\napp = Sanic()\nInitialize(\n    app,\n    authenticate=my_authenticate\n)\n```\n\n**Authenticate:**\n\n    http://localhost/auth\n\n------\n\n**Can I customize it?**\n\nDefinitely! Sanic JWT is made to allow developers to customize the operation to fit their needs. [Check out the documentation](http://sanic-jwt.rtfd.io/) to learn how.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahopkins%2Fsanic-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahopkins%2Fsanic-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahopkins%2Fsanic-jwt/lists"}