Coverage for src/app/ports/authentication_port.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.7.0, created at 2025-04-02 22:46 +0200

1from abc import ABC, abstractmethod 

2from models.user_model import UserModel 

3 

4class AuthenticationPort(ABC): 

5 

6 @abstractmethod 

7 def get_user_for_authentication(self, user_model: UserModel) -> UserModel: 

8 """ 

9 Authenticate and retrieve a user. 

10 

11 Args: 

12 user_model (UserModel): The user model to authenticate. 

13 

14 Returns: 

15 UserModel: The authenticated user model. 

16 """