Sha256: 1f78973863a8e74154fb5cd8c491b26c4049848e56f931cf2eb2423e516a5fc0

Contents?: true

Size: 1.61 KB

Versions: 19

Compression:

Stored size: 1.61 KB

Contents

require 'openid/store/filesystem'
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :google_apps, OpenID::Store::Filesystem.new('/tmp')
  provider :twitter, 'CONSUMER_KEY', 'CONSUMER_SECRET'
  provider :facebook, 'APP_ID', 'APP_SECRET'
  provider :linked_in, 'CONSUMER_KEY', 'CONSUMER_SECRET'
  provider :open_id, OpenID::Store::Filesystem.new('/tmp')
  provider :CAS, :cas_server => 'https://www.example.com/cas'
  provider :LDAP, :host => 'ldap.example.com', :port => 389, :method => :simple, :base => 'cn=users,dc=example,dc=com', :uid => 'sAMAccountName', :try_sasl => true, :sasl_mechanisms => "GSS-SPNEGO", :domain => ''
end

# This list will show the first choice as the default, and the rest as potential secondary login methods.
PROVIDERS = [:google_apps, :twitter, :facebook, :linked_in, :open_id, :CAS, :LDAP]

# LDAP
# :port (required) - The LDAP server port.
# :method (required) - May be :plain, :ssl, or :tls.
# :base (required) - The distinguished name (DN) for your organization; all users should be searchable under this base.
# :uid (required) - The LDAP attribute name for the user name in the login form. Typically AD would be 'sAMAccountName' or 'UniquePersonalIdentifier', while OpenLDAP is 'uid'. You can also use 'dn' for the user to put in the dn in the login form (but usually is too long for user to remember or know).
# :try_sasl - Try to use SASL connection to server.
# :sasl_mechanisms - Mechanisms supported are 'DIGEST-MD5' and 'GSS-SPNEGO'
# :domain - Enter to keep users from having to enter the LDAP domain, usually in the form domain\username. Backslash will be appended automatically.

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
contour-0.7.2 lib/generators/templates/omniauth.rb
contour-0.7.1 lib/generators/templates/omniauth.rb
contour-0.7.0 lib/generators/templates/omniauth.rb
contour-0.6.1 lib/generators/templates/omniauth.rb
contour-0.6.0 lib/generators/templates/omniauth.rb
contour-0.5.7 lib/generators/templates/omniauth.rb
contour-0.5.6 lib/generators/templates/omniauth.rb
contour-0.5.5 lib/generators/templates/omniauth.rb
contour-0.5.4 lib/generators/templates/omniauth.rb
contour-0.5.3 lib/generators/templates/omniauth.rb
contour-0.5.2 lib/generators/templates/omniauth.rb
contour-0.5.1 lib/generators/templates/omniauth.rb
contour-0.5.0 lib/generators/templates/omniauth.rb
contour-0.4.0 lib/generators/templates/omniauth.rb
contour-0.3.2 lib/generators/templates/omniauth.rb
contour-0.3.1 lib/generators/templates/omniauth.rb
contour-0.3.0 lib/generators/templates/omniauth.rb
contour-0.2.1 lib/generators/templates/omniauth.rb
contour-0.1.1 lib/generators/templates/omniauth.rb