Skip to main content

Module auth

Module auth 

Source

Structsยง

AuthProof ๐Ÿ”’
Proves verify accepted a JWT under the supplied key.
HttpDisconnectClaims
HttpRoomClaims
NumericDate
RFC 7519 seconds since the Unix epoch with subsecond precision.
RegisteredJwtClaims
Registered JWT claims from RFC 7519 section 4.1.
WebSocketConnectClaims

Enumsยง

AuthenticationError

Constantsยง

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

Functionsยง

decode_jwt_segment ๐Ÿ”’
decode_key ๐Ÿ”’
decode_unverified_claims ๐Ÿ”’
decode untrusted JWT claims for candidate room selection only
derive_key_from_seed ๐Ÿ”’
duration_since_epoch ๐Ÿ”’
pad_base64 ๐Ÿ”’
sign
Errors
sign_hs256 ๐Ÿ”’
split_token ๐Ÿ”’
validate_registered_claims ๐Ÿ”’
validate_registered_claims_at ๐Ÿ”’
validate_token_length ๐Ÿ”’
verify
Errors
verify_hs256 ๐Ÿ”’
verify_with_proof ๐Ÿ”’
Returns verified claims with proof or the AuthenticationError from verify.

Type Aliasesยง

HmacSha256 ๐Ÿ”’