![]() |
![]() |
||||
This tag defines the authorisation methods for the application, as well as any attributes required for BASIC or FORM-based authentication.
This is a top-level element, and sits inside the <web-app> element.
<!-- This application uses BASIC authentication --> <login-config> <auth-method>BASIC</auth-method> <realm-name>Editor Login</realm-name> </login-config>
<!-- FORM based authentication --> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config>