rack-auth-kerberos 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +1 -1
- data/README +4 -0
- data/lib/rack/auth/kerberos.rb +7 -1
- data/rack-auth-kerberos.gemspec +1 -1
- metadata +6 -6
data/CHANGES
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
= 0.1.0 -
|
1
|
+
= 0.1.0 - 11-Dec-2009
|
2
2
|
* Initial release
|
data/README
CHANGED
@@ -26,6 +26,10 @@ and env['AUTH_FAIL'] is set to an error message explaining what went wrong.
|
|
26
26
|
Note that if env['AUTH_USER'] or env['AUTH_FAIL'] are already set, then the
|
27
27
|
request is forwarded normally.
|
28
28
|
|
29
|
+
= TODO
|
30
|
+
Handle other types of authentication, e.g. HTTP basic auth with a username
|
31
|
+
and password are submitted, instead of only looking in request params.
|
32
|
+
|
29
33
|
= Authors
|
30
34
|
Daniel Berger
|
31
35
|
Charlie O'Keefe
|
data/lib/rack/auth/kerberos.rb
CHANGED
@@ -4,7 +4,7 @@ module Rack
|
|
4
4
|
module Auth
|
5
5
|
class Kerberos
|
6
6
|
# The version of the rack-auth-kerberos library.
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.2.0'
|
8
8
|
|
9
9
|
# Creates a new Rack::Kerberos object. The +user_field+ and +password_field+
|
10
10
|
# are the params looked for in the call method. The defaults are 'username'
|
@@ -66,7 +66,13 @@ module Rack
|
|
66
66
|
|
67
67
|
begin
|
68
68
|
@kerberos.get_init_creds_password(user_with_realm, password)
|
69
|
+
|
69
70
|
env['AUTH_USER'] = user
|
71
|
+
env['AUTH_TYPE'] = "Kerberos Password"
|
72
|
+
env['AUTH_TYPE_USER'] = user_with_realm
|
73
|
+
env['AUTH_TYPE_THIS_REQUEST'] = "Kerberos Password"
|
74
|
+
env['AUTH_DATETIME'] = Time.now.utc
|
75
|
+
|
70
76
|
env.delete('AUTH_FAIL')
|
71
77
|
rescue Krb5Auth::Krb5::Exception => err
|
72
78
|
case err.message
|
data/rack-auth-kerberos.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'rack-auth-kerberos'
|
5
|
-
gem.version = '0.
|
5
|
+
gem.version = '0.2.0'
|
6
6
|
gem.authors = ["Daniel Berger", "Charlie O'Keefe"]
|
7
7
|
gem.email = 'dberger@globe.gov'
|
8
8
|
gem.homepage = 'http://www.github.com/rack-kerberos'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-auth-kerberos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Berger
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-12-
|
13
|
+
date: 2009-12-19 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -44,13 +44,13 @@ extra_rdoc_files:
|
|
44
44
|
- README
|
45
45
|
- MANIFEST
|
46
46
|
files:
|
47
|
-
- MANIFEST
|
48
|
-
- test/test_rack_auth_kerberos.rb
|
49
|
-
- Rakefile
|
50
47
|
- CHANGES
|
51
|
-
- README
|
52
48
|
- lib/rack/auth/kerberos.rb
|
49
|
+
- MANIFEST
|
53
50
|
- rack-auth-kerberos.gemspec
|
51
|
+
- Rakefile
|
52
|
+
- README
|
53
|
+
- test/test_rack_auth_kerberos.rb
|
54
54
|
has_rdoc: true
|
55
55
|
homepage: http://www.github.com/rack-kerberos
|
56
56
|
licenses: []
|