
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
The Magic Admin Ruby SDK provides convenient ways for developers to interact with Magic API endpoints and an array of utilities to handle DID Token.
See the Magic doc!
Add this line to your application's Gemfile:
gem 'magic-admin'
And then execute:
$ bundle
Or install it yourself as:
$ gem install magic-admin
Before you start, you will need an API secret key. You can get one from the Magic Dashboard. Once you have the API secret key, you can instantiate a Magic object.
require 'magic-admin'
magic = Magic.new(api_secret_key: '<YOUR_API_SECRET_KEY>')
magic.token.validate('DID_TOKEN')
# Read the docs to learn more! 🚀
Optionally if you would like, you can load the API secret key from the environment variable, MAGIC_API_SECRET_KEY
.
# Set the env variable `MAGIC_API_SECRET_KEY`.
magic = Magic.new
Note: The arguments passed to the Magic
object takes precedence over the environment variables.
The Magic
object also takes in retries
, timeout
and backoff
as optional arguments at the object instantiation time so you can override those values for your application setup.
magic = Magic.new(retries: 5, timeout: 10, backoff: 0.03)
See Changelog
See License
FAQs
Unknown package
We found that magic-admin 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.