Skip to content

Commit 45298a7

Browse files
committed
Remove id token logging
1 parent 1780f73 commit 45298a7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/command/client.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package command
1818

1919
import (
20-
"encoding/json"
2120
"fmt"
2221

2322
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
@@ -174,12 +173,6 @@ func (g *gcp) GetAccessToken(ctx context.Context) (string, error) {
174173

175174
log.Info("fetched token using GCP ApplicationDefaultCredential")
176175

177-
payload, _ := idtoken.ParsePayload(token.AccessToken)
178-
179-
prettyPayload, _ := json.MarshalIndent(payload.Claims, "", " ")
180-
181-
log.Info(fmt.Sprintf("Google OIDC ID token payload: %s", prettyPayload))
182-
183176
return token.AccessToken, nil
184177
}
185178

0 commit comments

Comments
 (0)