From 43603d73591b759af2ff9d4d0b3425b340bcacf8 Mon Sep 17 00:00:00 2001 From: alexismdr Date: Fri, 28 Nov 2025 02:08:34 +0100 Subject: [PATCH] feat: aasa view json distribution * basic webcredentials config for password managers See https://developer.apple.com/documentation/xcode/supporting-associated-domains for ref --- note_kfet/views.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/note_kfet/views.py b/note_kfet/views.py index 9ea86d30..1e5e22ad 100644 --- a/note_kfet/views.py +++ b/note_kfet/views.py @@ -6,6 +6,7 @@ from django.urls import reverse from django.views.generic import RedirectView from note.models import Alias from permission.backends import PermissionBackend +from django.http import JsonResponse 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 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)