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

Sub-ressource does not apply auth options with load! #143

Open
nethad opened this issue Jul 28, 2016 · 1 comment
Open

Sub-ressource does not apply auth options with load! #143

nethad opened this issue Jul 28, 2016 · 1 comment

Comments

@nethad
Copy link

nethad commented Jul 28, 2016

Example:

=> <IS::Place{:href=>"http://datastore/v2/places/123"}>
[11] pry(main)> sub_ressource_place.load!
ETHON: performed EASY effective_url=http://datastore/v2/places/123 response_code=401 return_code=ok total_time=0.015113
LHC::Unauthorized: get http://datastore/v2/places/123
Params: {:url=>"http://datastore/v2/places/123", :method=>:get}
Headers: {"User-Agent"=>"Typhoeus - https://github.com/typhoeus/typhoeus"}
Response Code: 401
{"error":"unauthorized","error_description":"An Authentication object was not found in the SecurityContext"}
LHC::Unauthorized
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/lhc-3.5.5/lib/lhc/request.rb:105:in `throw_error'
@10xSebastian
Copy link
Contributor

Actually load! is not the problem as it should already take the options from Record's endpoint: https://github.com/local-ch/lhs/pull/145/files

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