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/okta.py:32

    def get_token_url(self) -> str:
        return f"{self._oauth2_base_url()}/v1/token"

    def get_jwks_url(self) -> str:
        return f"{self._oauth2_base_url()}/v1/keys"

    def get_issuer(self) -> str:
        return self._oauth2_base_url().removesuffix("/oauth2")

    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_required_fields(self) -> list[str]:
        return ["authorization_server_name", "using_org_auth_server"]

    def _oauth2_base_url(self) -> str:
        using_org_auth_server = self.settings.extra.get("using_org_auth_server", False)

        if using_org_auth_server:
            base_url = f"https://{self.settings.domain}/oauth2"
        else:
            base_url = f"https://{self.settings.domain}/oauth2/{self.settings.extra.get('authorization_server_name', 'default')}"

        return f"{base_url}"

View on GitHub (pinned to 754d7323be)

Solutions

  1. Set the client ID in your Okta provider configuration.
  2. Copy the client ID from your Okta application integration settings.

When it happens

Trigger: Thrown at lib/crewai-core/src/crewai_core/auth/providers/okta.py:32 when the library encounters an invalid state.

Common situations: Occurs when the Okta 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/449e3343b513144f. Report an issue: GitHub.