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.
cordova-plugin-sso
Advanced tools
If you use this plugin, you can be available for realizing SSO (Single Sign On) at Twitter, Facebook and LINE
$ cordova plguin add cordova-plugin-sso
And add config.xml below code
<plugin name="cordova-plugin-sso" spec="0.0.9">
<variable name="LINE_BUNDLE_ID" value="line3rdp.[YOUR BUNDLE ID]" />
<variable name="LINE_CHANNEL_ID" value=[LINE_CHANNLE_ID] />
<variable name="TWITTER_KEY" value=[Twitter Consumer Key] />
<variable name="TWITTER_SECRET" value=[Twitter Consumer Secret] />
<variable name="FACEBOOK_APP_ID" value=[Facebook app id] />
<variable name="FACEBOOK_APP_NAME" value=[Facebook app name] />
</plugin>
$ keytool -exportcert -alias androiddebugkey -keystore .keystore | openssl sha1 -binary | openssl md5
if (window.sso) {
sso.twitter.login(function(result) {
// success
var data = {
name: result.name,
id: result.userId,
token: result.token,
picture: result.image
};
}, function(error) {
// error
console.log(error);
});
}
Every service has below parameters
Optional parameters below
If you have been logined once, the accessToken was saved in the device. So if you want to get the Token, profile, or etc.. from the beginning, you have to execute 'logout' method.
if (window.sso) {
sso.twitter.logout(function(message) {
// success
console.log(message) // -> display logout
}, function(error) {
// error
console.log(error);
});
}
FAQs
cordova-plugin-sso
We found that cordova-plugin-sso demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.