class Shaf::Authentication::RealmChangedError
Public Class Methods
new(from:, to:)
click to toggle source
Calls superclass method
# File lib/shaf/helpers/authentication.rb, line 16 def initialize(from:, to:) super <<~ERR Realm was changed from "#{from}" to "#{to}". This is not allowed! Each request corresponds to a certain realm and cannot be changed. This is probably caused by a call to `current_user` using the default realm (from `Shaf::Settings.default_authentication_realm`) and then using `#authenticate realm: 'some_other_realm' ERR end