Skip to content

Commit

Permalink
Fix issue httpie#1594: Modify manager.py to implement plugin authenti…
Browse files Browse the repository at this point in the history
…cation
  • Loading branch information
GabageFW committed Dec 15, 2024
1 parent 2843b87 commit 33a887c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions httpie/plugins/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def load_installed_plugins(self, directory: Optional[Path] = None):

# Auth
def get_auth_plugins(self) -> List[Type[AuthPlugin]]:
return self.filter(AuthPlugin)
return [plugin for plugin in self if issubclass(plugin, AuthPlugin)]
# return self.filter(AuthPlugin)

def get_auth_plugin_mapping(self) -> Dict[str, Type[AuthPlugin]]:
return {
Expand All @@ -107,7 +108,8 @@ def get_converters(self) -> List[Type[ConverterPlugin]]:

# Adapters
def get_transport_plugins(self) -> List[Type[TransportPlugin]]:
return self.filter(TransportPlugin)
return [plugin for plugin in self if issubclass(plugin, TransportPlugin)]
# return self.filter(TransportPlugin)

def __str__(self):
return repr_dict({
Expand Down

0 comments on commit 33a887c

Please sign in to comment.