Skip to content

Commit

Permalink
fix: show revoke_auto_rotated_token on read config
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijamt committed Apr 3, 2024
1 parent d0d4bfa commit efd5e94
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions entry_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ func (e EntryConfig) LogicalResponseData() map[string]any {
}

return map[string]any{
"base_url": e.BaseURL,
"auto_rotate_token": e.AutoRotateToken,
"auto_rotate_before": e.AutoRotateBefore.String(),
"token_id": e.TokenId,
"token_expires_at": tokenExpiresAt,
"token_sha1_hash": fmt.Sprintf("%x", sha1.Sum([]byte(e.Token))),
"base_url": e.BaseURL,
"auto_rotate_token": e.AutoRotateToken,
"auto_rotate_before": e.AutoRotateBefore.String(),
"token_id": e.TokenId,
"token_expires_at": tokenExpiresAt,
"token_sha1_hash": fmt.Sprintf("%x", sha1.Sum([]byte(e.Token))),
"revoke_auto_rotated_token": e.RevokeAutoRotatedToken,
}
}

Expand Down

0 comments on commit efd5e94

Please sign in to comment.