include numbers for testing

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-12-14 19:39:32 +01:00
parent 7720c80d5b
commit afc347ddeb
No known key found for this signature in database
2 changed files with 11 additions and 1 deletions

View File

@ -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"],
),
),

View File

@ -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