Prepare attributes and web config for authentication