# How to add WorkOS AuthKit to a Ruby on Rails app

DevFeed: [How to add WorkOS AuthKit to a Ruby on Rails app](<https://devfeed.tech/articles/how-to-add-workos-authkit-to-a-ruby-on-rails-app-17461.md>)

Original publisher: [Read original article](<https://workos.com/blog/add-authkit-to-rails>)

Author: WorkOS

Published: 2026-09-14T00:00:00Z

Content type: tutorial

Language: en

Sources: [WorkOS Blog](<https://devfeed.tech/sources/workos-blog.md>)

Topics: [Rails](<https://devfeed.tech/topics/rails.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [password reset](<https://devfeed.tech/topics/password-reset.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [building](<https://devfeed.tech/tags/building.md>), [cli](<https://devfeed.tech/tags/cli.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [password-reset](<https://devfeed.tech/tags/password-reset.md>), [production](<https://devfeed.tech/tags/production.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [sign-in](<https://devfeed.tech/tags/sign-in.md>)

## AI overview

A tutorial on adding WorkOS AuthKit to a Ruby on Rails application. It explains how the CLI sets up the integration, how the sealed-cookie session layer is refreshed in a Rails before_action, and how Redirect URI, Initiate login URL, and Sign-out URI settings affect authentication flows and production logout.

## Source excerpt

The CLI gets you signed in. This is the session layer underneath it: what the sealed cookie holds, how to refresh it inside a before_action, and the three dashboard settings that break logout in production.