Module: ActionMCP::GatewayIdentifiers

Defined in:
lib/action_mcp/gateway_identifiers.rb,
lib/action_mcp/gateway_identifiers/devise_identifier.rb,
lib/action_mcp/gateway_identifiers/warden_identifier.rb,
lib/action_mcp/gateway_identifiers/api_key_identifier.rb,
lib/action_mcp/gateway_identifiers/request_env_identifier.rb

Overview

Example Gateway identifiers for common authentication patterns.

These identifiers provide ready-to-use implementations for popular Rails authentication patterns. You can use them directly or as templates for your own custom identifiers.

Examples:

Using in ApplicationGateway

class ApplicationGateway < ActionMCP::Gateway
  # Use multiple identifiers (tried in order)
  identified_by ActionMCP::GatewayIdentifiers::WardenIdentifier,
                ActionMCP::GatewayIdentifiers::ApiKeyIdentifier
end

Configuration

# config/mcp.yml
authentication_methods: ["warden", "api_key"]

Defined Under Namespace

Classes: ApiKeyIdentifier, DeviseIdentifier, RequestEnvIdentifier, WardenIdentifier