class

Session::ClientFingerprint

Inherits JSON::Serializable < Reference < Object

Client fingerprint for session binding

Constructors

from_request(request : HTTP::Request) : ClientFingerprint

Create fingerprint from request context

Source
new(pull : JSON::PullParser)
Source
new(ip_hash : String | Nil = nil, user_agent_hash : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

binding_enabled?

Check if binding is enabled

Source

Instance methods

empty?

Check if fingerprint is empty (no binding set)

Source
ip_hash
Source
ip_hash=(ip_hash : String | Nil)
Source
user_agent_hash
Source
user_agent_hash=(user_agent_hash : String | Nil)
Source
validate!(request : HTTP::Request) : Nil

Validate fingerprint against current request

Source