autogen_ext.auth.azure#

class AzureTokenProvider(credential: TokenCredential | SupportsTokenInfo, *scopes: str)[source]#

Bases: Component[TokenProviderConfig]

component_config_schema#

alias of TokenProviderConfig

component_provider_override: ClassVar[str | None] = 'autogen_ext.models.openai.AzureTokenProvider'#

Override the provider string for the component. This should be used to prevent internal module names being a part of the module name.

component_type: ClassVar[ComponentType] = 'token_provider'#

The logical type of the component.

pydantic model TokenProviderConfig[source]#

Bases: BaseModel

Show JSON schema
{
   "title": "TokenProviderConfig",
   "type": "object",
   "properties": {
      "provider_kind": {
         "title": "Provider Kind",
         "type": "string"
      },
      "scopes": {
         "items": {
            "type": "string"
         },
         "title": "Scopes",
         "type": "array"
      }
   },
   "required": [
      "provider_kind",
      "scopes"
   ]
}

Fields:
field provider_kind: str [Required]#
field scopes: List[str] [Required]#