You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

oauth.py 540B

123456789101112131415161718192021
  1. from collections.abc import Sequence
  2. from pydantic import BaseModel, Field
  3. from core.entities.provider_entities import ProviderConfig
  4. class OAuthSchema(BaseModel):
  5. """
  6. OAuth schema
  7. """
  8. client_schema: Sequence[ProviderConfig] = Field(
  9. default_factory=list,
  10. description="client schema like client_id, client_secret, etc.",
  11. )
  12. credentials_schema: Sequence[ProviderConfig] = Field(
  13. default_factory=list,
  14. description="credentials schema like access_token, refresh_token, etc.",
  15. )