Module: Authorizme

Defined in:
lib/authorizme.rb,
lib/authorizme/engine.rb,
lib/authorizme/version.rb,
lib/authorizme/provider.rb,
lib/authorizme/for_controllers.rb,
app/models/authorizme/user_role.rb,
lib/authorizme/provider/draugiem.rb,
lib/authorizme/provider/facebook.rb,
lib/authorizme/acts_as_authorizme.rb,
app/models/authorizme/user_provider.rb,
app/models/authorizme/synchronize_request.rb,
app/controllers/authorizme/users_controller.rb,
lib/generators/authorizme/install_generator.rb,
app/controllers/authorizme/sessions_controller.rb,
app/controllers/authorizme/authorizme_controller.rb,
app/controllers/authorizme/login/twitter_controller.rb,
app/controllers/authorizme/login/draugiem_controller.rb,
app/controllers/authorizme/login/facebook_controller.rb,
app/controllers/authorizme/password_resets_controller.rb

Defined Under Namespace

Modules: ActsAsAuthorizme, ForControllers, Generators, Login, Provider Classes: AuthorizmeController, Engine, PasswordResetsController, SessionsController, SynchronizeRequest, UserProvider, UserRole, UsersController

Constant Summary collapse

VERSION =
"1.1.2"
@@draugiem_app_id =
"15008309"
@@draugiem_app_key =
"ae2f1dd28c28490e95480a74952d549b"
@@draugiem_api_authorize_path =
"http://api.draugiem.lv/authorize/"
@@draugiem_api_path =
"http://api.draugiem.lv/json/"
@@facebook_client_id =
"340578915987797"
@@facebook_client_secret =
"6cfd9cf26dfbb6f299fd7ad0bb0ca08a"
@@facebook_perms =
"email,read_stream,offline_access"
@@facebook_image_size =
{width: 200, height: 200}
@@twitter_consumer_key =
"MStc9ncAw6gnwaJaRcg9ZA"
@@twitter_consumer_secret =
"XsrFZXWAyjUyc0WY5hGE32shg6YkhKjbadbHmJmTXM"
@@after_login_path =
:root
@@after_logout_path =
:root
@@namespace =
:authorizme
@@not_logged_in_path =
"/#{Authorizme::namespace}/"
@@providers =
["draugiem", "facebook", "twitter"]

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yield self on setup for nice config blocks

Yields:

  • (_self)

Yield Parameters:

  • _self (Authorizme)

    the object that the method was called on



72
73
74
# File 'lib/authorizme.rb', line 72

def self.setup
  yield self
end