Sha256: a458ad3065b004df2b2d41f6a1bbc841bc4e6e94b3d291faf65dd2bc39cbe09b

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

# Use this hook to configure user_mgmt external database URI, and so forth.
# Many of these configuration options can be set straight in your model.
UserMgmt.setup do |config|

  # Ensure you defined default external database URI, otherwise 
  # authentication won't be possible to happen
  config.external_database_URI = "http://localhost:3001/"

	# Namespace router name. It is gonna appear in front of every route that the gem generates.
	# If you change this name, you are gonna have to change it as well in your app's routes file:
	# 	  mount UserMgmt::Engine => "/new_name"
	config.router_name = "user/"

end

# Edit your strategy keys:

ENV['TWITTER_KEY'] = "p2tqOCLha3wQ8SlmnEauQ"
ENV['TWITTER_SECRET'] = "vXt7buZBCP0kzSCgGNowPsq9pYAe1InJFHxbixwXOl0"

ENV['FACEBOOK_KEY'] = "1400267933525151"
ENV['FACEBOOK_SECRET'] = "1c05cbc4f36271de5b5e1e2ab450f927"

# The code below include the view helpers from user_mgmt in the main app.
# NOTE: Do not change this code.
ActiveSupport.on_load :action_controller do
	helper UserMgmt::ApplicationHelper
end

OmniAuth.config.logger = Rails.logger

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
user_mgmt-0.0.616 test/dummy/config/initializers/user_mgmt.rb
user_mgmt-0.0.615 test/dummy/config/initializers/user_mgmt.rb
user_mgmt-0.0.614 test/dummy/config/initializers/user_mgmt.rb
user_mgmt-0.0.613 test/dummy/config/initializers/user_mgmt.rb
user_mgmt-0.0.612 test/dummy/config/initializers/user_mgmt.rb
user_mgmt-0.0.611 test/dummy/config/initializers/user_mgmt.rb