def pad_method_dict(method_dict):
 for key in AUTH_BACKEND_NAME_MAP:
  if (key not in method_dict):
   method_dict[key] = False
 return method_dict

def pad_method_dict ( method_dict ) : for key in AUTH_BACKEND_NAME_MAP : if ( key not in method_dict ) : method_dict [ key ] = False return method_dict
pads an authentication methods dict to contain all auth backends supported by the software .