taolib.testing.oauth.events.types
taolib.testing.oauth.events.types
OAuth 事件类型模块。
定义 OAuth 系统中的事件数据类。
Module Contents
-
class taolib.testing.oauth.events.types.OAuthLoginEvent
OAuth 登录事件。
-
user_id: str
-
provider: str
-
connection_id: str
-
is_new_user: bool
-
ip_address: str
-
timestamp: datetime.datetime
-
to_dict() → dict[str, Any]
转换为字典。
-
class taolib.testing.oauth.events.types.OAuthLinkEvent
OAuth 账户关联/解除关联事件。
-
user_id: str
-
provider: str
-
connection_id: str
-
action: str
-
timestamp: datetime.datetime
-
to_dict() → dict[str, Any]
转换为字典。
-
class taolib.testing.oauth.events.types.OAuthTokenRefreshEvent
OAuth Token 刷新事件。
-
connection_id: str
-
provider: str
-
success: bool
-
timestamp: datetime.datetime
-
to_dict() → dict[str, Any]
转换为字典。