Update custom_authentication_provider.rst

Necessary to avoid : Failed to start the session because headers have already been sent