{"id":13814224,"url":"https://github.com/idlesign/django-oauthost","last_synced_at":"2025-09-01T12:40:41.910Z","repository":{"id":1796500,"uuid":"2720477","full_name":"idlesign/django-oauthost","owner":"idlesign","description":"Reusable application for Django, introducing OAuth2 server functionality.","archived":false,"fork":false,"pushed_at":"2022-02-04T12:50:22.000Z","size":170,"stargazers_count":25,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-05T17:17:25.540Z","etag":null,"topics":["authentication","authorization","django","oauth2","python"],"latest_commit_sha":null,"homepage":"https://github.com/idlesign/django-oauthost","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sararob/live-coding","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idlesign.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-06T14:47:51.000Z","updated_at":"2023-04-19T11:08:22.000Z","dependencies_parsed_at":"2022-07-09T09:16:16.854Z","dependency_job_id":null,"html_url":"https://github.com/idlesign/django-oauthost","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/idlesign/django-oauthost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-oauthost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-oauthost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-oauthost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-oauthost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idlesign","download_url":"https://codeload.github.com/idlesign/django-oauthost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-oauthost/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262351607,"owners_count":23297633,"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":["authentication","authorization","django","oauth2","python"],"created_at":"2024-08-04T04:01:47.693Z","updated_at":"2025-06-27T23:33:18.031Z","avatar_url":"https://github.com/idlesign.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"django-oauthost\n===============\nhttp://github.com/idlesign/django-oauthost\n\n.. image:: https://img.shields.io/pypi/v/django-oauthost.svg\n    :target: https://pypi.python.org/pypi/django-oauthost\n\n.. image:: https://img.shields.io/pypi/l/django-oauthost.svg\n    :target: https://pypi.python.org/pypi/django-oauthost\n\n.. image:: https://img.shields.io/coveralls/idlesign/django-oauthost/master.svg\n    :target: https://coveralls.io/r/idlesign/django-oauthost\n\n\nWhat's that\n-----------\n\n*Reusable application for Django to protect your apps with OAuth 2.0.*\n\nIt allows to guard your application views with OAuth 2.0 in quite a trivial way.\n\n1. Register your client using Django Admin or API:\n\n.. code-block:: python\n\n    from oauthost.toolbox import register_client\n\n    ...\n\n    # Define some scopes to restrict our client to (if required).\n    my_scopes = ['polls:vote']\n\n    # `user` might be `request.user` if in a view.\n    register_client('My OAuth Client', 'my_client',\n                    'http://someurl.com/myclient/', user, scopes_list=my_scopes)\n\n    ...\n\n2. Decorate your views with `oauth_required` (suppose in `polls.views`):\n\n.. code-block:: python\n\n    from oauthost.decorators import oauth_required\n\n    @oauth_required(scope_auto=True)\n    def vote(request, poll_id, variant_id):\n        ...\n\n\n3. Attach `oauthost.urls` to project `urls` (in `urls.py`):\n\n.. code-block:: python\n\n        from oauthost.urls import urlpatterns as oauthost_urlpatterns\n\n        urlpatterns = ...  # Your actual urlpatterns are ommited.\n\n        urlpatterns += oauthost_urlpatterns\n\n\nNow authorization endpoint is available at `{ BASE_URL }auth/` and token endpoint is available at `{ BASE_URL }token/`.\n\nThat's all for **oauthost**, connect using your client.\n\nMore information is available, read the docs!\n\n\nDocumentation\n-------------\n\nhttp://django-oauthost.readthedocs.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fdjango-oauthost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidlesign%2Fdjango-oauthost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fdjango-oauthost/lists"}