Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem doesn't protect data? #354

Open
wolf-hub opened this issue Oct 21, 2019 · 0 comments
Open

Gem doesn't protect data? #354

wolf-hub opened this issue Oct 21, 2019 · 0 comments
Labels
support request This issue is a request for support using Simple Token Authentication.

Comments

@wolf-hub
Copy link

wolf-hub commented Oct 21, 2019

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?

@gonzalo-bulnes gonzalo-bulnes added the support request This issue is a request for support using Simple Token Authentication. label Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request This issue is a request for support using Simple Token Authentication.
Projects
None yet
Development

No branches or pull requests

2 participants