Share the code for handling required attributes between the CAS and SAML handlers.