summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 19:33:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 19:33:13 +0000
commit83ac627e2ffffb00b9e663d0287a1ba4ffe6391c (patch)
treeadf7c3dd1b2ea8d80c6fe048cdd963f8eaffacdd
parentf2b72b3549728ed68dde130f6ba9f80aab168ad8 (diff)
automatic import of python-django-graphql-jwt
-rw-r--r--.gitignore1
-rw-r--r--python-django-graphql-jwt.spec313
-rw-r--r--sources1
3 files changed, 315 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d62ca74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-graphql-jwt-0.3.4.tar.gz
diff --git a/python-django-graphql-jwt.spec b/python-django-graphql-jwt.spec
new file mode 100644
index 0000000..f18a64f
--- /dev/null
+++ b/python-django-graphql-jwt.spec
@@ -0,0 +1,313 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-graphql-jwt
+Version: 0.3.4
+Release: 1
+Summary: JSON Web Token for Django GraphQL.
+License: MIT
+URL: https://github.com/flavors/django-graphql-jwt
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cd/8f/1bf2b7dc8b32b257e5d988820242562bda4318c00abed3d95fc37ca986ca/django-graphql-jwt-0.3.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+Requires: python3-graphene
+Requires: python3-graphene-django
+Requires: python3-PyJWT
+
+%description
+<p align="center">
+ <a href="https://django-graphql-jwt.domake.io/"><img width="420px" src="https://django-graphql-jwt.domake.io/_static/logo.png" alt='Django GraphQL JWT'></a>
+</p>
+
+<p align="center">
+ JSON Web Token authentication for Django GraphQL.
+ <br>Fantastic <strong>documentation</strong> is available at <a href="https://django-graphql-jwt.domake.io">https://django-graphql-jwt.domake.io</a>.
+</p>
+<p align="center">
+ <a href="https://github.com/flavors/django-graphql-jwt/actions">
+ <img src="https://github.com/flavors/django-graphql-jwt/actions/workflows/test-suite.yml/badge.svg" alt="Test">
+ </a>
+ <a href="https://codecov.io/gh/flavors/django-graphql-jwt">
+ <img src="https://img.shields.io/codecov/c/github/flavors/django-graphql-jwt?color=%2334D058" alt="Coverage">
+ </a>
+ <a href="https://www.codacy.com/gh/flavors/django-graphql-jwt/dashboard">
+ <img src="https://app.codacy.com/project/badge/Grade/4f9fd439fbc74be88a215b9ed2abfcf9" alt="Codacy">
+ </a>
+ <a href="https://pypi.python.org/pypi/django-graphql-jwt">
+ <img src="https://img.shields.io/pypi/v/django-graphql-jwt.svg" alt="Package version">
+ </a>
+</p>
+
+## Installation
+
+Install last stable version from Pypi:
+
+```sh
+pip install django-graphql-jwt
+```
+
+Add `AuthenticationMiddleware` middleware to your *MIDDLEWARE* settings:
+
+
+```py
+MIDDLEWARE = [
+ # ...
+ "django.contrib.auth.middleware.AuthenticationMiddleware",
+ # ...
+]
+```
+
+Add `JSONWebTokenMiddleware` middleware to your *GRAPHENE* settings:
+
+```py
+GRAPHENE = {
+ "SCHEMA": "mysite.myschema.schema",
+ "MIDDLEWARE": [
+ "graphql_jwt.middleware.JSONWebTokenMiddleware",
+ ],
+}
+```
+
+Add `JSONWebTokenBackend` backend to your *AUTHENTICATION_BACKENDS*:
+
+```py
+AUTHENTICATION_BACKENDS = [
+ "graphql_jwt.backends.JSONWebTokenBackend",
+ "django.contrib.auth.backends.ModelBackend",
+]
+```
+
+## Schema
+
+Add *django-graphql-jwt* mutations to the root schema:
+
+```py
+import graphene
+import graphql_jwt
+
+
+class Mutation(graphene.ObjectType):
+ token_auth = graphql_jwt.ObtainJSONWebToken.Field()
+ verify_token = graphql_jwt.Verify.Field()
+ refresh_token = graphql_jwt.Refresh.Field()
+
+
+schema = graphene.Schema(mutation=Mutation)
+```
+
+
+%package -n python3-django-graphql-jwt
+Summary: JSON Web Token for Django GraphQL.
+Provides: python-django-graphql-jwt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-graphql-jwt
+<p align="center">
+ <a href="https://django-graphql-jwt.domake.io/"><img width="420px" src="https://django-graphql-jwt.domake.io/_static/logo.png" alt='Django GraphQL JWT'></a>
+</p>
+
+<p align="center">
+ JSON Web Token authentication for Django GraphQL.
+ <br>Fantastic <strong>documentation</strong> is available at <a href="https://django-graphql-jwt.domake.io">https://django-graphql-jwt.domake.io</a>.
+</p>
+<p align="center">
+ <a href="https://github.com/flavors/django-graphql-jwt/actions">
+ <img src="https://github.com/flavors/django-graphql-jwt/actions/workflows/test-suite.yml/badge.svg" alt="Test">
+ </a>
+ <a href="https://codecov.io/gh/flavors/django-graphql-jwt">
+ <img src="https://img.shields.io/codecov/c/github/flavors/django-graphql-jwt?color=%2334D058" alt="Coverage">
+ </a>
+ <a href="https://www.codacy.com/gh/flavors/django-graphql-jwt/dashboard">
+ <img src="https://app.codacy.com/project/badge/Grade/4f9fd439fbc74be88a215b9ed2abfcf9" alt="Codacy">
+ </a>
+ <a href="https://pypi.python.org/pypi/django-graphql-jwt">
+ <img src="https://img.shields.io/pypi/v/django-graphql-jwt.svg" alt="Package version">
+ </a>
+</p>
+
+## Installation
+
+Install last stable version from Pypi:
+
+```sh
+pip install django-graphql-jwt
+```
+
+Add `AuthenticationMiddleware` middleware to your *MIDDLEWARE* settings:
+
+
+```py
+MIDDLEWARE = [
+ # ...
+ "django.contrib.auth.middleware.AuthenticationMiddleware",
+ # ...
+]
+```
+
+Add `JSONWebTokenMiddleware` middleware to your *GRAPHENE* settings:
+
+```py
+GRAPHENE = {
+ "SCHEMA": "mysite.myschema.schema",
+ "MIDDLEWARE": [
+ "graphql_jwt.middleware.JSONWebTokenMiddleware",
+ ],
+}
+```
+
+Add `JSONWebTokenBackend` backend to your *AUTHENTICATION_BACKENDS*:
+
+```py
+AUTHENTICATION_BACKENDS = [
+ "graphql_jwt.backends.JSONWebTokenBackend",
+ "django.contrib.auth.backends.ModelBackend",
+]
+```
+
+## Schema
+
+Add *django-graphql-jwt* mutations to the root schema:
+
+```py
+import graphene
+import graphql_jwt
+
+
+class Mutation(graphene.ObjectType):
+ token_auth = graphql_jwt.ObtainJSONWebToken.Field()
+ verify_token = graphql_jwt.Verify.Field()
+ refresh_token = graphql_jwt.Refresh.Field()
+
+
+schema = graphene.Schema(mutation=Mutation)
+```
+
+
+%package help
+Summary: Development documents and examples for django-graphql-jwt
+Provides: python3-django-graphql-jwt-doc
+%description help
+<p align="center">
+ <a href="https://django-graphql-jwt.domake.io/"><img width="420px" src="https://django-graphql-jwt.domake.io/_static/logo.png" alt='Django GraphQL JWT'></a>
+</p>
+
+<p align="center">
+ JSON Web Token authentication for Django GraphQL.
+ <br>Fantastic <strong>documentation</strong> is available at <a href="https://django-graphql-jwt.domake.io">https://django-graphql-jwt.domake.io</a>.
+</p>
+<p align="center">
+ <a href="https://github.com/flavors/django-graphql-jwt/actions">
+ <img src="https://github.com/flavors/django-graphql-jwt/actions/workflows/test-suite.yml/badge.svg" alt="Test">
+ </a>
+ <a href="https://codecov.io/gh/flavors/django-graphql-jwt">
+ <img src="https://img.shields.io/codecov/c/github/flavors/django-graphql-jwt?color=%2334D058" alt="Coverage">
+ </a>
+ <a href="https://www.codacy.com/gh/flavors/django-graphql-jwt/dashboard">
+ <img src="https://app.codacy.com/project/badge/Grade/4f9fd439fbc74be88a215b9ed2abfcf9" alt="Codacy">
+ </a>
+ <a href="https://pypi.python.org/pypi/django-graphql-jwt">
+ <img src="https://img.shields.io/pypi/v/django-graphql-jwt.svg" alt="Package version">
+ </a>
+</p>
+
+## Installation
+
+Install last stable version from Pypi:
+
+```sh
+pip install django-graphql-jwt
+```
+
+Add `AuthenticationMiddleware` middleware to your *MIDDLEWARE* settings:
+
+
+```py
+MIDDLEWARE = [
+ # ...
+ "django.contrib.auth.middleware.AuthenticationMiddleware",
+ # ...
+]
+```
+
+Add `JSONWebTokenMiddleware` middleware to your *GRAPHENE* settings:
+
+```py
+GRAPHENE = {
+ "SCHEMA": "mysite.myschema.schema",
+ "MIDDLEWARE": [
+ "graphql_jwt.middleware.JSONWebTokenMiddleware",
+ ],
+}
+```
+
+Add `JSONWebTokenBackend` backend to your *AUTHENTICATION_BACKENDS*:
+
+```py
+AUTHENTICATION_BACKENDS = [
+ "graphql_jwt.backends.JSONWebTokenBackend",
+ "django.contrib.auth.backends.ModelBackend",
+]
+```
+
+## Schema
+
+Add *django-graphql-jwt* mutations to the root schema:
+
+```py
+import graphene
+import graphql_jwt
+
+
+class Mutation(graphene.ObjectType):
+ token_auth = graphql_jwt.ObtainJSONWebToken.Field()
+ verify_token = graphql_jwt.Verify.Field()
+ refresh_token = graphql_jwt.Refresh.Field()
+
+
+schema = graphene.Schema(mutation=Mutation)
+```
+
+
+%prep
+%autosetup -n django-graphql-jwt-0.3.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-django-graphql-jwt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..4b8c408
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2f5418d499d9d5db1fae3920cb019e21 django-graphql-jwt-0.3.4.tar.gz