First working version of authentication.
Subsequent requests doesn't work yet.