1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-11-29 00:37:05 +01:00

feat: aasa view json distribution

* basic webcredentials config for password managers

See https://developer.apple.com/documentation/xcode/supporting-associated-domains for ref
This commit is contained in:
alexismdr
2025-11-28 02:08:34 +01:00
parent 92e0757402
commit 43603d7359

View File

@@ -6,6 +6,7 @@ from django.urls import reverse
from django.views.generic import RedirectView from django.views.generic import RedirectView
from note.models import Alias from note.models import Alias
from permission.backends import PermissionBackend from permission.backends import PermissionBackend
from django.http import JsonResponse
class IndexView(LoginRequiredMixin, RedirectView): class IndexView(LoginRequiredMixin, RedirectView):
@@ -28,3 +29,13 @@ class IndexView(LoginRequiredMixin, RedirectView):
# Non-Kfet members will don't see the transfer page, but their profile page # Non-Kfet members will don't see the transfer page, but their profile page
return reverse("member:user_detail", args=(user.pk,)) return reverse("member:user_detail", args=(user.pk,))
def apple_app_site_association(request):
data = {
"webcredentials": {
"apps": [
"P5246D3AFQ.org.crans.bde.note"
]
}
}
return JsonResponse(data)