Module: FastMcpJwtAuth::RackTransportPatch::JwtAuthenticationPatch

Defined in:
lib/fast_mcp_jwt_auth/rack_transport_patch.rb

Overview

The actual patch module that gets prepended

Instance Method Summary collapse

Instance Method Details

#handle_mcp_request(request, env) ⇒ Object



36
37
38
39
40
41
# File 'lib/fast_mcp_jwt_auth/rack_transport_patch.rb', line 36

def handle_mcp_request(request, env)
  authenticate_user_from_jwt(request)
  super
ensure
  clear_current_user
end