OIDC lifetimes are not casted to string anymore

This commit is contained in:
Éloi Rivard 2023-05-17 09:29:32 +02:00
parent b4014cfd73
commit d66619a01c
2 changed files with 3 additions and 3 deletions

View file

@ -151,7 +151,7 @@ def save_authorization_code(code, request):
scope=scope,
nonce=nonce,
issue_date=now,
lifetime=str(AUTHORIZATION_CODE_LIFETIME),
lifetime=AUTHORIZATION_CODE_LIFETIME,
challenge=request.data.get("code_challenge"),
challenge_method=request.data.get("code_challenge_method"),
)

View file

@ -153,7 +153,7 @@ def authorization(testclient, user, client, slapd_connection):
scope="openid profile",
nonce="nonce",
issue_date=datetime.datetime(2020, 1, 1, tzinfo=datetime.timezone.utc),
lifetime="3600",
lifetime=3600,
challenge="challenge",
challenge_method="method",
revokation="",
@ -175,7 +175,7 @@ def token(testclient, client, user, slapd_connection):
refresh_token=gen_salt(48),
scope="openid profile",
issue_date=datetime.datetime.now(datetime.timezone.utc),
lifetime=str(3600),
lifetime=3600,
)
t.save()
yield t