A theory of auroras and the ring current