This scene is canon - originally shown in The Clone Wars episode "The Lawless" (Season 5, Episode 16).
Comparison against the original scene from The Clone Wars TV show