Class: ActionMCP::GatewayIdentifiers::DeviseIdentifier
- Inherits:
-
ActionMCP::GatewayIdentifier
- Object
- ActionMCP::GatewayIdentifier
- ActionMCP::GatewayIdentifiers::DeviseIdentifier
- Defined in:
- lib/action_mcp/gateway_identifiers/devise_identifier.rb
Overview
Example Gateway identifier for direct Devise integration.
This identifier looks for the user directly in request.env which may be set by custom Devise middleware or helpers.
Instance Method Summary collapse
Methods inherited from ActionMCP::GatewayIdentifier
authenticates, identifier, #initialize
Constructor Details
This class inherits a constructor from ActionMCP::GatewayIdentifier
Instance Method Details
#resolve ⇒ Object
26 27 28 29 30 31 |
# File 'lib/action_mcp/gateway_identifiers/devise_identifier.rb', line 26 def resolve user = @request.env["devise.user"] raise , "Not authenticated" unless user user end |