Sha256: c7de5b8e84cd0e3a2cdbc78d3e1e283da6b4da76f8f2326eea96573629fdd63d

Contents?: true

Size: 398 Bytes

Versions: 14

Compression:

Stored size: 398 Bytes

Contents

module TokenAuthenticateMe
  class HeaderAuthentication
    attr :controller

    def initialize(controller:)
      @controller = controller
    end

    def authenticate(options = {})
      controller.authenticate_with_http_token(&method(:token_handler))
    end

    private

    def token_handler(token, options)
      token_handler = controller.token_handler(token, options)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
token_authenticate_me-0.9.2 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.11.2 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.11.1 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.11.0 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.10.0 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.9.1 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.9.0 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.8.0 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.7.0 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.6.0 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.5.7 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.5.6 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.5.5 lib/token_authenticate_me/header_authentication.rb
token_authenticate_me-0.5.4 lib/token_authenticate_me/header_authentication.rb