finishing basic auth

Here's the basic auth for use with the json api. I'm planning on going over this in class.