<def-group>
  <definition class="compliance" id="chromium_http_authentication"  version="1">
    <metadata>
      <title>HTTP Authentication</title>
      <affected family="unix">
        <platform>Google Chromium Browser</platform>
      </affected>
      <description>The HTTP Authentication must be set to negotiate.</description>
    </metadata>
    <criteria>
      <criterion comment="Chromium check HTTP authentication" test_ref="test_chromium_http_authentication" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="Chromium check HTTP authentication" id="test_chromium_http_authentication" version="1">
    <ind:object object_ref="object_chromium_http_authentication" />
    <ind:state state_ref="state_chromium_http_authentication" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_chromium_http_authentication" version="1">
    <ind:filepath operation="pattern match">/etc/chromium/policies/managed/.*\.json</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]+\"AuthSchemes\"\:[\s]+\"(\S+)\",</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_state id="state_chromium_http_authentication" version="1">
    <ind:subexpression operation="equals" var_check="all" var_ref="var_auth_schema" />
  </ind:textfilecontent54_state>

  <external_variable id="var_auth_schema" datatype="string" version="1" comment="Expected HTTP authentication type" />

</def-group>
