Skip to content

src/dazzle_back/runtime/social_auth.py

Generated: 2026-03-30T04:38:48.312059+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

OAuth2 Social Login for mobile clients.

Supports Google, Apple, and GitHub authentication via ID tokens or OAuth codes.

Key Exports

  • SocialProvider
  • SocialProfile
  • SocialAuthConfig
  • SocialTokenRequest
  • verify_google_token
  • verify_apple_token
  • exchange_github_code
  • verify_github_token
  • SocialAuthService
  • create_social_auth_routes
  • SocialAuthError
  • authenticate
  • social_login

Dependencies

Imports

  • __future__.annotations
  • logging
  • secrets
  • dataclasses.dataclass
  • enum.StrEnum
  • typing.Any
  • pydantic.BaseModel
  • pydantic.Field
  • dazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLE
  • dazzle_back.runtime._fastapi_compat.APIRouter
  • dazzle_back.runtime._fastapi_compat.HTTPException
  • dazzle_back.runtime._fastapi_compat.Request
  • dazzle_back.runtime.auth.AuthStore
  • dazzle_back.runtime.auth.UserRecord
  • dazzle_back.runtime.jwt_auth.JWTService
  • dazzle_back.runtime.token_store.TokenStore
  • dazzle_back.runtime.http_utils.http_call_with_retry
  • dazzle_back.runtime.http_utils.http_call_with_retry
  • google.auth.transport.requests
  • google.oauth2.id_token

Event Interactions

None detected.

Invariants and Assumptions

  • Assert: self.config.apple_team_id is not None
  • Assert: self.config.apple_key_id is not None
  • Assert: self.config.apple_bundle_id is not None
  • Assert: self.config.github_client_id is not None
  • Assert: self.config.github_client_secret is not None

Tests

  • tests/unit/test_social_auth.py
  • tests/unit/test_social_auth_wiring.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.