Module: HubSsoLib
- Defined in:
- lib/hub_sso_lib.rb
Overview
Module: HubSsoLib #
(C) Hipposoft 2006-2019 #
#
Purpose: Cross-application same domain single sign-on support. #
#
Author: A.D.Hodgkinson #
#
History: 20-Oct-2006 (ADH): First version of stand-alone library, #
split from Hub application. #
08-Dec-2006 (ADH): DRB URI, path prefix and random file #
path come from environment variables. #
09-Mar-2011 (ADH): Updated for Hub on Rails 2.3.11 along #
with several important bug fixes. #
01-May-2019 (ADH): Updated for Ruby 2.5.x. #
Defined Under Namespace
Modules: Core, Server Classes: Permissions, Roles, Serialiser, Session, SessionFactory, User
Constant Summary collapse
- HUB_CONNECTION_URI =
DRb connection
ENV['HUB_CONNECTION_URI'] || 'drbunix:' + File.join( ENV['HOME'] || '/', '/.hub_drb')
- HUB_PATH_PREFIX =
Location of Hub application root.
ENV['HUB_PATH_PREFIX'] || ''
- HUB_IDLE_TIME_LIMIT =
Time limit, *in seconds*, for the account inactivity timeout. If a user performs no Hub actions during this time they will be automatically logged out upon their next action.
4 * 60 * 60
- HUB_COOKIE_NAME =
Shared cookie name.
'hubapp_shared_id'
- HUB_BYPASS_SSL =
Bypass SSL, for testing purposes? Rails ‘production’ mode will insist on SSL otherwise. Development & test environments do not, so do not need this variable setting.
( ENV['HUB_BYPASS_SSL'] == "true" )
- HUB_MUTEX =
Thread safety.
Mutex.new