prepare for 4.0 upgrade
fix Credentials interface (remaned it 4.0 to Credential)
fix AuthenticationHandler deprication in 4.0
Passing test in build
fix authentication handler