From e6dd74a3fab65355c0aa187ee31d5ee74a888649 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 3 Feb 2023 15:15:26 +0300 Subject: auth: tests: mock token acquisition. Fix minor bugs. --- tests/unit/auth/fixtures/oauth2_client_fixtures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/unit/auth/fixtures') diff --git a/tests/unit/auth/fixtures/oauth2_client_fixtures.py b/tests/unit/auth/fixtures/oauth2_client_fixtures.py index 040da87..41d3ed4 100644 --- a/tests/unit/auth/fixtures/oauth2_client_fixtures.py +++ b/tests/unit/auth/fixtures/oauth2_client_fixtures.py @@ -24,11 +24,12 @@ def fxtr_oauth2_clients(fxtr_users_with_passwords): now + datetime.timedelta(hours = 2), { "client_name": f"test_client_{idx:03}", - "scope": ["user", "profile"], + "scope": ["profile", "group", "role", "resource", "register-client"], "redirect_uri": "/test_oauth2", "token_endpoint_auth_method": [ "client_secret_post", "client_secret_basic"], - "grant_types": ["password"] + "grant_types": ["password", "authorisation_code", "refresh_token"], + "response_type": "token" }, user) for idx, user in enumerate(users, start=1)) -- cgit v1.2.3