MantisBase v0.4.9
Loading...
Searching...
No Matches
realtime_session.cpp File Reference
Include dependency graph for realtime_session.cpp:

Namespaces

namespace  mb

Functions

MANTISBASE_API RealtimeAuthSnapshot mb::makeGuestAuthSnapshot ()
MANTISBASE_API std::string mb::resolveRealtimeToken (const drogon::HttpRequestPtr &req)
 Resolve bearer/API-key token from a realtime HTTP upgrade or SSE request.
MANTISBASE_API RealtimeAuthSnapshot mb::resolveRealtimeAuth (const MantisBase &app, const std::string &token)
 Hydrate auth from a JWT or mb_sk_ API key.
MANTISBASE_API TopicAccessResult mb::filterAuthorizedTopics (const MantisBase &app, const std::vector< std::string > &topics, const RealtimeAuthSnapshot &snap)
 Filter topics by entity access rules.
MANTISBASE_API MbAuthUpgradeResult mb::tryUpgradeAuth (RealtimeAuthSnapshot &session, const RealtimeAuthSnapshot &incoming)
 Apply incoming auth to an existing session (subscribe-time upgrade).
MANTISBASE_API std::string mb::generateRealtimeClientId (std::string_view prefix)
 Generate a unique realtime client/session ID.
MANTISBASE_API bool mb::isAuthenticatedSnapshot (const RealtimeAuthSnapshot &snap)
MANTISBASE_API bool mb::isAuthExpired (const RealtimeAuthSnapshot &snap, const MantisBase &app)
MANTISBASE_API void mb::touchWsSession (RealtimeWsSession &session)