Implemented the web module auth handlers for both client and provider.