This is the simple part—simply declare the authentication scheme in the DD. The main DD element for authentication is <login-config>.
Note
Except for FORM, once you’ve declared the <login-config> element in the DD, implementing Authentication is done! (Assuming you’ve already configured username/password/role info into your server.)