Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Strategy to authenticate with WhoPlusYou via OAuth2 in OmniAuth.
Add to your Gemfile
:
gem 'omniauth-whoplusyou'
Then bundle install
.
Contact your WhoPlusYou instance administrator to be added access to the Developer Portal.
Visit the API Keys page to find your Client ID and Client Secret.
Set your Client Domains as needed with the exact redirect URI your application supports. Note that WhoPlusYou does not support any sort of wild card paths, so this must be an exact and full path to your reidrect URI.
For additional information, refer to the OmniAuth wiki.
Here's an example for adding the middleware to a Rails app in config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :whoplusyou,
ENV['WHOPLUSYOU_CLIENT_ID'],
ENV['WHOPLUSYOU_CLIENT_SECRET'],
client_options: {
site: 'https://myinstance.whoplusyou.com',
},
redirect_uri: Rails.application.routes.url_helpers.my_integration_response_url
end
You can now access the OmniAuth WhoPlusYou OAuth2 URL: /auth/whoplusyou
You can configure several options, which you pass in to the provider
method via a hash:
scope
: A space-separated list of permissions you want to request from the user.
redirect_uri
: Override the redirect_uri used by the gem. Note this must match exactly what you specified in the WhoPlusYou Developer Portal in your Client Domains setting.
name
: The name of the strategy. The default name is whoplusyou
but it can be changed to any value, for example wpy
. The OmniAuth URL will thus change to /auth/wpy
and the provider
key in the auth hash will then return wpy
.
Copyright (C) 2023 Jordan Ell. See LICENSE for details.
FAQs
Unknown package
We found that omniauth-whoplusyou 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.