diff --git a/authentik/stages/authenticator_mobile/models.py b/authentik/stages/authenticator_mobile/models.py index a36312a61..3c2bec688 100644 --- a/authentik/stages/authenticator_mobile/models.py +++ b/authentik/stages/authenticator_mobile/models.py @@ -1,4 +1,5 @@ """Mobile authenticator stage""" +from json import dumps from time import sleep from typing import Optional from uuid import uuid4 @@ -150,6 +151,10 @@ class MobileTransaction(ExpiringModel): android=AndroidConfig( priority="normal", notification=AndroidNotification(icon="stock_ticker_update", color="#f45342"), + data={ + "tx_id": str(self.tx_id), + "numbers": dumps([123, 456, 789]), + }, ), apns=APNSConfig( headers={"apns-push-type": "alert", "apns-priority": "10"}, @@ -162,6 +167,11 @@ class MobileTransaction(ExpiringModel): ), interruption_level="time-sensitive", tx_id=str(self.tx_id), + numbers=[ + 123, + 456, + 789, + ], options=["foo", "bar", "baz"], ), ), diff --git a/schemas/authentik-cloud-gateway.yml b/schemas/authentik-cloud-gateway.yml index b6a0240ad..ea8592953 100644 --- a/schemas/authentik-cloud-gateway.yml +++ b/schemas/authentik-cloud-gateway.yml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: authentik - version: 2023.8.3 + version: 2023.10.4 description: Making authentication simple. contact: email: hello@goauthentik.io