13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For any type of authentication methods to work, at least one security constraintshould be defined for the requested Web resources and Global <strong>Security</strong> must beenabled for the application server.For instructions on how to define security constraints for Web resources, see4.2.1, “Configuring Web module security” on page 46.For instructions on how to enable Global <strong>Security</strong> on the server, please refer to10.2, “<strong>WebSphere</strong> Global <strong>Security</strong>” on page 235.When developing <strong>WebSphere</strong> applications, you can configure authenticationmethods using either <strong>WebSphere</strong> Studio or the <strong>WebSphere</strong> ApplicationAssembly Tool. This chapter presents basic scenarios of how to set up loginAuthentication methods for the ITSObank application.4.5.1 Form-based loginOne of the login challenges defined in J2EE Specification is form-based login. Itenables the application developer to customize the login process and present anapplication-specific form by making use of the Form Login AuthenticationMethod.Form login works in the following manner:1. An unauthenticated user requests a resource protected by the Form Loginauthentication type.2. The application server redirects the request to the Login Form definedpreviously in the Web deployment descriptor.3. On the HTML login form, the user enters the user ID and password andsubmits the form.4. The action triggered by the form submission runs a special <strong>WebSphere</strong>Application servlet j_security_check. The Web container, after receiving arequest for the j_security_check servlet, dispatches the request to another<strong>WebSphere</strong> servlet that authenticates the user.5. If the servlet authenticates the user successfully, the originally requestedresource is displayed.If you select LTPA as the authentication mechanism under global securitysettings and use form login in any Web application, you must also enable SingleSign-On (SSO). If SSO is not enabled, authentication during form login fails witha configuration error. SSO is required because it generates an HTTP cookie thatcontains information representing the identity of the user to the Web browser.This information is needed to authorize protected resources when a form login isused.Chapter 4. Securing Web components 59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!