diff --git a/src/spiffworkflow_backend/routes/user.py b/src/spiffworkflow_backend/routes/user.py index 38043b78..42d83330 100644 --- a/src/spiffworkflow_backend/routes/user.py +++ b/src/spiffworkflow_backend/routes/user.py @@ -158,10 +158,11 @@ def validate_scope(token: Any) -> bool: def api_login(uid: str, password: str, redirect_url: Optional[str] = None) -> dict: """Api_login.""" # TODO: Fix this! mac 20220801 - token = PublicAuthenticationService().get_public_access_token(uid, password) - g.token = token - - return token + # token:dict = PublicAuthenticationService().get_public_access_token(uid, password) + # g.token = token + # + # return token + return {} def encode_auth_token(uid: str) -> str: diff --git a/tests/spiffworkflow_backend/helpers/base_test.py b/tests/spiffworkflow_backend/helpers/base_test.py index 97bc12c3..5a04879a 100644 --- a/tests/spiffworkflow_backend/helpers/base_test.py +++ b/tests/spiffworkflow_backend/helpers/base_test.py @@ -45,10 +45,10 @@ class BaseTest: keycloak_client_secret_key, ) - @staticmethod - def get_public_access_token(username: str, password: str) -> dict: - """Get_public_access_token.""" - public_access_token = PublicAuthenticationService().get_public_access_token( - username, password - ) - return public_access_token + # @staticmethod + # def get_public_access_token(username: str, password: str) -> dict: + # """Get_public_access_token.""" + # public_access_token = PublicAuthenticationService().get_public_access_token( + # username, password + # ) + # return public_access_token diff --git a/tests/spiffworkflow_backend/integration/test_authentication.py b/tests/spiffworkflow_backend/integration/test_authentication.py index 19b9935f..934c1b24 100644 --- a/tests/spiffworkflow_backend/integration/test_authentication.py +++ b/tests/spiffworkflow_backend/integration/test_authentication.py @@ -12,7 +12,7 @@ from spiffworkflow_backend.services.authentication_service import ( class TestAuthentication(BaseTest): """TestAuthentication.""" - def test_get_login_state(self): + def test_get_login_state(self) -> None: """Test_get_login_state.""" redirect_url = "http://example.com/" state = PublicAuthenticationService.generate_state(redirect_url)