refactored saml config