You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Se detectó que la clase AuthenticationController depende directamente de AuthenticationManager y JWTTokenProvider, lo cual genera un fuerte acoplamiento con el framework de seguridad.
Aplicar el patrón de diseño Adapter mediante:
Creación de la interfaz AuthService con el método login(username, password).
Implementación de la clase SpringAuthAdapter que encapsula AuthenticationManager y JWTTokenProvider.
Refactor del controlador para que utilice solo la interfaz AuthService.
Se adjunta el diagrama UML con la implementación del patrón Adapter: