Sha256: 7e9f66b450ff851e7dfde1e3bf3affe7aa9cce605c19d0c6102651b840ac6042

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

require 'devise'
class Cul::Omniauth::FailureApp < Devise::FailureApp
  DEFAULT_PROVIDER = :saml
  def self.provider=(provider)
    @provider = provider
  end
  def self.provider
    @provider || DEFAULT_PROVIDER
  end
  def self.for(provider=nil)
  	r = Class.new(self)
  	r.provider = provider || self.provider
  	r
  end
  # def redirect_url
  #   user_omniauth_authorize_path(self.class.provider)
  # end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cul_omniauth-0.8.0 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.7.0 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.6.1 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.6.0 lib/cul/omniauth/failure_app.rb