Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
oauth-activeresource
Advanced tools
= OauthActiveResource
Rails gem that allows you to easily interact with an Oauth secured rest API with the ActiveResource model. You have to provide an http-like object that signs your requests with your already retrieved access_token, like the one that the oauth gem provides (http://oauth.rubyforge.org/rdoc/classes/OAuth/AccessToken.html)
= Getting Started
Assuming that you are using oauth gem:
Add into your Gemfile:
gem 'oauth-activeresource'
Make your models inherit from OauthActiveResource instead ActiveResource
class MyModel < OauthActiveResource::Base end
Set a before_filter in your controllers to override your connection object with your access_token object
def set_oauth MyModel.oauth_connection = session[:request_token].get_access_token( :oauth_verifier => params[:oauth_verifier] ) end
Where session[:request_token] is your OAuth::Consumer and params[:oauth_verifier] the parameters that the authorizer is sending to your callback method.
FAQs
Unknown package
We found that oauth-activeresource demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.