From e5e6c33b2d896129e4c6e60d107f8cd529a231fe Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 11 Oct 2022 14:25:30 +0300 Subject: [PATCH] providers/oauth2: fix expires_in not being an int Signed-off-by: Jens Langhammer --- authentik/providers/oauth2/views/device_backchannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/providers/oauth2/views/device_backchannel.py b/authentik/providers/oauth2/views/device_backchannel.py index 7818701b1..ff5168904 100644 --- a/authentik/providers/oauth2/views/device_backchannel.py +++ b/authentik/providers/oauth2/views/device_backchannel.py @@ -76,7 +76,7 @@ class DeviceView(View): } ), "user_code": token.user_code, - "expires_in": until.total_seconds(), + "expires_in": int(until.total_seconds()), "interval": 5, } )