Refactoring middleware and tests.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
A bit of cleaning up.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixing possible issue where authentication is attempted on each request.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Normalizing code and docblocks.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Using auth instead of shield for property name.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Refactoring authentication once more. For the last time.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>