Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
omniauth-myob-adfs-oauth
Advanced tools
Strategy to authenticate with MYOB via ADFS OAuth2 in OmniAuth.
Add this line to your application's Gemfile:
gem 'omniauth-myob-adfs-oauth2'
And then execute:
$ bundle install
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 :myob_adfs_oauth2, your_client_id, your_client_secret
end
You can configure several options, which you pass in to the provider method via a hash:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :myob_oauth2, your_client_id, your_client_secret,
{
client_options: { site: 'https://test.secure.myob.com' }, #set the target site to SIT
scope: 'mydot.assets' #set the scope you want
}
end
Here's an example of an authentication hash available in the callback by accessing request.env["omniauth.auth"]:
{
"provider"=>"myob_oauth2",
"uid"=>"ab359535-7be6-49a2-b9fd-xxxxxxx",
"info"=>{
"email"=>"test@my.com",
"name"=>"test@my.com"
},
"credentials"=>{
"token"=>"a token",
"refresh_token"=>"a refresh token,
"expires_at"=>1406161910,
"expires"=>true
},
"extra"=>{
"raw_info"=>{
"uid"=>"ab359535-7be6-49a2-b9fd-db65af2e22e7",
"username"=>"vidya@my.com"}
}
}
}
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that omniauth-myob-adfs-oauth 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.