Skip to content

Commit

Permalink
sneaky logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Jul 11, 2024
1 parent b820973 commit 67d320b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

import (
"context"
"encoding/base64"
"fmt"

"github.com/databricks/databricks-sdk-go/httpclient"
Expand Down Expand Up @@ -78,7 +79,8 @@ func (o oidcTokenSuppliers) GetOIDCToken(ctx context.Context, audience string) (
return "", err
}
if token != "" {
logger.Debugf(ctx, "OIDC token found from %s: %s", s.Name(), token)
encodedToken := base64.StdEncoding.EncodeToString([]byte(token))
logger.Debugf(ctx, "OIDC token found from %s: %s", s.Name(), encodedToken)
return token, nil
}
logger.Debugf(ctx, "No OIDC token found from %s", s.Name())
Expand Down

0 comments on commit 67d320b

Please sign in to comment.