Your client secret is super-secret-secret-that-should-be-regenerated-for-production.If you ever want to reset the FusionAuth system, delete the volumes created by docker-compose by executing docker compose down -v, then re-run docker compose up -d.įusionAuth will be initially configured with these settings: When FusionAuth comes up for the first time, it will look at the kickstart/kickstart.json file and configure FusionAuth to a certain initial state. Here you are using a bootstrapping feature of FusionAuth, called Kickstart. Assuming you have Docker installed on your machine, you can stand up FusionAuth up on your machine with: docker compose up -d In the root directory of the repo you’ll find a Docker compose file (docker-compose.yml) and an environment variables configuration file (.env). git clone cd fusionauth-quickstart-ruby-on-rails-web Run FusionAuth via Docker Clone the Codeįirst off, grab the code from the repository and change into that directory. In this section, you’ll get FusionAuth up and running and use Rails to create a new application. This helps make sure it is consistent and up-to-date as well as offloading your login security and functionality to FusionAuth. In general, you are introducing FusionAuth in order to normalize and consolidate user data. Request flow during login after FusionAuth User Application FusionAuth View Homepage Click Login Link (to FusionAuth) View Login Form Show Login Form Fill Out and Submit Login Form Authenticates User Go to Redirect URI Request the Redirect URI Is User Authenticated? User is Authenticated Display User's Account or Other Info User Application FusionAuth In that case, the system might look like this before FusionAuth is introduced. While this sample application doesn’t have login functionality without FusionAuth, a more typical integration will replace an existing login system with FusionAuth. This example should work with other compatible versions of Ruby and Rails. This app has been tested with Ruby 3.2.2 and Rails 7.0.4.3. Docker: The quickest way to stand up FusionAuth.Rails: This will be used in order to run the Rails server.Ruby: This will be needed for pulling down the various dependencies. The docker compose file and source code for a complete application are available at Prerequisites It’ll have areas reserved for users who have logged in as well as public facing sections. You’ll be building it for ChangeBank, a global leader in converting dollars into coins. In this quickstart you are going to build an application with Ruby on Rails and integrate it with FusionAuth.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |