Module: FastMcpJwtAuth

Defined in:
lib/fast_mcp_jwt_auth.rb,
lib/fast_mcp_jwt_auth/railtie.rb,
lib/fast_mcp_jwt_auth/version.rb,
lib/fast_mcp_jwt_auth/configuration.rb,
lib/fast_mcp_jwt_auth/rack_transport_patch.rb

Overview

Monkey patch for FastMcp::Transports::RackTransport Adds JWT authentication support via Authorization header

Defined Under Namespace

Modules: RackTransportPatch Classes: Configuration, Error, Railtie

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



13
14
15
# File 'lib/fast_mcp_jwt_auth.rb', line 13

def configuration
  @configuration
end

Class Method Details

.configObject



21
22
23
# File 'lib/fast_mcp_jwt_auth.rb', line 21

def self.config
  self.configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



16
17
18
19
# File 'lib/fast_mcp_jwt_auth.rb', line 16

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.loggerObject

Simple logging helper - uses Rails.logger since this gem is Rails-specific



26
27
28
# File 'lib/fast_mcp_jwt_auth.rb', line 26

def self.logger
  Rails.logger
end