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.
Format requests to the Schoology API
npm i schoology -S
To consume the Schoology API, you'll need an API key and secret. Find these by logging in to schoology and navigating to /api
(typically https://app.schoology.com/api or https://[your district].schoology.com/api)
Instantiate the client like this:
import SchoologyAPI from 'schooology'
const client = new SchoologyAPI(key, secret, site_base?, api_host?)
key
and secret
are required. If you log in to a unique district website eg. https://district123.schoology.com then send that as the third argument.
You probably don't need to send api_host
but it can be overridden as the fourth argument here.
Obtain a request token
await client.getRequestToken()
The SchoologyAPI instance stores the response token for subsequent requests.
Complete Oauth flow
This means redirecting the user to login at their schoology site where they will be prompted to approve access to their schoology account. Use SchoologyAPI to generate the correct redirect URL like this:
const url = client.getConnectURL(return_url)
After the user approves access, the schoology site will redirect the user back to return_url
.
Exchange the authorized request token for an access token.
await client.getAccessToken()
The SchoologyAPI instance stores the response token for subsequent requests.
Make requests!
const userInfo = await client.makeRequest('get', '/app-user-info')
FAQs
Format requests to the Schoology API
The npm package schoology receives a total of 47 weekly downloads. As such, schoology popularity was classified as not popular.
We found that schoology 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.