crewAIInc/crewAI · error · ValueError
Client ID is required. Please set it in the configuration.
Error message
Client ID is required. Please set it in the configuration.
What it means
Error "Client ID is required. Please set it in the configuration." thrown in crewAIInc/crewAI.
Source
Thrown at lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:34
def get_token_url(self) -> str:
return f"{self._base_url()}/oauth2/v2.0/token"
def get_jwks_url(self) -> str:
return f"{self._base_url()}/discovery/v2.0/keys"
def get_issuer(self) -> str:
return f"{self._base_url()}/v2.0"
def get_audience(self) -> str:
if self.settings.audience is None:
raise ValueError(
"Audience is required. Please set it in the configuration."
)
return self.settings.audience
def get_client_id(self) -> str:
if self.settings.client_id is None:
raise ValueError(
"Client ID is required. Please set it in the configuration."
)
return self.settings.client_id
def get_oauth_scopes(self) -> list[str]:
return [
*super().get_oauth_scopes(),
*cast(str, self.settings.extra.get("scope", "")).split(),
]
def get_required_fields(self) -> list[str]:
return ["scope"]
def _base_url(self) -> str:
return f"https://login.microsoftonline.com/{self.settings.domain}"
View on GitHub (pinned to 754d7323be)
Solutions
- Set the client ID in your Entra ID provider configuration.
- Copy the Application (client) ID from the Azure portal app registration.
When it happens
Trigger: Thrown at lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:34 when the library encounters an invalid state.
Common situations: Occurs when the Entra ID provider configuration is missing the client ID. Set the client ID in the configuration before initializing the provider.
AI-assisted analysis of crewAIInc/crewAI@754d7323be (2026-08-15).
Data as JSON: /api/errors/319334d6795ac2f6.
Report an issue: GitHub.