diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23120d4..81bea77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: hooks: - id: nbstripout - repo: 'https://github.com/charliermarsh/ruff-pre-commit' - rev: v0.6.3 + rev: v0.6.7 hooks: - id: ruff args: diff --git a/diaspora_event_sdk/sdk/client.py b/diaspora_event_sdk/sdk/client.py index 741e611..0cb80de 100644 --- a/diaspora_event_sdk/sdk/client.py +++ b/diaspora_event_sdk/sdk/client.py @@ -31,7 +31,7 @@ def __init__( base_url=self.web_service_address ) self.auth_client = self.login_manager.get_auth_client() - self.subject_openid = self.auth_client.oauth2_userinfo()["sub"] + self.subject_openid = self.auth_client.userinfo()["sub"] def logout(self): """Remove credentials from your local system""" diff --git a/diaspora_event_sdk/version.py b/diaspora_event_sdk/version.py index a8d4557..d7b30e1 100644 --- a/diaspora_event_sdk/version.py +++ b/diaspora_event_sdk/version.py @@ -1 +1 @@ -__version__ = "0.3.5" +__version__ = "0.3.6" diff --git a/tests/unit/client_test.py b/tests/unit/client_test.py index 14abcf4..7bde0dd 100644 --- a/tests/unit/client_test.py +++ b/tests/unit/client_test.py @@ -11,7 +11,7 @@ def mock_login_manager(): # TODO login_manager = Mock(spec=LoginManager()) login_manager.get_web_client.return_value = Mock(spec=WebClient) login_manager.get_auth_client.return_value = Mock( - oauth2_userinfo=lambda: {"sub": "test_sub"} + userinfo=lambda: {"sub": "test_sub"} ) login_manager._token_storage.get_token_data.return_value = { "username": "test_sub",