Exemple #1
0
 def as_fill_external_value(self):
     """openLDAP and FreeIPA providers can be configured for external auth
     Same view for all auth provider types
     """
     class_attrs = [att.name for att in self.__attrs_attrs__]
     include_attrs = [getattr(self.__class__, name)
                      for name in ExternalAuthenticationView.cls_widget_names()
                      if name in class_attrs]
     fill = attr.asdict(self, filter=attr.filters.include(*include_attrs))
     return fill
Exemple #2
0
 def as_fill_external_value(self):
     """openLDAP and FreeIPA providers can be configured for external auth
     Same view for all auth provider types
     """
     class_attrs = attr.fields_dict(type(self))  # dict of attr objects keyed by name
     # attr filter needs the Attribute object
     include_attrs = [class_attrs.get(name)
                      for name in ExternalAuthenticationView.cls_widget_names()
                      if name in class_attrs]
     fill = attr.asdict(self, filter=attr.filters.include(*include_attrs))
     return fill
Exemple #3
0
 def as_fill_external_value(self):
     """openLDAP and FreeIPA providers can be configured for external auth
     Same view for all auth provider types
     """
     class_attrs = attr.fields_dict(type(self))  # dict of attr objects keyed by name
     # attr filter needs the Attribute object
     include_attrs = [class_attrs.get(name)
                      for name in ExternalAuthenticationView.cls_widget_names()
                      if name in class_attrs]
     fill = attr.asdict(self, filter=attr.filters.include(*include_attrs))
     return fill