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
user_signed_in? calls Warden::Proxy#authenticate which ultimately calls Devise::Doorkeeper::Strategies::Doorkeeper#authenticate! which throws if a given token is invalid.
I believe the intent behind user_signed_in? and the Warden::Proxy#authenticate are to be passive auth checks and should not throw. I'm not sure if this is a problem with the implementation of the Strategy or with the implementation of Warden::Proxy#run_strategies_for. I notice that the Strategies wiki does not mention using throw :warden but the Failures wiki does. The documentation on Warden::Strategies::Base is ambigious.
The text was updated successfully, but these errors were encountered:
user_signed_in?
callsWarden::Proxy#authenticate
which ultimately callsDevise::Doorkeeper::Strategies::Doorkeeper#authenticate!
which throws if a given token is invalid.I believe the intent behind
user_signed_in?
and theWarden::Proxy#authenticate
are to be passive auth checks and should not throw. I'm not sure if this is a problem with the implementation of the Strategy or with the implementation ofWarden::Proxy#run_strategies_for
. I notice that the Strategies wiki does not mention usingthrow :warden
but the Failures wiki does. The documentation onWarden::Strategies::Base
is ambigious.The text was updated successfully, but these errors were encountered: