API - add refresh token

This commit is contained in:
Sam
2022-05-27 14:18:50 +02:00
parent 64b813a44b
commit 887553dd5d
5 changed files with 10 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ class TestOAuthClientCreation(OAuth2TestCase):
@pytest.mark.parametrize(
'input_key,expected_value',
[
('grant_types', ['authorization_code']),
('grant_types', ['authorization_code', 'refresh_token']),
('response_types', ['code']),
('token_endpoint_auth_method', 'client_secret_post'),
],
@@ -271,6 +271,7 @@ class TestOAuthIssueToken(OAuth2TestCase):
data = json.loads(response.data.decode())
assert data.get('access_token') is not None
assert data.get('expires_in') is not None
assert data.get('refresh_token') is not None
assert data.get('token_type') == 'Bearer'
@staticmethod