BAEL-4626

Adjusted traces levels.
Adjusted web.xml from webapps. Allows to see clearly the security constraints being applied.
Pong: Changed authentication method to DIGEST.
This is to check that SSO works with different authentication mechanisms.
This commit is contained in:
Víctor 2022-03-03 01:24:41 +01:00
parent c0aef97db6
commit aa76805457
5 changed files with 10 additions and 50 deletions

View File

@ -50,15 +50,15 @@ java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
java.util.logging.ConsoleHandler.encoding = UTF-8
org.apache.catalina.authenticator.level = ALL
org.apache.catalina.authenticator.level = FINE
org.apache.catalina.authenticator.formatter = org.apache.juli.OneLineFormatter
org.apache.catalina.authenticator.encoding = UTF-8
org.apache.catalina.Realm.level = ALL
org.apache.catalina.Realm.level = FINE
org.apache.catalina.Realm.formatter = org.apache.juli.OneLineFormatter
org.apache.catalina.Realm.encoding = UTF-8
org.apache.catalina.realm.level = ALL
org.apache.catalina.realm.level = FINE
org.apache.catalina.realm.formatter = org.apache.juli.OneLineFormatter
org.apache.catalina.realm.encoding = UTF-8

View File

@ -10,7 +10,7 @@
<security-constraint>
<display-name>Ping Login Auth</display-name>
<web-resource-collection>
<web-resource-name>Restricted Access</web-resource-name>
<web-resource-name>PingRestrictedAccess</web-resource-name>
<url-pattern>/private/*</url-pattern>
</web-resource-collection>
<auth-constraint>
@ -34,7 +34,7 @@
</login-config>
<filter>
<filter-name>ExpiresFilter</filter-name>
<filter-name>PingExpiresFilter</filter-name>
<filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
<init-param>
<param-name>ExpiresByType text/html</param-name>
@ -43,7 +43,7 @@
</filter>
<filter-mapping>
<filter-name>ExpiresFilter</filter-name>
<filter-name>PingExpiresFilter</filter-name>
<url-pattern>/private/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>

View File

@ -9,7 +9,7 @@
<security-constraint>
<display-name>Pong Login Auth</display-name>
<web-resource-collection>
<web-resource-name>Restricted Access</web-resource-name>
<web-resource-name>PongRestrictedAccess</web-resource-name>
<url-pattern>/private/*</url-pattern>
</web-resource-collection>
<auth-constraint>
@ -26,15 +26,11 @@
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/logging.html</form-login-page>
<form-error-page>/logging_error.html</form-error-page>
</form-login-config>
<auth-method>DIGEST</auth-method>
</login-config>
<filter>
<filter-name>ExpiresFilter</filter-name>
<filter-name>PongExpiresFilter</filter-name>
<filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
<init-param>
<param-name>ExpiresByType text/html</param-name>
@ -43,7 +39,7 @@
</filter>
<filter-mapping>
<filter-name>ExpiresFilter</filter-name>
<filter-name>PongExpiresFilter</filter-name>
<url-pattern>/private/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>

View File

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Pong - Login</title>
</head>
<body>
<form method="post" action="j_security_check">
<table role="presentation">
<tr>
<td>User name: </td>
<td><input type="text" name="j_username"
size="20"/></td>
</tr>
<tr>
<td>Password: </td>
<td><input type="password" name="j_password"
size="20"/></td>
</tr>
</table>
<p></p>
<input type="submit" value="Submit"/>
&nbsp;
<input type="reset" value="Reset"/>
</form>
</body>
</html>

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Pong</title>
</head>
<body>
Error logging in!
<a href="index.html">Try again</a>
</body>
</html>