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
Hi, Im trying to access a route in one of my controllers. I looks like this:
class ExternalAuthsController < DeviseTokenAuth::OmniauthCallbacksController
include DeviseTokenAuth::Concerns::SetUserByToken
skip_before_filter :authenticate_user!, :only => [:clave_unica_callback, :redirect]
def client_certificate_callback
if valid_authenticity_token?(session, state)
if current_entity_user
render json: {message: 'ok'}
end
end
end
end
entity_user is another model class I use to authenticate
But it raises No resource_class found when it tries current_entity_user. Help?
Thanks
The text was updated successfully, but these errors were encountered:
Hi, Im trying to access a route in one of my controllers. I looks like this:
entity_user is another model class I use to authenticate
But it raises
No resource_class found
when it tries current_entity_user. Help?Thanks
The text was updated successfully, but these errors were encountered: