We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code below makes it impossible to use Basic Auth anywhere else in your app once the lighthouse API gem is included.
Why not set self.user and self.password on the Lighthouse::Base which inherits from ActiveResource?
module ActiveResource class Connection private def authorization_header (Lighthouse.email || Lighthouse.password ? { 'Authorization' => 'Basic ' + ["#{Lighthouse.email}:#{Lighthouse.password}"].pack('m').delete("\r\n") } : {}) end end end
The text was updated successfully, but these errors were encountered:
The lighthouse gem was written when active resource was still beta, so it's likely the feature just didn't exist.
Sorry, something went wrong.
Oh.
Cheers.
No branches or pull requests
The code below makes it impossible to use Basic Auth anywhere else in your app once the lighthouse API gem is included.
Why not set self.user and self.password on the Lighthouse::Base which inherits from ActiveResource?
The text was updated successfully, but these errors were encountered: