Given a homomorphism f:G→H between smooth algebraic groups, we get an induced homomorphism of algebraic stacks Bf:BG→BH, given by sending a G-torsor P over a scheme X to the H-torsor PxGH, whose (scheme-theoric) points are {(p,h)|p∈P,h∈H}/∼, where (pg,h)∼(p,f(g)h).
Is every morphism of algebraic stacks BG→BH of the form Bf? If not, what is an example of a morphism not of this form?

