Implement ExternalAuth for token based authorization

This commit is contained in:
Oliver Falk
2025-09-06 10:28:50 +02:00
parent deeaab7e23
commit aa742ea181
10 changed files with 1525 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ AUTHENTICATION_BACKENDS = (
# 'django_auth_ldap.backend.LDAPBackend',
"django_openid_auth.auth.OpenIDBackend",
"ivatar.ivataraccount.auth.FedoraOpenIdConnect",
"ivatar.ivataraccount.token_auth.TokenAuthenticationBackend",
"django.contrib.auth.backends.ModelBackend",
)
@@ -213,7 +214,7 @@ CACHES = {
"LOCATION": [
"127.0.0.1:11211",
],
#"OPTIONS": {"MAX_ENTRIES": 1000000},
# "OPTIONS": {"MAX_ENTRIES": 1000000},
},
"filesystem": {
"BACKEND": "django.core.cache.backends.filebased.FileBasedCache",