Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Remove sensitive data
Browse files Browse the repository at this point in the history
Signed-off-by: ByronHsu <[email protected]>
  • Loading branch information
ByronHsu authored May 13, 2023
1 parent 44c38b3 commit 039de1b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions auth/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func GRPCGetIdentityFromAccessToken(ctx context.Context, authCtx interfaces.Auth
interfaces.IdentityContext, error) {

tokenStr, err := grpcauth.AuthFromMD(ctx, BearerScheme)
logger.Debugf(ctx, "Access Token = %v", tokenStr)
if err != nil {
logger.Debugf(ctx, "Could not retrieve bearer token from metadata %v", err)
return nil, errors.Wrapf(ErrJwtValidation, err, "Could not retrieve bearer token from metadata")
Expand All @@ -100,7 +99,6 @@ func GRPCGetIdentityFromIDToken(ctx context.Context, clientID string, provider *
interfaces.IdentityContext, error) {

tokenStr, err := grpcauth.AuthFromMD(ctx, IDTokenScheme)
logger.Debugf(ctx, "ID Token = %v", tokenStr)
if err != nil {
logger.Debugf(ctx, "Could not retrieve id token from metadata %v", err)
return nil, errors.Wrapf(ErrJwtValidation, err, "Could not retrieve id token from metadata")
Expand Down

0 comments on commit 039de1b

Please sign in to comment.