A custom extension that handles OAuth2 requests.