File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 22
33module Hooks
44 module App
5+ # Provides authentication helpers for verifying incoming requests.
6+ #
7+ # @example Usage
8+ # include Hooks::App::Auth
9+ # validate_auth!(payload, headers, endpoint_config)
510 module Auth
6- # Verify the incoming request using the configured authentication method
11+ # Verifies the incoming request using the configured authentication method.
12+ #
13+ # @param payload [String, Hash] The request payload to authenticate.
14+ # @param headers [Hash] The request headers.
15+ # @param endpoint_config [Hash] The endpoint configuration, must include :auth key.
16+ # @raise [StandardError] Raises error if authentication fails or is misconfigured.
17+ # @return [void]
18+ # @note This method will halt execution with an error if authentication fails.
719 def validate_auth! ( payload , headers , endpoint_config )
820 auth_config = endpoint_config [ :auth ]
921 auth_plugin_type = auth_config [ :type ] . downcase
You can’t perform that action at this time.
0 commit comments