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

No resource_class found #838

Closed
frodrigueza opened this issue Feb 24, 2017 · 1 comment
Closed

No resource_class found #838

frodrigueza opened this issue Feb 24, 2017 · 1 comment

Comments

@frodrigueza
Copy link

frodrigueza commented Feb 24, 2017

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

@zachfeldman
Copy link
Contributor

@frodrigueza have you tried supering into the parent method and looking into if the resource_class is being found or not?

Closing for now, feel free to reopen if still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants