{"id":18298491,"url":"https://github.com/fusionauth/fusionauth-quickstart-ruby-on-rails-api","last_synced_at":"2026-02-14T12:37:33.872Z","repository":{"id":194589777,"uuid":"687517311","full_name":"FusionAuth/fusionauth-quickstart-ruby-on-rails-api","owner":"FusionAuth","description":"Quickstart Integration of a Ruby on Rails API with FusionAuth","archived":false,"fork":false,"pushed_at":"2026-02-06T22:54:55.000Z","size":54,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-02-07T09:44:49.349Z","etag":null,"topics":["api","fusionauth","jwt","ruby-on-rails"],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FusionAuth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-05T14:13:57.000Z","updated_at":"2024-07-28T05:57:20.000Z","dependencies_parsed_at":"2024-04-26T01:27:46.883Z","dependency_job_id":"aa140d84-5410-42a6-b807-98120f5c9afb","html_url":"https://github.com/FusionAuth/fusionauth-quickstart-ruby-on-rails-api","commit_stats":null,"previous_names":["fusionauth/fusionauth-quickstart-ruby-on-rails-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FusionAuth/fusionauth-quickstart-ruby-on-rails-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-ruby-on-rails-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-ruby-on-rails-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-ruby-on-rails-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-ruby-on-rails-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FusionAuth","download_url":"https://codeload.github.com/FusionAuth/fusionauth-quickstart-ruby-on-rails-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-ruby-on-rails-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","fusionauth","jwt","ruby-on-rails"],"created_at":"2024-11-05T15:06:10.721Z","updated_at":"2026-02-14T12:37:33.855Z","avatar_url":"https://github.com/FusionAuth.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quickstart: Ruby on Rails Resource Server with FusionAuth\n\nThis repository contains a Ruby on Rails application that works with a locally-running instance of [FusionAuth](https://fusionauth.io/), the authentication and authorization platform.\n\n## Setup\n\n### Prerequisites\nYou will need the following things properly installed on your computer.\n\n- [Ruby 2.7.x](https://rubyonrails.org/): This quickstart was built using Ruby 2.7. This example may work on different versions of Rails, but it has not been tested.\n- [Rails 7.0.x.x](https://rubyonrails.org/): This quickstart was built using Rails 7.0.7.2. This example may work on different versions of Rails, but it has not been tested.\n- [SQLite](https://www.sqlite.org/download.html): This quickstart was built using sqlite3 (please note MacOS comes with sqlite3).\n- [Docker](https://www.docker.com): The quickest way to stand up FusionAuth. Ensure you also have [docker compose](https://docs.docker.com/compose/) installed.\n- (Alternatively, you can [Install FusionAuth Manually](https://fusionauth.io/docs/v1/tech/installation-guide/)).\n\n### FusionAuth Installation via Docker\n\nThe root of this project directory (next to this README) are two files [a Docker compose file](./docker-compose.yml) and an [environment variables configuration file](./.env). Assuming you have Docker installed on your machine, you can stand up FusionAuth up on your machine with:\n\n```\ndocker compose up -d\n```\n\nThe FusionAuth configuration files also make use of a unique feature of FusionAuth, called [Kickstart](https://fusionauth.io/docs/v1/tech/installation-guide/kickstart): when FusionAuth comes up for the first time, it will look at the [Kickstart file](./kickstart/kickstart.json) and mimic API calls to configure FusionAuth for use when it is first run.\n\n\u003e **NOTE**: If you ever want to reset the FusionAuth system, delete the volumes created by docker-compose by executing `docker-compose down -v`.\n\nFusionAuth will be initially configured with these settings:\n\n* Your client Id is: `e9fdb985-9173-4e01-9d73-ac2d60d1dc8e`\n* Your client secret is: `super-secret-secret-that-should-be-regenerated-for-production`\n* Your admin username is `admin@example.com` and your password is `password`.\n* Your teller username is `teller@example.com` and your password is `password`.\n* Your customer username is `customer@example.com` and your password is `password`.\n* Your fusionAuthBaseUrl is `http://localhost:9011/`\n\nYou can log into the [FusionAuth admin UI](http://localhost:9011/admin) and look around if you want, but with Docker/Kickstart you don't need to.\n\n### Ruby on Rails API complete-application\n\nThe `complete-application` directory contains a minimal Ruby on Rails app configured to authenticate with locally running FusionAuth.\n\nInstall the dependencies via the Gemfile\n```\ncd complete-application\nbundle install\nbundle e rails s -p 4001\n```\n\nThe app is now serving two api endpoints\n - [http://localhost:4001/make-change](http://localhost:4001/make-change) - this endpoint calculates the change to make from a given total\n - [http://localhost:4001/panic](http://localhost:4001/panic) - this endpoint simulates notifying the police of an incident.\n\nYou can login with a user preconfigured during Kickstart, `teller@example.com` with the password of `password` and `applicationId` by calling:\n\n```sh\ncurl --location 'https://local.fusionauth.io/api/login' \\\n--header 'Authorization: this_really_should_be_a_long_random_alphanumeric_value_but_this_still_works' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n  \"loginId\": \"teller@example.com\",\n  \"password\": \"password\",\n  \"applicationId\": \"e9fdb985-9173-4e01-9d73-ac2d60d1dc8e\"\n}'\n```\n\nYou can take the token from the response and then call one of the endpoints listed above by calling:\n\n```sh\ncurl --location 'http://localhost:4001/make-change?total=5.12' \\\n--cookie 'app.at=\u003cyour_token\u003e'\n```\n\nor\n\n```sh\ncurl --location --request POST 'http://localhost:4001/panic' \\\n--cookie 'app.at=\u003cyour_token\u003e'\n```\n\n### Further Information\n\nVisit https://fusionauth.io/docs/quickstarts/quickstart-ruby-on-rails-api for a step-by-step guide on how to build this Ruby on Rails API from scratch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-quickstart-ruby-on-rails-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionauth%2Ffusionauth-quickstart-ruby-on-rails-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-quickstart-ruby-on-rails-api/lists"}