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

Skip to High_voltage pages #335

Open
dcalixto opened this issue May 29, 2018 · 0 comments
Open

Skip to High_voltage pages #335

dcalixto opened this issue May 29, 2018 · 0 comments
Labels
support request This issue is a request for support using Simple Token Authentication.

Comments

@dcalixto
Copy link

After setup the gem into AppController i've tried to place some static pages in the land page using high_voltage but always shows the unauthorized error.
is there any workaround on this?

Started GET "/pages/about" for 127.0.0.1 at 2018-05-29 15:29:51 -0300
Processing by HighVoltage::PagesController#show as HTML
Parameters: {"id"=>"about"}
Completed 401 Unauthorized in 4ms (ActiveRecord: 0.0ms)

Started GET "/users/login" for 127.0.0.1 at 2018-05-29 15:29:51 -0300
Processing by Devise::SessionsController#new as HTML

class ApplicationController < ActionController::Base
  acts_as_token_authentication_handler_for User,  fallback_to_devise: false
  before_action :authenticate_user!, except: [:pages_controller]
def pages_controller
    HighVoltage::PagesController
end
end
@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