Fix OAuth2 authentication plugin based on review