Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiel committed Jan 9, 2025
1 parent 5e2461d commit 80fc200
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions cmd/oidc-token-verifier/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type Logger interface {

type options struct {
token string
trustedWorkflows []string
debug bool
oidcTokenExpirationTime int // OIDC token expiration time in minutes
}
Expand All @@ -40,12 +39,6 @@ func NewRootCmd() *cobra.Command {
It uses OIDC discovery to get the public keys and verify the token whenever the public keys are not cached or expired.`,
}
rootCmd.PersistentFlags().StringVarP(&opts.token, "token", "t", "", "OIDC token to verify")
// This flag should be enabled once we add support for it in the code.
// rootCmd.PersistentFlags().StringSliceVarP(&opts.trustedWorkflows, "trusted-workflows", "w", []string{}, "List of trusted workflows")
// err := rootCmd.MarkPersistentFlagRequired("trusted-workflows")
// if err != nil {
// panic(err)
// }
rootCmd.PersistentFlags().BoolVarP(&opts.debug, "debug", "d", false, "Enable debug mode")
rootCmd.PersistentFlags().IntVarP(&opts.oidcTokenExpirationTime, "oidc-token-expiration-time", "e", 10, "OIDC token expiration time in minutes")
return rootCmd
Expand Down
1 change: 0 additions & 1 deletion pkg/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ type TokenProcessor struct {
rawToken string
trustedIssuers map[string]Issuer
issuer Issuer
// verifierConfig VerifierConfig
logger LoggerInterface
}

Expand Down

0 comments on commit 80fc200

Please sign in to comment.