rspec/rules/S2647/xml/rule.adoc

35 lines
692 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
// in web.xml
<web-app ...>
<!-- ... -->
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
----
2021-02-09 12:11:03 +01:00
== Exceptions
The rule will not raise any issue if HTTPS is enabled, on any URL-pattern.
----
<web-app ...>
<!-- ... -->
<security-constraint>
<web-resource-collection>
<web-resource-name>HTTPS enabled</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>
----
2020-06-30 12:48:07 +02:00
include::../see.adoc[]