Sha256: b4160e9df938f35d6671303117fea2e0cbd224969557f35277ab02000156d512

Contents?: true

Size: 1.75 KB

Versions: 12

Compression:

Stored size: 1.75 KB

Contents

Authorizme.setup do |config|

  # == OAuth tokens and secrets
  #
  # Those configs MUST be seted before running application
  # 
  # === Draugiem.lv app id and app key
  #
  #
  #   config.draugiem_app_id = ""
  #   config.draugiem_app_key = ""
  #

  # === Facebook.lv client id and client secret and perms
  #
  #   config.facebook_client_id = ""
  #   config.facebook_client_secret = ""
  #   config.facebook_perms = "email,user_photos,friends_photos,publish_stream,read_stream,offline_access"
  #

  # === Twitter.com consumer key and consumer secret
  #
  #   config.twitter_consumer_key = ""
  #   config.twitter_consumer_secret = ""
  #

  # == After login and logout path
  # 
  #   

  config.after_login_path = :root
  config.after_logout_path = :root

  # == Not logged in path
  # 
  # Path to redirect after 'require_user' method checked that user is not authorized
  # 
  #  config.not_logged_in_path = :authorizme
  #
  # Default is authorizme index path
  #

  # == Authorizme namespace
  #
  #   config.namespace = :authorizme
  # 
  # Default is set authorizme

  # == Authorize all remotly with ajax
  # 
  # If application use ajax in login and logout forms then this must be set true.
  #
  #   config.remote = false
  #
  # Default it is set false

  # == You can specify which providers you want to use in your application
  #
  # You can specify which providers you want to use in your application
  # Authorizme gem have twitter.com, facebook.com and draugiem.lv authentification
  # If you want implement your own provider, you must create controller in model Authorizme::Login
  # and must implement auth and callback methods.
  #
  #   config.providers = ["draugiem", "facebook", "twitter"]
  #
  # By default uses draugiem, facebook and twitter providers
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
authorizme-1.0.0 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.11 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.10 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.9 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.8 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.7 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.6 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.5 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.4 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.3 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.2 lib/generators/authorizme/templates/authorizme.rb.erb
authorizme-0.0.1.alpha lib/generators/authorizme/templates/authorizme.rb.erb