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.
devise_oauth2_canvas_facebook
Advanced tools
Only Rails 3 is supported.
Uses fbgraph (http://github.com/nsanta/fbgraph) Could use the Oauth2 gem directly, but it is more than likely that you would want to use other features of facebook (ie post feed updates).
Setup devise (http://github.com/plataformatec/devise), use Rails 3
Include the gem in Gemfile after devise: gem 'devise' gem 'devise_oauth2_canvas_facebook'
Include the ':devise_oauth2_canvas_facebook' in your model:
devise :database_authenticatable, :registerable, :confirmable, :recoverable, :rememberable, :trackable, :validatable, :devise_oauth2_canvas_facebook
Add the following config options:
$ config/initializers/devise.rb
config.facebook_api_key = "KEY" config.facebook_api_secret = "SECRET" config.facebook_permissions = 'offline_access,email,publish_stream'
Good minimum to have is "offline_access,email"
Create a migration file to add the columns:
add_column :users, :facebook_uid, :string add_column :users, :facebook_token, :string
Finally, update your view to include "Login with facebook" link: <%= link_to "Login with facebook", user_fb_auth_path %>
How to use, facebook canvas applications
As above, except with this configuration:
$ config/initializers/devise.rb
config.facebook_api_key = "KEY" config.facebook_api_secret = "SECRET" config.facebook_permissions = 'offline_access,email,publish_stream' config.facebook_canvas_app = true config.facebook_canvas_url = 'your_facebook_canvas_app_url'
FAQs
Unknown package
We found that devise_oauth2_canvas_facebook 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.