Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Aug 27, 2023
1 parent af24649 commit 5069505
Show file tree
Hide file tree
Showing 57 changed files with 154 additions and 154 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ska.contrib.django.ska.tests import create_admin_user, generate_data

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__all__ = ("Command",)

Expand Down
14 changes: 7 additions & 7 deletions src/ska/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"sign_url",
"signature_to_dict",
"validate_signed_request_data",
"extract_signed_request_data",
"Signature",
"RequestHelper",
"SignatureValidationResult",
"HMACMD5Signature",
"HMACSHA224Signature",
"HMACSHA256Signature",
"HMACSHA384Signature",
"HMACSHA512Signature",
"RequestHelper",
"Signature",
"SignatureValidationResult",
"extract_signed_request_data",
"sign_url",
"signature_to_dict",
"validate_signed_request_data",
)
6 changes: 3 additions & 3 deletions src/ska/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from .helpers import sorted_urlencode

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"SignatureValidationResult",
"AbstractSignature",
"SignatureValidationResult",
)

# ****************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from .models import Signature

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("SignatureAdmin",)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/apps.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.apps import AppConfig

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("Config",)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from .default_backends import *

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"BaseSkaAuthenticationBackend",
"SkaAuthenticationBackend",
Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
LOGGER = logging.getLogger(__file__)

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("BaseSkaAuthenticationBackend",)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/backends/constance_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from .base import BaseSkaAuthenticationBackend

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("SkaAuthenticationConstanceBackend",)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/backends/default_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from .base import BaseSkaAuthenticationBackend

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("SkaAuthenticationBackend",)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from ....contrib.django.ska import defaults

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("get_setting",)


Expand Down
10 changes: 5 additions & 5 deletions src/ska/contrib/django/ska/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@
)

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"BaseValidateSignedRequest",
"m_validate_signed_request",
"MethodValidateSignedRequest",
"sign_url",
"SignAbsoluteURL",
"validate_signed_request",
"ValidateSignedRequest",
"m_validate_signed_request",
"sign_url",
"validate_signed_request",
)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
from ska.gettext import _

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"AUTH_USER",
"DB_PERFORM_SIGNATURE_CHECK",
Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/http.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.http import HttpResponseForbidden

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("HttpResponseUnauthorized",)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
from .......signatures import Signature

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"sign_url",
"provider_sign_url",
"sign_url",
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from .default_permissions import *

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"AbstractSignedRequestRequired",
"BaseSignedRequestRequired",
"BaseProviderSignedRequestRequired",
"SignedRequestRequired",
"BaseSignedRequestRequired",
"ProviderSignedRequestRequired",
"SignedRequestRequired",
)
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
from ....utils import get_provider_data

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"AbstractSignedRequestRequired",
"BaseSignedRequestRequired",
"BaseProviderSignedRequestRequired",
"BaseSignedRequestRequired",
)

LOGGER = logging.getLogger(__file__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from .base import BaseProviderSignedRequestRequired, BaseSignedRequestRequired

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"ConstanceSignedRequestRequired",
"ConstanceProviderSignedRequestRequired",
"ConstanceSignedRequestRequired",
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from .base import BaseProviderSignedRequestRequired, BaseSignedRequestRequired

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"SignedRequestRequired",
"ProviderSignedRequestRequired",
"SignedRequestRequired",
)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/integration/drf/urls/jwt_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from ..views import ObtainJSONWebTokenView

__author__ = "Artur Barseghyan"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("urlpatterns",)


Expand Down
10 changes: 5 additions & 5 deletions src/ska/contrib/django/ska/integration/drf/views/jwt_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
from rest_framework.views import APIView
from rest_framework_jwt.settings import api_settings

__author__ = "Artur Barseghyan"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("ObtainJSONWebTokenView",)

jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
jwt_decode_handler = api_settings.JWT_DECODE_HANDLER
jwt_get_username_from_payload = api_settings.JWT_PAYLOAD_GET_USERNAME_HANDLER

__author__ = "Artur Barseghyan"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__all__ = ("ObtainJSONWebTokenView",)


class ObtainJSONWebTokenView(APIView):
"""Obtain a JSON web token."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from ska.contrib.django.ska.utils import purge_signature_data

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("Command",)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from django.utils.translation import gettext_lazy as _

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("Signature",)


Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
from .conf import get_setting

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"AUTH_USER",
"DB_PERFORM_SIGNATURE_CHECK",
Expand Down
6 changes: 3 additions & 3 deletions src/ska/contrib/django/ska/templatetags/ska_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
from ..settings import PROVIDERS, SECRET_KEY

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"sign_url",
"provider_sign_url",
"sign_url",
)


Expand Down
14 changes: 7 additions & 7 deletions src/ska/contrib/django/ska/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
import pytest

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = (
"change_date",
"create_admin_user",
"generate_data",
"LOG_INFO",
"log_info",
"NUM_ITEMS",
"PROJECT_DIR",
"project_dir",
"SKA_TEST_USER_PASSWORD",
"SKA_TEST_USER_USERNAME",
"change_date",
"create_admin_user",
"generate_data",
"log_info",
"project_dir",
)

LOGGER = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from .helpers import log_info

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("SkaAuthenticationConstanceBackendTest",)

# *********************************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/ska/contrib/django/ska/tests/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from .helpers import NUM_ITEMS, generate_data, log_info

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("SkaDecoratorsTest",)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from .helpers import log_info

__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__copyright__ = "2013-2023 Artur Barseghyan"
__license__ = "GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("SkaAuthenticationBackendTest",)

logger = logging.getLogger(__name__)
Expand Down
Loading

0 comments on commit 5069505

Please sign in to comment.