providers/oauth2: add unittests for authorize and token views

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-04-18 21:03:19 +02:00
parent dd2cd09637
commit ce082ead5e
3 changed files with 364 additions and 4 deletions

View File

@ -198,7 +198,7 @@ class TokenView(View):
response_dict = {
"access_token": refresh_token.access_token,
"refresh_token": refresh_token.refresh_token,
"token_type": "Bearer",
"token_type": "bearer",
"expires_in": timedelta_from_string(
self.params.provider.token_validity
).seconds,