simple_token_authentication
simple_token_authentication copied to clipboard
Simple (and safe*) token authentication for Rails apps or API with Devise.
@gonzalo-bulnes Please review it for me 😆
``` acts_as_token_authentication_handler_for Guest, fallback: :none acts_as_token_authentication_handler_for User, fallback: :exception ``` In this case, user authentication works, but trying to authenticate as a guest returns 401. Same if `fallback: :exception` is...
Hello, I'm using a typeForm in my app. This is the Json it's sends to my API : `Parameters: {"event_id"=>"LtWXD3crgy", "event_type"=>"form_response", "form_response"=>{"form_id"=>"lT4Z3j", "token"=>"a3a12ec67a1365927098a606107fac15", "submitted_at"=>"2018-01-18T18:17:02Z", "hidden"=>{"source"=>"xxxxx", "user_email"=>"[email protected]", "user_token"=>"HbLYEWD7fbWk1DqMZJ3z"}, "landed_at"=>"2018-01-18T18:07:02Z", "calculated"=>{"score"=>9}, "definition"=>{"id"=>"lT4Z3j",...
Would it be possible to get an example of how to have a dead simple rails app which uses devise for normal web based access and simple_token_authentication from say a...
I have set simple_token_authentication to login the user by header data (email and token) on first call and make his session authenticated on all subsequent calls. I wonder, how to...
## The Problem After installing 'simple_token_authentication', tests, that ensure belongs_to associations are required, now fail (presence is required by default in Rails 5). I tried removing each change and it...
If I add this line: ``` ruby acts_as_token_authentication_handler_for User ``` to my ApplicationController, I get the error: `load_missing_constant': Circular dependency detected while autoloading constant User (RuntimeError) If I add it...
**When** I have a specific token authentication scenario in mind **And** I wonder if _Simple Token Authentication_ is the right tool for the job **I want** to get a quick...
**As a** developer **In order to** avoid mistakes when using _Simple Token Authentication_ **I want** the documentation to the most common use cases **As an** documentation contributor **In order to**...
I am forcing JSON response and using `fallback: :exception`, and the response is ``` { "error": "" } ``` although the code in `ExceptionCallbackHandler` says ``` throw(:warden, scope: entity.name_underscore.to_sym) if...