diff --git a/src/linked_services/__about__.py b/src/linked_services/__about__.py index c72f090..11f4374 100644 --- a/src/linked_services/__about__.py +++ b/src/linked_services/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2024-present jefer94 # # SPDX-License-Identifier: LGPL-3.0-or-later -__version__ = "1.1.2" +__version__ = "1.1.3" diff --git a/src/linked_services/rest_framework/types.py b/src/linked_services/rest_framework/types.py index b56378e..017260a 100644 --- a/src/linked_services/rest_framework/types.py +++ b/src/linked_services/rest_framework/types.py @@ -1,3 +1,5 @@ +import uuid + from adrf.requests import AsyncRequest as BaseAsyncRequest from django.contrib.auth.models import User from django.http.request import HttpRequest as BaseHttpRequest @@ -17,3 +19,37 @@ def __init__(self, *args, **kwargs): def get_user() -> User | None: pass + + +class LinkedToken: + def __init__(self, *args, **kwargs): + raise Exception("This class cannot be instantiated") + + sub: int | str | uuid.UUID + iss: str + app: str + aud: str + exp: float + iat: float + typ: str + + +class LinkedApp: + def __init__(self, *args, **kwargs): + raise Exception("This class cannot be instantiated") + + id: int | str | uuid.UUID + private_key: bytes + public_key: bytes | None + algorithm: str + strategy: str + schema: str + schema: str + require_an_agreement: bool + webhook_url: float + redirect_url: float + app_url: float + + +class LinkedApplication(LinkedApp): + pass