taolib.testing.oauth.models.profile#

OAuth 用户资料与引导数据模型模块。

定义标准化的用户信息和首次登录引导流程相关的 Pydantic 模型。

Classes#

OAuthUserInfo

标准化的 OAuth 用户信息。

OnboardingData

首次登录引导数据模型。

Module Contents#

class taolib.testing.oauth.models.profile.OAuthUserInfo#

Bases: pydantic.BaseModel

标准化的 OAuth 用户信息。

从不同提供商的响应中提取的统一格式用户信息。

provider: taolib.testing.oauth.models.enums.OAuthProvider#
provider_user_id: str#
email: str | None#
display_name: str#
avatar_url: str#
raw_data: dict[str, Any]#
class taolib.testing.oauth.models.profile.OnboardingData#

Bases: pydantic.BaseModel

首次登录引导数据模型。

新用户通过 OAuth 首次登录时需要填写的资料。

username: str#
display_name: str | None#