Authentication controller for WordPress JSON API plugin