I'm tasked with finding a solution to re-factor an existing rails application to replace a database based authentication (see below) with a new implementation that uses a back-end via REST API call for authentication. Like always the proposed solution should minimize the changes. Wondering if anybody has done something similar in the past that can share.
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :omniauthable, omniauth_providers: [:saml]