You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have installed this gem and have done configuration as are described in docs. But i wonder that this gem doesn't protect data. I imagine that i should do api request with valid email + token in header and get response with data and if email or token are wrong then i should get error in response, but i all time get Ok response. For example here of my simple controller:
class Api::V1::PropertiesController < ApplicationController
acts_as_token_authentication_handler_for User
respond_to :json
def index
properties = Property.all
respond_with properties
end
end
and even with invalid data i get properties in server response. Why? Do i miss something or it is incorrect work of the gem?
The text was updated successfully, but these errors were encountered:
i have installed this gem and have done configuration as are described in docs. But i wonder that this gem doesn't protect data. I imagine that i should do api request with valid email + token in header and get response with data and if email or token are wrong then i should get error in response, but i all time get Ok response. For example here of my simple controller:
and even with invalid data i get properties in server response. Why? Do i miss something or it is incorrect work of the gem?
The text was updated successfully, but these errors were encountered: