Sha256: 3eec8df15bcc26f0ad5d6af72d25936b4dbd68d7169438ecfe0f0639bf908448

Contents?: true

Size: 458 Bytes

Versions: 7

Compression:

Stored size: 458 Bytes

Contents

module SimpleTokenAuthentication
  class FallbackAuthenticationHandler
    # Devise authentication is performed through a controller
    # which includes Devise::Controllers::Helpers
    # See http://rdoc.info/github/plataformatec/devise/master/\
    #            Devise/Controllers/Helpers#define_helpers-class_method
    def authenticate_entity!(controller, entity)
      controller.send("authenticate_#{entity.name_underscore}!".to_sym)
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
simple_token_authentication-1.9.1 lib/simple_token_authentication/fallback_authentication_handler.rb
simple_token_authentication-1.9.0 lib/simple_token_authentication/fallback_authentication_handler.rb
simple_token_authentication-1.8.0 lib/simple_token_authentication/fallback_authentication_handler.rb
stn-simple_token_authentication-1.7.1 lib/simple_token_authentication/fallback_authentication_handler.rb
simple_token_authentication-1.7.0 lib/simple_token_authentication/fallback_authentication_handler.rb
simple_token_authentication-1.6.0 lib/simple_token_authentication/fallback_authentication_handler.rb
simple_token_authentication-1.5.2 lib/simple_token_authentication/fallback_authentication_handler.rb