els_bootstrap 0.0.3.4 → 0.0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- = ElsBootstrap
1
+ # ElsBootstrap
2
2
 
3
3
  Does your code sometimes feel a bit hacked in order to work around ELS authentication during development and testing?
4
4
 
@@ -8,7 +8,7 @@ Do you find yourself running multiple queries to pull the identity of the person
8
8
 
9
9
  If you answer yes to any of the above then the Els Bootsrap might be your cup of tea.
10
10
 
11
- == What it does
11
+ ## What it does
12
12
 
13
13
  The Els Bootstrap is a Rails engine providing some methods, routes and views to help your product work in the world of ELS authentication - whether you are using a bonafide ELS agent (behind Apache for example) or have rolled your own Web Server.
14
14
 
@@ -16,7 +16,7 @@ It does this by interacting with the OpenAM HTTP API in order to provide credent
16
16
 
17
17
  When in ELS Identity mode, the Els Bootstrap will attempt to create a user identity from a known cookie SSO token. If no cookie is found (because you are developing, for example) then the user is directed to a built-in logon page where valid credentials can be supplied and validated against ELS - just as they would in production! However, if you want to put any ol' username in to test your app then you can override the auth and create a mock user.
18
18
 
19
- == How it does it
19
+ ## How it does it
20
20
 
21
21
  When you include the gem, your Rails project will get 2 helper methods that you can use in any of your controllers (probably as before_filter methods).
22
22
 
@@ -27,7 +27,7 @@ When you include the gem, your Rails project will get 2 helper methods that you
27
27
  _els_identity_ will not only result in a user cdid, but also their name, email address, employee number, AD Group membership (baked in roles!), account status and a few other tidbits. So unless you are after the entire HR Record, this is all you'll need for user identity in your app :)
28
28
 
29
29
 
30
- == How to use it
30
+ ## How to use it
31
31
 
32
32
  *add the gem to your Gemfile
33
33
  gem 'els_bootstrap', "~>0.0.3.2"
@@ -55,11 +55,11 @@ If you do need to pull up an additional model, you might want to chain a before_
55
55
  end
56
56
  end
57
57
 
58
- == TODO
58
+ ## TODO
59
59
 
60
60
  It would be nice to marshal an, optional, internal model automatically.
61
61
  Generator for the els_token.yml config
62
62
 
63
- == Contributing
63
+ ## Contributing
64
64
  Yes please.
65
65
  fork, hack, send pull request :)
@@ -14,12 +14,14 @@ class ElsSessionController < ApplicationController
14
14
  def new
15
15
  @els_identity = get_identity rescue nil
16
16
  if @els_identity
17
+ logger.debug("retrieved els identity #{@els_identity.inspect}")
17
18
  session[:els_token] = @els_identity.token_id
18
19
  Rails.cache.write(session[:els_token], @els_identity,
19
20
  :namespace => "els_identity",
20
21
  :expires_in => 1.hour)
21
22
  go_back
22
23
  end
24
+ logger.debug("unable to retrieve els identity :(")
23
25
  # or get some login details
24
26
  end
25
27
 
@@ -1,3 +1,3 @@
1
1
  module ElsBootstrap
2
- VERSION = "0.0.3.4"
2
+ VERSION = "0.0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: els_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.4
4
+ version: 0.0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-16 00:00:00.000000000 Z
12
+ date: 2013-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 1.2.0
69
+ version: 1.2.2
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 1.2.0
77
+ version: 1.2.2
78
78
  description: ! "Makes developing, testing and deploying Rails,\n with
79
79
  and without ELS, a lot less hacky"
80
80
  email:
@@ -95,7 +95,7 @@ files:
95
95
  - lib/tasks/els_bootstrap_tasks.rake
96
96
  - MIT-LICENSE
97
97
  - Rakefile
98
- - README.rdoc
98
+ - README.md
99
99
  homepage: http://wiki.office.aol.com/wiki/Els_Bootstrap
100
100
  licenses: []
101
101
  post_install_message:
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 1.8.24
119
+ rubygems_version: 1.8.25
120
120
  signing_key:
121
121
  specification_version: 3
122
122
  summary: Rails engine providing ELS auth