#49 - OAuth base middleware.