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
{{ message }}
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.
If you're using a namespaced model, Knock won't be able to infer it automatically from the method name. Instead you can use authenticate_for directly like this:
This gem relies on method_missing to do the actuall authentication work.
However authenticate_v1_user defined in ApplicationController will override it and return a nil when lacking a valid token, what you really need is a head(:unauthorized) response.
I could be wrong since I'm not familiar with the gem. IMO this is a big security issue.
The text was updated successfully, but these errors were encountered:
This is what doc suggests
This gem relies on method_missing to do the actuall authentication work.
However
authenticate_v1_user
defined inApplicationController
will override it and return anil
when lacking a valid token, what you really need is ahead(:unauthorized)
response.I could be wrong since I'm not familiar with the gem. IMO this is a big security issue.
The text was updated successfully, but these errors were encountered: