feat: merge Release v1.8.0 into main by vjgit96 · Pull Request #11827 · langflow-ai/langflow (original) (raw)

feat(auth): Pluggable AuthService with abstract base class (#10702)

During rebase, the teardown method was added in two locations (lines 57 and 220). Removed the duplicate at line 57, keeping the one at the end of the class (line 220) which is the more appropriate location for cleanup methods.

These changes fix test failures caused by LocalStorageService requiring session_service and settings_service parameters instead of just data_dir.

This refactor enhances the clarity and maintainability of the authentication logic.

These additions improve the reliability and maintainability of the authentication system.

These changes improve the accuracy and maintainability of the authentication tests.

After the pluggable auth refactor, encrypt_api_key and decrypt_api_key no longer take a settings_service argument - they get it internally.



Co-authored-by: Gabriel Luiz Freitas Almeida gabriel@logspace.ai Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Mike Pawlowski mike.pawlowski@datastax.com Co-authored-by: Mike Pawlowski mpawlow@ca.ibm.com Co-authored-by: Copilot 198982749+Copilot@users.noreply.github.com Co-authored-by: ogabrielluiz 24829397+ogabrielluiz@users.noreply.github.com Co-authored-by: Deon Sanchez 69873175+deon-sanchez@users.noreply.github.com Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>