thin-auth-ntlm 0.0.4 → 0.0.5
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.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Rakefile +9 -13
- data/VERSION.yml +1 -1
- data/lib/thin/ntlm/connection.rb +4 -1
- data/thin-auth-ntlm.gemspec +24 -20
- metadata +64 -50
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 834a271d29a43d878118fe3320383beecd548dcb
|
|
4
|
+
data.tar.gz: 514ed3f58341c2c51dac649ddd119301c8c42171
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 077101a82012e7a2b64ea16bb19e47e671a9b0b8dfa27b180e7e9c010800b0ea78aa6c4fc935a8195c9d08b389f578064be34725bceb43b7110a90456afbe4f2
|
|
7
|
+
data.tar.gz: 8860da2c3a73167ee4e2c88142e1260432bf28cdcde88e9776bf12b6b40e2862cd4f990c912c13bcc433263af78b3cbfbe3e3a9a2f84cabfe9fbae66765fe87b
|
data/Gemfile
ADDED
data/Rakefile
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
gemspec.add_dependency('rubysspi-server', '>= 0.0.1')
|
|
11
|
-
end
|
|
12
|
-
rescue LoadError
|
|
13
|
-
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
|
1
|
+
require 'jeweler'
|
|
2
|
+
Jeweler::Tasks.new do |gem|
|
|
3
|
+
gem.name = "thin-auth-ntlm"
|
|
4
|
+
gem.homepage = "https://github.com/snaury/thin-auth-ntlm"
|
|
5
|
+
gem.license = "MIT"
|
|
6
|
+
gem.summary = "Allows you to force NTLM authentication on Thin TCP servers."
|
|
7
|
+
gem.description = "Adds Thin::Backends::NTLMTcpServer that can be used instead of Thin::Backends::TcpServer"
|
|
8
|
+
gem.email = "snaury@gmail.com"
|
|
9
|
+
gem.authors = ["Alexey Borzenkov"]
|
|
14
10
|
end
|
data/VERSION.yml
CHANGED
data/lib/thin/ntlm/connection.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'win32/sspi/server'
|
|
|
3
3
|
|
|
4
4
|
module Thin
|
|
5
5
|
class NTLMWrapper
|
|
6
|
-
AUTHORIZATION_MESSAGE = <<END
|
|
6
|
+
AUTHORIZATION_MESSAGE = <<END.freeze
|
|
7
7
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
|
8
8
|
<html><head>
|
|
9
9
|
<title>401 NTLM Authorization Required</title>
|
|
@@ -17,11 +17,13 @@ browser doesn't understand how to supply
|
|
|
17
17
|
the credentials required.</p>
|
|
18
18
|
</body></html>
|
|
19
19
|
END
|
|
20
|
+
AUTHORIZATION_MESSAGE_LENGTH = AUTHORIZATION_MESSAGE.size.to_s.freeze
|
|
20
21
|
REMOTE_USER = 'REMOTE_USER'.freeze
|
|
21
22
|
HTTP_AUTHORIZATION = 'HTTP_AUTHORIZATION'.freeze
|
|
22
23
|
WWW_AUTHENTICATE = 'WWW-Authenticate'.freeze
|
|
23
24
|
CONTENT_TYPE = 'Content-Type'.freeze
|
|
24
25
|
CONTENT_TYPE_AUTH = 'text/html; charset=iso-8859-1'.freeze
|
|
26
|
+
CONTENT_LENGTH = 'Content-Length'.freeze
|
|
25
27
|
NTLM_REQUEST_PACKAGE = 'NTLM'.freeze
|
|
26
28
|
NTLM_ALLOWED_PACKAGE = 'NTLM|Negotiate'.freeze
|
|
27
29
|
|
|
@@ -146,6 +148,7 @@ END
|
|
|
146
148
|
head = {}
|
|
147
149
|
head[WWW_AUTHENTICATE] = auth if auth
|
|
148
150
|
head[CONTENT_TYPE] = CONTENT_TYPE_AUTH
|
|
151
|
+
head[CONTENT_LENGTH] = AUTHORIZATION_MESSAGE_LENGTH
|
|
149
152
|
[401, head, [AUTHORIZATION_MESSAGE]]
|
|
150
153
|
end
|
|
151
154
|
end
|
data/thin-auth-ntlm.gemspec
CHANGED
|
@@ -1,48 +1,52 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE
|
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
|
-
s.name =
|
|
8
|
-
s.version = "0.0.
|
|
7
|
+
s.name = "thin-auth-ntlm"
|
|
8
|
+
s.version = "0.0.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Alexey Borzenkov"]
|
|
12
|
-
s.date =
|
|
13
|
-
s.
|
|
12
|
+
s.date = "2013-12-03"
|
|
13
|
+
s.description = "Adds Thin::Backends::NTLMTcpServer that can be used instead of Thin::Backends::TcpServer"
|
|
14
|
+
s.email = "snaury@gmail.com"
|
|
14
15
|
s.extra_rdoc_files = [
|
|
15
16
|
"LICENSE.txt",
|
|
16
|
-
|
|
17
|
+
"README.txt"
|
|
17
18
|
]
|
|
18
19
|
s.files = [
|
|
19
20
|
"LICENSE.txt",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
"README.txt",
|
|
22
|
+
"Rakefile",
|
|
23
|
+
"VERSION.yml",
|
|
24
|
+
"lib/thin-auth-ntlm.rb",
|
|
25
|
+
"lib/thin/ntlm/backends/tcp_server.rb",
|
|
26
|
+
"lib/thin/ntlm/connection.rb",
|
|
27
|
+
"thin-auth-ntlm.gemspec"
|
|
27
28
|
]
|
|
28
|
-
s.
|
|
29
|
+
s.homepage = "https://github.com/snaury/thin-auth-ntlm"
|
|
30
|
+
s.licenses = ["MIT"]
|
|
29
31
|
s.require_paths = ["lib"]
|
|
30
|
-
s.rubygems_version =
|
|
31
|
-
s.summary =
|
|
32
|
+
s.rubygems_version = "2.0.14"
|
|
33
|
+
s.summary = "Allows you to force NTLM authentication on Thin TCP servers."
|
|
32
34
|
|
|
33
35
|
if s.respond_to? :specification_version then
|
|
34
|
-
|
|
35
|
-
s.specification_version = 3
|
|
36
|
+
s.specification_version = 4
|
|
36
37
|
|
|
37
|
-
if Gem::Version.new(Gem::
|
|
38
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
38
39
|
s.add_runtime_dependency(%q<thin>, [">= 1.0.0"])
|
|
39
40
|
s.add_runtime_dependency(%q<rubysspi-server>, [">= 0.0.1"])
|
|
41
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
|
40
42
|
else
|
|
41
43
|
s.add_dependency(%q<thin>, [">= 1.0.0"])
|
|
42
44
|
s.add_dependency(%q<rubysspi-server>, [">= 0.0.1"])
|
|
45
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
|
43
46
|
end
|
|
44
47
|
else
|
|
45
48
|
s.add_dependency(%q<thin>, [">= 1.0.0"])
|
|
46
49
|
s.add_dependency(%q<rubysspi-server>, [">= 0.0.1"])
|
|
50
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
|
47
51
|
end
|
|
48
52
|
end
|
metadata
CHANGED
|
@@ -1,47 +1,66 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thin-auth-ntlm
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
|
-
authors:
|
|
6
|
+
authors:
|
|
7
7
|
- Alexey Borzenkov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
dependencies:
|
|
15
|
-
- !ruby/object:Gem::Dependency
|
|
11
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
16
14
|
name: thin
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '>='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 1.0.0
|
|
17
20
|
type: :runtime
|
|
18
|
-
|
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
-
requirements:
|
|
21
|
-
- -
|
|
22
|
-
- !ruby/object:Gem::Version
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
23
26
|
version: 1.0.0
|
|
24
|
-
|
|
25
|
-
- !ruby/object:Gem::Dependency
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
26
28
|
name: rubysspi-server
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 0.0.1
|
|
27
34
|
type: :runtime
|
|
28
|
-
|
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- -
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
33
40
|
version: 0.0.1
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: jeweler
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ~>
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 1.8.7
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ~>
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 1.8.7
|
|
55
|
+
description: Adds Thin::Backends::NTLMTcpServer that can be used instead of Thin::Backends::TcpServer
|
|
36
56
|
email: snaury@gmail.com
|
|
37
57
|
executables: []
|
|
38
|
-
|
|
39
58
|
extensions: []
|
|
40
|
-
|
|
41
|
-
extra_rdoc_files:
|
|
59
|
+
extra_rdoc_files:
|
|
42
60
|
- LICENSE.txt
|
|
43
61
|
- README.txt
|
|
44
|
-
files:
|
|
62
|
+
files:
|
|
63
|
+
- Gemfile
|
|
45
64
|
- LICENSE.txt
|
|
46
65
|
- README.txt
|
|
47
66
|
- Rakefile
|
|
@@ -50,33 +69,28 @@ files:
|
|
|
50
69
|
- lib/thin/ntlm/backends/tcp_server.rb
|
|
51
70
|
- lib/thin/ntlm/connection.rb
|
|
52
71
|
- thin-auth-ntlm.gemspec
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
72
|
+
homepage: https://github.com/snaury/thin-auth-ntlm
|
|
73
|
+
licenses:
|
|
74
|
+
- MIT
|
|
75
|
+
metadata: {}
|
|
57
76
|
post_install_message:
|
|
58
|
-
rdoc_options:
|
|
59
|
-
|
|
60
|
-
require_paths:
|
|
77
|
+
rdoc_options: []
|
|
78
|
+
require_paths:
|
|
61
79
|
- lib
|
|
62
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
|
-
requirements:
|
|
64
|
-
- -
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
66
|
-
version:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
version: "0"
|
|
73
|
-
version:
|
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - '>='
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '0'
|
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - '>='
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
74
90
|
requirements: []
|
|
75
|
-
|
|
76
91
|
rubyforge_project:
|
|
77
|
-
rubygems_version:
|
|
92
|
+
rubygems_version: 2.0.14
|
|
78
93
|
signing_key:
|
|
79
|
-
specification_version:
|
|
94
|
+
specification_version: 4
|
|
80
95
|
summary: Allows you to force NTLM authentication on Thin TCP servers.
|
|
81
96
|
test_files: []
|
|
82
|
-
|