class
ActionController::MCPServer::AuthCache
- ActionController::MCPServer::AuthCache
- Reference
- Object
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.crConstant Summary
-
MAX_ENTRIES =
10000
Class Method Summary
-
.fingerprint(request : HTTP::Request) : String | Nil
returns the fingerprint of the credentials in the request,
nilif there are none
Instance Method Summary
- #clear : Nil
- #delete(fingerprint : String) : Nil
- #store(fingerprint : String, ttl : Time::Span) : Nil
- #valid?(fingerprint : String) : Bool
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