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