class ActionController::MCPServer::AuthCache

Overview

caches successful authentication checks, keyed by a fingerprint of the forwarded credentials, so the application isn't consulted on every message

Defined in:

action-controller/mcp/auth.cr

Constant Summary

MAX_ENTRIES = 10000

Class Method Summary

Instance Method Summary

Class Method Detail

def self.fingerprint(request : HTTP::Request) : String | Nil #

returns the fingerprint of the credentials in the request, nil if there are none


[View source]

Instance Method Detail

def clear : Nil #

[View source]
def delete(fingerprint : String) : Nil #

[View source]
def store(fingerprint : String, ttl : Time::Span) : Nil #

[View source]
def valid?(fingerprint : String) : Bool #

[View source]