-
Couldn't load subscription status.
- Fork 239
Supported Frameworks
Support exists for Rails applications, Rails API and Rails Metal applications. Experimental support exists for Grape applications.
Available since: v1.0.0
Any controller which inherits from ActionController::Base can act as a token authentication handler:
SomeController < ActionController::Base
acts_as_token_authentication_handler_for User
endAvailable since: v1.7.0
Any controller which inherits from ActionController::API can act as a token authentication handler:
SomeController < ActionController::API
acts_as_token_authentication_handler_for User
endAvailable since: v1.12.0
Any controller which inherits from ActionController::Metal can act as a token authentication handler:
SomeController < ActionController::Metal
acts_as_token_authentication_handler_for User
endSee it in action in this example application!
Experimental: see #138 for details
It allows any controller which inherits from Grape::API to act as a token authentication handler:
SomeController < Grape::API
acts_as_token_authentication_handler_for User
end