Simplified to use StandardUsernameCredentials everywhere.