lib/vidibus/user/warden_strategy.rb in vidibus-user-0.0.8 vs lib/vidibus/user/warden_strategy.rb in vidibus-user-0.0.9

- old
+ new

@@ -28,10 +28,10 @@ @this ||= Service.this end # Returns the current realm def realm - @realm ||= params["realm"] || env[:realm] || raise("No realm available!") + @realm ||= params["realm"] || env[:realm] || raise(Vidibus::User::NoRealmError, "No realm available!") end # Returns OAuth client def client @client ||= OAuth2::Client.new(credentials[:client_id], credentials[:client_secret], :site => credentials[:service_url])