mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-04 07:57:41 +00:00
fixup! wip introduce add-in endpoints and views
This commit is contained in:
@@ -221,10 +221,16 @@ class AddonsJWTAuthentication(BaseJWTAuthentication):
|
||||
Tokens must include user_id to identify the authenticated user.
|
||||
"""
|
||||
|
||||
secret_key = settings.ADDONS_JWT_SECRET_KEY
|
||||
algorithm = settings.ADDONS_JWT_ALG
|
||||
issuer = settings.ADDONS_JWT_ISSUER
|
||||
audience = settings.ADDONS_JWT_AUDIENCE
|
||||
def __init__(self):
|
||||
"""Initialize authentication backend with application JWT settings from Django settings."""
|
||||
super().__init__(
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user