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
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .config ⇒ Object
- .configure {|configuration| ... } ⇒ Object
-
.logger ⇒ Object
Simple logging helper - uses Rails.logger since this gem is Rails-specific.
Class Attribute Details
.configuration ⇒ Object
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
.config ⇒ Object
21 22 23 |
# File 'lib/fast_mcp_jwt_auth.rb', line 21 def self.config self.configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
16 17 18 19 |
# File 'lib/fast_mcp_jwt_auth.rb', line 16 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.logger ⇒ Object
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 |