forked from Github-Mirrors/canaille
OIDC lifetimes are not casted to string anymore
This commit is contained in:
parent
b4014cfd73
commit
d66619a01c
2 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ def save_authorization_code(code, request):
|
||||||
scope=scope,
|
scope=scope,
|
||||||
nonce=nonce,
|
nonce=nonce,
|
||||||
issue_date=now,
|
issue_date=now,
|
||||||
lifetime=str(AUTHORIZATION_CODE_LIFETIME),
|
lifetime=AUTHORIZATION_CODE_LIFETIME,
|
||||||
challenge=request.data.get("code_challenge"),
|
challenge=request.data.get("code_challenge"),
|
||||||
challenge_method=request.data.get("code_challenge_method"),
|
challenge_method=request.data.get("code_challenge_method"),
|
||||||
)
|
)
|
||||||
|
|
|
@ -153,7 +153,7 @@ def authorization(testclient, user, client, slapd_connection):
|
||||||
scope="openid profile",
|
scope="openid profile",
|
||||||
nonce="nonce",
|
nonce="nonce",
|
||||||
issue_date=datetime.datetime(2020, 1, 1, tzinfo=datetime.timezone.utc),
|
issue_date=datetime.datetime(2020, 1, 1, tzinfo=datetime.timezone.utc),
|
||||||
lifetime="3600",
|
lifetime=3600,
|
||||||
challenge="challenge",
|
challenge="challenge",
|
||||||
challenge_method="method",
|
challenge_method="method",
|
||||||
revokation="",
|
revokation="",
|
||||||
|
@ -175,7 +175,7 @@ def token(testclient, client, user, slapd_connection):
|
||||||
refresh_token=gen_salt(48),
|
refresh_token=gen_salt(48),
|
||||||
scope="openid profile",
|
scope="openid profile",
|
||||||
issue_date=datetime.datetime.now(datetime.timezone.utc),
|
issue_date=datetime.datetime.now(datetime.timezone.utc),
|
||||||
lifetime=str(3600),
|
lifetime=3600,
|
||||||
)
|
)
|
||||||
t.save()
|
t.save()
|
||||||
yield t
|
yield t
|
||||||
|
|
Loading…
Reference in a new issue