{"id":18321106,"url":"https://github.com/workos/ruby-magic-link-example","last_synced_at":"2025-07-24T08:40:55.744Z","repository":{"id":40523692,"uuid":"314638503","full_name":"workos/ruby-magic-link-example","owner":"workos","description":"An example Sinatra application demonstrating how to use the WorkOS Ruby SDK to support Magic Link.","archived":false,"fork":false,"pushed_at":"2024-02-28T23:35:17.000Z","size":13,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T20:50:19.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/workos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-11-20T18:32:29.000Z","updated_at":"2022-05-03T23:48:12.000Z","dependencies_parsed_at":"2025-02-15T08:28:42.520Z","dependency_job_id":"072f5d2f-93cd-4ebc-9410-9ce01616925a","html_url":"https://github.com/workos/ruby-magic-link-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fruby-magic-link-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fruby-magic-link-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fruby-magic-link-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fruby-magic-link-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/ruby-magic-link-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054986,"owners_count":21040104,"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":[],"created_at":"2024-11-05T18:18:21.261Z","updated_at":"2025-04-09T14:30:29.075Z","avatar_url":"https://github.com/workos.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-magic-link-example\n\nAn example Sinatra application demonstrating how Magic Link works with WorkOS and Ruby.\n\n## Clone and Install\n\nClone this repo and install dependencies:\n\n```sh\ngit clone https://github.com/workos-inc/ruby-magic-link-example.git \u0026\u0026 cd ruby-magic-link-example \u0026\u0026 bundle install\n```\n\n## Configure your environment\n\n1. Grab your [API Key](https://dashboard.workos.com/api-keys).\n2. Run `cp .env.example .env` and add your API key. The `workos` gem will read your API key from the ENV variable `WORKOS_API_KEY`. You may also set the API key yourself by adding `WorkOS.key = $YOUR_API_KEY` to `app.rb`.\n2. Create an [SSO Connection for the Magic Link](https://dashboard.workos.com/sso/connections).\n3. Add a [Redirect URI](https://dashboard.workos.com/sso/configuration) with the value `http://localhost:4567/callback`.\n4. Get your [Project ID](https://dashboard.workos.com/sso/configuration).\n5. Update `app.rb`:\n\n```ruby\nPROJECT_ID = \"$YOUR_PROJECT_ID\"\nREDIRECT_URI = \"$YOUR_REDIRECT_URI\"\n```\n\n## Run the app and log in using SSO\n\n```sh\nruby app.rb\n```\n\nHead to `http://localhost:4567` and submit your email. Then, click on the MagicLink\nin the email sent from WorkOS to authenticate to the example app.\n\nFor more information, see the [WorkOS Ruby SDK documentation](https://docs.workos.com/sdk/ruby).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fruby-magic-link-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Fruby-magic-link-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fruby-magic-link-example/lists"}