{"id":13879284,"url":"https://github.com/magiclabs/magic-admin-ruby","last_synced_at":"2025-07-01T20:33:03.980Z","repository":{"id":42449102,"uuid":"286803064","full_name":"magiclabs/magic-admin-ruby","owner":"magiclabs","description":"Magic admin Ruby SDK makes it easy to leverage Decentralized ID tokens to protect routes and restricted resources for your application.","archived":false,"fork":false,"pushed_at":"2023-07-10T20:47:25.000Z","size":419,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-11-24T08:32:50.115Z","etag":null,"topics":["authentication","identity","passwordless","ruby"],"latest_commit_sha":null,"homepage":"https://docs.magic.link/admin-sdk/ruby","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magiclabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-11T17:10:25.000Z","updated_at":"2024-10-31T16:23:13.000Z","dependencies_parsed_at":"2024-11-24T08:41:20.123Z","dependency_job_id":null,"html_url":"https://github.com/magiclabs/magic-admin-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/magiclabs/magic-admin-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fmagic-admin-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fmagic-admin-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fmagic-admin-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fmagic-admin-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclabs","download_url":"https://codeload.github.com/magiclabs/magic-admin-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fmagic-admin-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263033183,"owners_count":23403112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","identity","passwordless","ruby"],"created_at":"2024-08-06T08:02:16.175Z","updated_at":"2025-07-01T20:33:03.827Z","avatar_url":"https://github.com/magiclabs.png","language":"Ruby","readme":"# Magic Admin Ruby SDK\n\nThe Magic Admin Ruby SDK provides convenient ways for developers to interact with Magic API endpoints and an array of utilities to handle [DID Token](https://magic.link/docs/introduction/decentralized-id).\n\n## Table of Contents\n\n* [Documentation](#documentation)\n* [Quick Start](#quick-start)\n* [Changelog](#changelog)\n* [License](#license)\n\n## Documentation\nSee the [Magic doc](https://magic.link/docs/api-reference/server-side-sdks/ruby)!\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'magic-admin'\n```\n\nAnd then execute:\n\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install magic-admin\n```\n\n### Prerequisites\n\n- Ruby 2.5+\n\n## Quick Start\nBefore you start, you will need an API secret key. You can get one from the [Magic Dashboard](https://dashboard.magic.link/). Once you have the API secret key, you can instantiate a Magic object.\n\n```ruby\nrequire 'magic-admin'\n\nmagic = Magic.new(api_secret_key: '\u003cYOUR_API_SECRET_KEY\u003e')\n\nmagic.token.validate('DID_TOKEN')\n\n# Read the docs to learn more! 🚀\n```\n\nOptionally if you would like, you can load the API secret key from the environment variable, `MAGIC_API_SECRET_KEY`.\n\n```ruby\n# Set the env variable `MAGIC_API_SECRET_KEY`.\n\nmagic = Magic.new\n```\n\n**Note**: The arguments passed to the `Magic` object takes precedence over the environment variables.\n\n### Configure Network Strategy\nThe `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.\n\n```ruby\nmagic = Magic.new(retries: 5, timeout: 10, backoff: 0.03)\n\n```\n\n## Changelog\nSee [Changelog](CHANGELOG.md)\n\n## License\nSee [License](LICENSE.txt)\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Fmagic-admin-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclabs%2Fmagic-admin-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Fmagic-admin-ruby/lists"}