Is there a way to programatically add a user when no one is logged in
Oh well, totally forgot to allow anonymous access at the top of the controller.
I guess I can leave this answer here in case somebody is as forgetful as me:

protected $allowAnonymous = true;