make it possible to use map credentials in providers

thanks @digitalsanctum for reporting this!