diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index aceaac4e86b447ff9d722d922b68ebfe24081e1e..c535db8de7ba974e2972aadcea579729e03e2f2b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base @dspace_service ||= DspaceService.new( DspaceService.create_dspace_client( Rails.application.secrets.dspace_host, - get_remote_authenticable_token + get_dspace_authenticable_token ) ) end @@ -24,7 +24,7 @@ class ApplicationController < ActionController::Base warden.authenticate!(opts) if !devise_controller? || opts.delete(:force) end - def get_remote_authenticable_token + def get_dspace_authenticable_token session[:dspace_auth_token] || nil end diff --git a/config/secrets.yml b/config/secrets.yml index c638df4270769ff2a3ac550c17633e2beeeb535a..ad42162227642c4a0ccc8999bb3683973492c0bd 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -23,4 +23,4 @@ test: production: secret_token: <%= ENV["SECRET_TOKEN"] %> secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> - dspace_host: https://portalmecdev.c3sl.ufpr.br:8443/rest + dspace_host: https://portalmecdev.c3sl.ufpr.br:8443/rest \ No newline at end of file