2024-07-28 15:20:05 -07:00
|
|
|
import datetime
|
|
|
|
from typing import Any, Dict, List, Literal, Optional, Union
|
|
|
|
from uuid import UUID
|
2024-02-24 17:03:55 -08:00
|
|
|
|
2024-07-28 15:20:05 -07:00
|
|
|
from pydantic import AnyUrl, Base64Bytes, BaseModel, ConfigDict
|
|
|
|
from pydantic_extra_types.phone_numbers import PhoneNumber
|
2024-02-24 17:03:55 -08:00
|
|
|
|
2024-07-28 15:20:05 -07:00
|
|
|
from .base64data import Base64Data
|
2024-02-24 17:03:55 -08:00
|
|
|
|
|
|
|
|
|
|
|
class AuthCallback(BaseModel):
|
|
|
|
"""The authentication callback from the OAuth 2.0 client. This is typically posted to the redirect URL as query params after authenticating."""
|
|
|
|
|
|
|
|
code: Optional[str] = None
|
|
|
|
|
|
|
|
id_token: Optional[str] = None
|
|
|
|
|
|
|
|
state: Optional[str] = None
|
|
|
|
|
|
|
|
user: Optional[str] = None
|
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|