- OAuthGrant model tracks each client authorization, tied to the account session (issuer_session) that issued it - OAuth authorize creates grant + code together - Client apps store grant_token in session, verify via account's internal /auth/internal/verify-grant endpoint (Redis-cached 60s) - Account logout revokes only grants from that device's session - Replaces iframe-based logout with server-side grant revocation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
from .user import User
|
|
from .kv import KV
|
|
from .magic_link import MagicLink
|
|
from .oauth_code import OAuthCode
|
|
from .oauth_grant import OAuthGrant
|
|
from .menu_item import MenuItem
|
|
|
|
from .ghost_membership_entities import (
|
|
GhostLabel, UserLabel,
|
|
GhostNewsletter, UserNewsletter,
|
|
GhostTier, GhostSubscription,
|
|
)
|
|
from .ghost_content import Tag, Post, Author, PostAuthor, PostTag, PostLike
|
|
from .page_config import PageConfig
|
|
from .order import Order, OrderItem
|
|
from .market import (
|
|
Product, ProductLike, ProductImage, ProductSection,
|
|
NavTop, NavSub, Listing, ListingItem,
|
|
LinkError, LinkExternal, SubcategoryRedirect, ProductLog,
|
|
ProductLabel, ProductSticker, ProductAttribute, ProductNutrition, ProductAllergen,
|
|
CartItem,
|
|
)
|
|
from .market_place import MarketPlace
|
|
from .calendars import (
|
|
Calendar, CalendarEntry, CalendarSlot,
|
|
TicketType, Ticket, CalendarEntryPost,
|
|
)
|
|
from .container_relation import ContainerRelation
|
|
from .menu_node import MenuNode
|
|
from .federation import (
|
|
ActorProfile, APActivity, APFollower, APInboxItem, APAnchor, IPFSPin,
|
|
RemoteActor, APFollowing, APRemotePost, APLocalPost, APInteraction, APNotification,
|
|
)
|