def require_authentication(self, realm, environ):
realm_entry = self._get_realm_entry(realm)<EOL>if realm_entry is None:<EOL><INDENT>_logger.error(<EOL>'<STR_LIT>'<EOL>"<STR_LIT>".format(realm)<EOL>)<EOL><DEDENT>return realm_entry is not True<EOL>
Return True if this realm requires authentication (grant anonymous access otherwise).