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.
omniauth-tiktok-loginkit
Advanced tools
OmniAuth Strategy for TikTok LoginKit
Using TikTok Oauth API v2.
Configure with CLIENT_KEY and CLIENT_SECRET from TikTok Developers Portal (https://developers.tiktok.com/apps/). Note CLIENT_KEY is the value of "Client Key" field, not "App ID" on the portal.
TikTok requires apps to be approved by review before it can access any APIs, including the Oauth APIs. Also any configuration change to the app will cause it to be back in "Staging" status. So please configure all neccessary "Redirect URI" correctly before submitting a review.
TikTok also rejects any "Test App", so it's better to configure test / dev environment redirect URI on the production app.
Rails.application.config.middleware.use OmniAuth::Builder do
provider(
:tiktok_loginkit,
CLIENT_KEY,
CLIENT_SECRET,
*options
)
end
...Or with devise (https://github.com/heartcombo/devise#omniauth)
# config/initializers/devise.rb
config.omniauth(
:tiktok_loginkit,
CLIENT_KEY,
CLIENT_SECRET,
...options
)
name
: change endpoint to /auth/tiktok_another, /auth/tiktok_another/callback. default: "tiktok_login"
skip_info
: skip User Info API call to retrieve info
hash. default: false
scope
: oauth scopes, seperated by comma. default: "user.info.basic"
Example of request.env["omniauth.auth"]
can be found in the specs:
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that omniauth-tiktok-loginkit demonstrated a healthy version release cadence and project activity because the last version was released less than 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.