don't wrap error if error is already AuthenticationError
added defaultProvider to AuthenticationProvider