fixup! wip introduce add-in endpoints and views

This commit is contained in:
lebaudantoine
2026-03-16 15:27:51 +01:00
parent 3a63b1e410
commit 768b983f8d
@@ -221,10 +221,16 @@ class AddonsJWTAuthentication(BaseJWTAuthentication):
Tokens must include user_id to identify the authenticated user. Tokens must include user_id to identify the authenticated user.
""" """
secret_key = settings.ADDONS_JWT_SECRET_KEY def __init__(self):
algorithm = settings.ADDONS_JWT_ALG """Initialize authentication backend with application JWT settings from Django settings."""
issuer = settings.ADDONS_JWT_ISSUER super().__init__(
audience = settings.ADDONS_JWT_AUDIENCE secret_key=settings.ADDONS_JWT_SECRET_KEY,
algorithm=settings.ADDONS_JWT_ALG,
issuer=settings.ADDONS_JWT_ISSUER,
audience=settings.ADDONS_JWT_AUDIENCE,
expiration_seconds=settings.ADDONS_JWT_EXPIRATION_SECONDS,
token_type=settings.ADDONS_JWT_TOKEN_TYPE,
)
class ResourceServerBackend(LaSuiteBackend): class ResourceServerBackend(LaSuiteBackend):