Support oauth2 authentication through Rack Middleware