Skip to main content

Module auth

Module auth 

Source

Structsยง

AuthProof ๐Ÿ”’
Proves verify_websocket_claims accepted the token for the selected room.
HttpDisconnectClaims
HttpRoomClaims
NumericDate
RFC 7519 seconds since the Unix epoch with subsecond precision.
RegisteredJwtClaims
Registered JWT claims from RFC 7519 section 4.1.
WebSocketConnectClaims
WebSocketWireClaims ๐Ÿ”’
Wire identities remain separate because Odoo internal users send both keys. The RTC session identifies the participant, while the account does not.

Enumsยง

AuthenticationError

Constantsยง

MAX_IAT_FUTURE_SKEW ๐Ÿ”’
Local skew guard for iat.
MAX_JWT_TOKEN_BYTES

Functionsยง

decode_jwt_segment ๐Ÿ”’
decode_key ๐Ÿ”’
decode_signing_key ๐Ÿ”’
Decodes boundary key material and enforces the RFC 7518 HS256 minimum.
derive_key_from_seed ๐Ÿ”’
duration_since_epoch ๐Ÿ”’
pad_base64 ๐Ÿ”’
sign
Errors
sign_hs256 ๐Ÿ”’
split_token ๐Ÿ”’
unverified_websocket_room ๐Ÿ”’
Extracts a candidate room ID without authenticating the token.
validate_registered_claims ๐Ÿ”’
validate_registered_claims_at ๐Ÿ”’
validate_token_length ๐Ÿ”’
verify
Errors
verify_claims ๐Ÿ”’
Applies the same JWT policy as verify with a decoded signing key.
verify_hs256 ๐Ÿ”’
verify_websocket_claims ๐Ÿ”’
Verifies a room-scoped token and resolves its runtime participant identity.

Type Aliasesยง

HmacSha256 ๐Ÿ”’