{"id":26061011,"url":"https://github.com/flavors/django-graphql-social-auth","last_synced_at":"2025-04-06T14:12:47.162Z","repository":{"id":28246244,"uuid":"117433304","full_name":"flavors/django-graphql-social-auth","owner":"flavors","description":"Python Social Auth support for Graphene Django","archived":false,"fork":false,"pushed_at":"2024-01-19T22:13:02.000Z","size":56,"stargazers_count":109,"open_issues_count":18,"forks_count":33,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T11:09:58.792Z","etag":null,"topics":["authentication","django","facebook","graphene","graphql","jwt","python-social-auth","social-auth","social-authentication","twitter"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/django-graphql-social-auth","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/flavors.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","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":"2018-01-14T13:39:24.000Z","updated_at":"2024-09-20T11:22:38.000Z","dependencies_parsed_at":"2024-06-18T22:52:16.994Z","dependency_job_id":"b6cb2f4a-0e2b-44be-8586-7461ecf17b04","html_url":"https://github.com/flavors/django-graphql-social-auth","commit_stats":{"total_commits":95,"total_committers":5,"mean_commits":19.0,"dds":0.0736842105263158,"last_synced_commit":"48dab0ed7828c50106ff0d139d6856caa9a0a00a"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavors%2Fdjango-graphql-social-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavors%2Fdjango-graphql-social-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavors%2Fdjango-graphql-social-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavors%2Fdjango-graphql-social-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavors","download_url":"https://codeload.github.com/flavors/django-graphql-social-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492565,"owners_count":20947545,"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","django","facebook","graphene","graphql","jwt","python-social-auth","social-auth","social-authentication","twitter"],"created_at":"2025-03-08T14:47:50.495Z","updated_at":"2025-04-06T14:12:47.127Z","avatar_url":"https://github.com/flavors.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django GraphQL Social Auth\n==========================\n\n|Pypi| |Wheel| |Build Status| |Codecov| |Code Climate|\n\n`Python Social Auth`_ support for `Django GraphQL`_\n\n.. _Django GraphQL: https://github.com/graphql-python/graphene-django\n\n\nDependencies\n------------\n\n* Python ≥ 3.4\n* Django ≥ 1.11\n\n\nInstallation\n------------\n\nInstall last stable version from Pypi.\n\n.. code:: sh\n\n    pip install django-graphql-social-auth\n\n\nSee the `documentation`_ for further guidance on setting *Python Social Auth*.\n\n.. _documentation: http://python-social-auth.readthedocs.io/en/latest/configuration/django.html\n\nAdd the ``SocialAuth`` mutation to your GraphQL schema.\n\n.. code:: python\n\n    import graphene\n    import graphql_social_auth\n\n\n    class Mutations(graphene.ObjectType):\n        social_auth = graphql_social_auth.SocialAuth.Field()\n\n`Session`_ authentication via *accessToken*.\n\n.. _Session: https://docs.djangoproject.com/en/2.0/topics/http/sessions/\n\n- ``provider``: provider name from `Authentication backend list`_.\n- ``accessToken``: third-party (Google, Facebook...) OAuth token obtained with any OAuth client.\n\n.. _Authentication backend list: https://github.com/flavors/django-graphql-social-auth/wiki/Authentication-backends\n\n.. code:: graphql\n\n    mutation SocialAuth($provider: String!, $accessToken: String!) {\n      socialAuth(provider: $provider, accessToken: $accessToken) {\n        social {\n          uid\n          extraData\n        }\n      }\n    }\n\n\nJSON Web Token (JWT)\n--------------------\n\nAuthentication solution based on `JSON Web Token`_.\n\n.. _JSON Web Token: https://jwt.io/\n\nInstall additional requirements.\n\n.. code:: sh\n\n    pip install 'django-graphql-social-auth[jwt]'\n\n\nAdd the ``SocialAuthJWT`` mutation to your GraphQL schema.\n\n.. code:: python\n\n    import graphene\n    import graphql_social_auth\n\n\n    class Mutations(graphene.ObjectType):\n        social_auth = graphql_social_auth.SocialAuthJWT.Field()\n\n\nAuthenticate via *accessToken* to obtain a JSON Web Token.\n\n.. code:: graphql\n\n    mutation SocialAuth($provider: String!, $accessToken: String!) {\n      socialAuth(provider: $provider, accessToken: $accessToken) {\n        social {\n          uid\n        }\n        token\n      }\n    }\n\n\nRelay\n-----\n\nComplete support for `Relay`_.\n\n.. _Relay: https://facebook.github.io/relay/\n\n.. code:: python\n\n    import graphene\n    import graphql_social_auth\n\n\n    class Mutations(graphene.ObjectType):\n        social_auth = graphql_social_auth.relay.SocialAuth.Field()\n\n``graphql_social_auth.relay.SocialAuthJWT.Field()`` for `JSON Web Token (JWT)`_ authentication.\n\n`Relay mutations`_ only accepts one argument named *input*:\n\n.. _Relay mutations: https://facebook.github.io/relay/graphql/mutations.htm\n\n.. code:: graphql\n\n    mutation SocialAuth($provider: String!, $accessToken: String!) {\n      socialAuth(input:{provider: $provider, accessToken: $accessToken}) {\n        social {\n          uid\n        }\n      }\n    }\n\n\nCustomizing\n-----------\n\nIf you want to customize the ``SocialAuth`` behavior, you'll need to customize the ``resolve()`` method on a subclass of ``SocialAuthMutation`` or ``.relay.SocialAuthMutation.``\n\n.. code:: python\n\n    import graphene\n    import graphql_social_auth\n\n\n    class SocialAuth(graphql_social_auth.SocialAuthMutation):\n        user = graphene.Field(UserType)\n\n        @classmethod\n        def resolve(cls, root, info, social, **kwargs):\n            return cls(user=social.user)\n\n\nAuthenticate via *accessToken* to obtain the *user id*.\n\n.. code:: graphql\n\n    mutation SocialAuth($provider: String!, $accessToken: String!) {\n      socialAuth(provider: $provider, accessToken: $accessToken) {\n        social {\n          uid\n        }\n        user {\n          id\n        }\n      }\n    }\n\n\nProject template\n----------------\n\nThere is a `Django project template`_ to start a demo project.\n\n.. _Django project template: https://github.com/ice-creams/graphql-social-auth-template\n\n----\n\nGracias `@omab`_ / `Python Social Auth`_.\n\n.. _@omab: https://github.com/omab\n.. _Python Social Auth: http://python-social-auth.readthedocs.io/\n\n\n.. |Pypi| image:: https://img.shields.io/pypi/v/django-graphql-social-auth.svg\n   :target: https://pypi.python.org/pypi/django-graphql-social-auth\n\n.. |Wheel| image:: https://img.shields.io/pypi/wheel/django-graphql-social-auth.svg\n   :target: https://pypi.python.org/pypi/django-graphql-social-auth\n\n.. |Build Status| image:: https://travis-ci.org/flavors/django-graphql-social-auth.svg?branch=master\n   :target: https://travis-ci.org/flavors/django-graphql-social-auth\n\n.. |Codecov| image:: https://img.shields.io/codecov/c/github/flavors/django-graphql-social-auth.svg\n   :target: https://codecov.io/gh/flavors/django-graphql-social-auth\n\n.. |Code Climate| image:: https://api.codeclimate.com/v1/badges/c579bcfde0fbb7f6334c/maintainability\n   :target: https://codeclimate.com/github/flavors/django-graphql-social-auth\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavors%2Fdjango-graphql-social-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavors%2Fdjango-graphql-social-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavors%2Fdjango-graphql-social-auth/lists"}