Changesets can be listed by changeset number.
The Git repository is here.
Changeset 155
Uses externally set environment variables to do get hold of
configuration data now, rather than hard coding the details.
HUB_CONNECTION_URI: The URI for server connections; e.g.
"drbunix:/path/to/socket/file"
HUB_PATH_PREFIX: Web server URI prefix to get to root
of Hub application, e.g. "/rails/hub".
HUB_RANDOM_FILE: Path to file containing random data.
- Comitted by: rool
- Date: Friday December 08 19:31:37 2006 (over 17 years ago)
Affected files:
- rool/rails/gems/hubssolib/trunk/VERSION (diff)
- rool/rails/gems/hubssolib/trunk/hubssolib.gemspec (diff)
- rool/rails/gems/hubssolib/trunk/lib/hub_sso_lib.rb (diff)
rool/rails/gems/hubssolib/trunk/VERSION:
prev. | current | |
1 | ||
1 | 0.2.0 (08-Dec-2006) |
rool/rails/gems/hubssolib/trunk/hubssolib.gemspec:
prev. | current | |
s.platform = Gem::Platform::RUBY | ||
s.name = 'hubssolib' | ||
7 | | |
7 | s.version = '0.2.0' | |
s.author = 'Andrew Hodgkinson and others' | ||
s.email = 'ahodgkin@rowing.org.uk' | ||
s.homepage = 'http://pond.org.uk/ruby/hub/' |
rool/rails/gems/hubssolib/trunk/lib/hub_sso_lib.rb:
prev. | current | |
# # | ||
# History: 20-Oct-2006 (ADH): First version of stand-alone library, # | ||
# split from Hub application. # | ||
11 | # 08-Dec-2006 (ADH): DRB URI, path prefix and random file # | |
12 | # path come from environment variables. # | |
####################################################################### | ||
module HubSsoLib | ||
... | ... | |
require 'drb' | ||
# DRb connection | ||
18 | | |
20 | HUBSSOLIB_DRB_URI = ENV['HUB_CONNECTION_URI'] | |
# Location of Hub application root. | ||
21 | | |
23 | HUB_PATH_PREFIX = ENV['HUB_PATH_PREFIX'] | |
# Time limit, *in seconds*, for the account inactivity timeout. | ||
# If a user performs no Hub actions during this time they will | ||
... | ... | |
HUBSSOLIB_IDLE_TIME_LIMIT = 60 * 60 | ||
# Random file location. | ||
29 | | |
31 | HUBSSOLIB_RND_FILE_PATH = ENV['HUB_RANDOM_FILE'] | |
# Shared cookie name. | ||
HUBSSOLIB_COOKIE_NAME = 'hubapp_shared_id' |