Sha256: 329f3835a7903cdc13e1ca3ef88047b35c6d921122bda51dc853681b43f4af7f

Contents?: true

Size: 406 Bytes

Versions: 12

Compression:

Stored size: 406 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

12 entries across 12 versions & 1 rubygems

Version Path
cul_omniauth-0.5.5 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.5.3 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.5.2 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.5.1 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.5.0 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.4.3 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.4.2 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.4.1 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.4.0 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.3.2 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.3.1 lib/cul/omniauth/failure_app.rb
cul_omniauth-0.2.0 lib/cul/omniauth/failure_app.rb