-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Rails raises an ActiveRecord::ReadOnlyError if the host Rails application uses Automatic Role Switching with a read-replica database when you attempt to re-authorize an application if there is an existing access token. This occurs because Doorkeeper is attempting to write to the database in a GET request, so Rails selects the read role automatically instead of the write role.
I've created a Rails project with the required configuration to showcase the error. Reproduction steps and error details are in the Readme. https://github.com/timlkelly/doorkeeper-db-replica
Reactions are currently unavailable