{"record":{"id":"449e3343b513144f","repo":"crewAIInc/crewAI","slug":"client-id-is-required-please-set-it-in-the-config-449e33","errorCode":null,"errorMessage":"Client ID is required. Please set it in the configuration.","messagePattern":"Client ID is required\\. Please set it in the configuration\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"lib/crewai-core/src/crewai_core/auth/providers/okta.py","lineNumber":32,"sourceCode":"    def get_token_url(self) -> str:\n        return f\"{self._oauth2_base_url()}/v1/token\"\n\n    def get_jwks_url(self) -> str:\n        return f\"{self._oauth2_base_url()}/v1/keys\"\n\n    def get_issuer(self) -> str:\n        return self._oauth2_base_url().removesuffix(\"/oauth2\")\n\n    def get_audience(self) -> str:\n        if self.settings.audience is None:\n            raise ValueError(\n                \"Audience is required. Please set it in the configuration.\"\n            )\n        return self.settings.audience\n\n    def get_client_id(self) -> str:\n        if self.settings.client_id is None:\n            raise ValueError(\n                \"Client ID is required. Please set it in the configuration.\"\n            )\n        return self.settings.client_id\n\n    def get_required_fields(self) -> list[str]:\n        return [\"authorization_server_name\", \"using_org_auth_server\"]\n\n    def _oauth2_base_url(self) -> str:\n        using_org_auth_server = self.settings.extra.get(\"using_org_auth_server\", False)\n\n        if using_org_auth_server:\n            base_url = f\"https://{self.settings.domain}/oauth2\"\n        else:\n            base_url = f\"https://{self.settings.domain}/oauth2/{self.settings.extra.get('authorization_server_name', 'default')}\"\n\n        return f\"{base_url}\"\n","sourceCodeStart":14,"sourceCodeEnd":49,"githubUrl":"https://github.com/crewAIInc/crewAI/blob/754d7323beb2fd042e33444a115ea2d5a47193f0/lib/crewai-core/src/crewai_core/auth/providers/okta.py#L14-L49","documentation":"Error \"Client ID is required. Please set it in the configuration.\" thrown in crewAIInc/crewAI.","triggerScenarios":"Thrown at lib/crewai-core/src/crewai_core/auth/providers/okta.py:32 when the library encounters an invalid state.","commonSituations":"Occurs when the Okta provider configuration is missing the client ID. Set the client ID in the configuration before initializing the provider.","solutions":["Set the client ID in your Okta provider configuration.","Copy the client ID from your Okta application integration settings."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"754d7323beb2fd042e33444a115ea2d5a47193f0","analyzedAt":"2026-08-15T04:06:56.746Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}