diff --git a/authentik/providers/oauth2/tests/test_token.py b/authentik/providers/oauth2/tests/test_token.py index c2e897182ab9..2ddcc76e4dac 100644 --- a/authentik/providers/oauth2/tests/test_token.py +++ b/authentik/providers/oauth2/tests/test_token.py @@ -150,6 +150,7 @@ def test_auth_code_view(self): "id_token": provider.encode( access.id_token.to_dict(), ), + "scope": "", }, ) self.validate_jwt(access, provider) @@ -242,6 +243,7 @@ def test_refresh_token_view(self): "id_token": provider.encode( access.id_token.to_dict(), ), + "scope": "offline_access", }, ) self.validate_jwt(access, provider) @@ -301,6 +303,7 @@ def test_refresh_token_view_invalid_origin(self): "id_token": provider.encode( access.id_token.to_dict(), ), + "scope": "offline_access", }, )