Skip to content

Commit

Permalink
More generic token detector
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Lo-A-Foe <[email protected]>
  • Loading branch information
loafoe committed Jun 15, 2021
1 parent 261f81a commit a7fa64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/round_trippers.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var filterList = []filter{
{regexp.MustCompile(`"access_token":"[^"]+"`), `"access_token":"[sensitive]"`},
{regexp.MustCompile(`"id_token":"[^"]+"`), `"id_token":"[sensitive]"`},
{regexp.MustCompile(`"token":"[^"]+"`), `"token":"[sensitive]"`},
{regexp.MustCompile(`refresh_token=\w+`), `refresh_token=sensitive`},
{regexp.MustCompile(`token=\w+`), `token=sensitive`},
}

type HeaderRoundTripper struct {
Expand Down

0 comments on commit a7fa64e

Please sign in to comment.