fix: use correct endpoint to get auth/parameters on enterprise configuration (#3295)
Some checks failed
Notify Downstream / notify-downstream (push) Has been cancelled

This commit is contained in:
Lucas Gomide
2025-08-08 11:56:44 -03:00
committed by GitHub
parent f9481cf10d
commit a92211f0ba
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class EnterpriseConfigureCommand(BaseCommand):
raise SystemExit(1)
def _fetch_oauth_config(self, enterprise_url: str) -> Dict[str, Any]:
oauth_endpoint = f"{enterprise_url}/oauth/parameters"
oauth_endpoint = f"{enterprise_url}/auth/parameters"
try:
console.print(f"🔄 Fetching OAuth2 configuration from {oauth_endpoint}...")

View File

@@ -50,7 +50,7 @@ class TestEnterpriseConfigureCommand(unittest.TestCase):
"X-Crewai-Version": "1.0.0",
}
mock_requests_get.assert_called_once_with(
"https://enterprise.example.com/oauth/parameters",
"https://enterprise.example.com/auth/parameters",
timeout=30,
headers=expected_headers
)