I was switching from using a managed identity in one subscription to service principals in multiple subscriptions and spent a long time debugging the problem. This PR includes the fixes that I think will help reduce the amount of time others spend debugging.
Adds additional parameter validation.
Adds debug logging to help with determining where a failure is occurring during authentication
Adds ncc as an additional dev dependency to help with generating dist/index.js
Lots of changes to upstream since this was originally submitted. I'll go ahead and close this since it probably introduced too much or was headed in the wrong direction.
Hello,
I was switching from using a managed identity in one subscription to service principals in multiple subscriptions and spent a long time debugging the problem. This PR includes the fixes that I think will help reduce the amount of time others spend debugging.
related to #30