wsgidav.dc.nt_dc.NTDomainController.get_domain_realm

NTDomainController.get_domain_realm(path_info, environ)[source]

Return the normalized realm name for a given URL.

This method is called

  • On startup, to check if anonymous access is allowed for a given share. In this case, environ is None.

  • For every request, before basic or digest authentication is handled.

A domain controller that uses the share path as realm name may use the _calc_realm_from_path_provider() helper.

Parameters:
  • path_info (str)

  • environ (dict | None)

Returns:

str