Skip to content

Commit

Permalink
Allow running microsoft queries from an azure asset.
Browse files Browse the repository at this point in the history
  • Loading branch information
preslavgerchev committed Nov 22, 2023
1 parent d6944dc commit f624d2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/ms365/connection/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ func getTokenCredential(credential *vault.Credential, tenantId, clientId string)
var azCred azcore.TokenCredential
var err error
if credential == nil {
return nil, errors.New("no credentials provided")
azCred, err = azidentity.NewAzureCLICredential(&azidentity.AzureCLICredentialOptions{})
if err != nil {
return nil, errors.Wrap(err, "error creating CLI credentials")
}
} else {
// we only support private key authentication for ms 365
switch credential.Type {
Expand Down

0 comments on commit f624d2b

Please sign in to comment.