Skip to content

Commit

Permalink
[auth] Make error from SCM trusted (gitpod-io#19423)
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ authored Feb 15, 2024
1 parent 35f7130 commit 000f2fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/server/src/auth/generic-auth-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { VerificationService } from "../auth/verification-service";
import { SignInJWT } from "./jwt";
import { UserService } from "../user/user-service";
import { reportLoginCompleted } from "../prometheus-metrics";
import { TrustedValue } from "@gitpod/gitpod-protocol/lib/util/scrubbing";

/**
* This is a generic implementation of OAuth2-based AuthProvider.
Expand Down Expand Up @@ -231,7 +232,7 @@ export abstract class GenericAuthProvider implements AuthProvider {
expiryDate,
});
} catch (error) {
log.error(`(${this.strategyName}) Failed to refresh token!`, { error });
log.error(`(${this.strategyName}) Failed to refresh token!`, { error: new TrustedValue(error) });
throw error;
}
}
Expand Down

0 comments on commit 000f2fd

Please sign in to comment.