include numbers for testing
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
7720c80d5b
commit
afc347ddeb
|
@ -1,4 +1,5 @@
|
||||||
"""Mobile authenticator stage"""
|
"""Mobile authenticator stage"""
|
||||||
|
from json import dumps
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
@ -150,6 +151,10 @@ class MobileTransaction(ExpiringModel):
|
||||||
android=AndroidConfig(
|
android=AndroidConfig(
|
||||||
priority="normal",
|
priority="normal",
|
||||||
notification=AndroidNotification(icon="stock_ticker_update", color="#f45342"),
|
notification=AndroidNotification(icon="stock_ticker_update", color="#f45342"),
|
||||||
|
data={
|
||||||
|
"tx_id": str(self.tx_id),
|
||||||
|
"numbers": dumps([123, 456, 789]),
|
||||||
|
},
|
||||||
),
|
),
|
||||||
apns=APNSConfig(
|
apns=APNSConfig(
|
||||||
headers={"apns-push-type": "alert", "apns-priority": "10"},
|
headers={"apns-push-type": "alert", "apns-priority": "10"},
|
||||||
|
@ -162,6 +167,11 @@ class MobileTransaction(ExpiringModel):
|
||||||
),
|
),
|
||||||
interruption_level="time-sensitive",
|
interruption_level="time-sensitive",
|
||||||
tx_id=str(self.tx_id),
|
tx_id=str(self.tx_id),
|
||||||
|
numbers=[
|
||||||
|
123,
|
||||||
|
456,
|
||||||
|
789,
|
||||||
|
],
|
||||||
options=["foo", "bar", "baz"],
|
options=["foo", "bar", "baz"],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
openapi: 3.0.3
|
openapi: 3.0.3
|
||||||
info:
|
info:
|
||||||
title: authentik
|
title: authentik
|
||||||
version: 2023.8.3
|
version: 2023.10.4
|
||||||
description: Making authentication simple.
|
description: Making authentication simple.
|
||||||
contact:
|
contact:
|
||||||
email: hello@goauthentik.io
|
email: hello@goauthentik.io
|
||||||
|
|
Reference in a new issue