Skip to content

Commit

Permalink
Merge pull request #88 from foomo/support-op-service-account
Browse files Browse the repository at this point in the history
feat(squadron): check for op service account env
  • Loading branch information
franklinkim authored Feb 5, 2024
2 parents 030fd4d + af8d560 commit b235ed3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onepassword/onepassword.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ func New(l log.Logger, cache cache.Cache, opts ...Option) (*OnePassword, error)
func (op *OnePassword) IsAuthenticated(ctx context.Context) (bool, error) {
var sessChanged bool

if os.Getenv("OP_CONNECT_TOKEN") != "" && os.Getenv("OP_CONNECT_HOST") != "" {
if os.Getenv("OP_SERVICE_ACCOUNT_TOKEN") != "" {
return true, nil
} else if os.Getenv("OP_CONNECT_TOKEN") != "" && os.Getenv("OP_CONNECT_HOST") != "" {
return true, nil
}

Expand Down

0 comments on commit b235ed3

Please sign in to comment.