gitlab_omniauth-ldap 2.2.0 → 2.3.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.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +7 -1
- data/lib/omniauth/strategies/ldap.rb +5 -5
- data/lib/omniauth-ldap/adaptor.rb +0 -1
- data/lib/omniauth-ldap/version.rb +1 -1
- metadata +7 -11
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25feeb3ba0d219352e71ab7ada2e2daf80c7fb94a552985cfb012e7582476aa2
|
4
|
+
data.tar.gz: b80f443e17e0afe34510eae3918039806a61c9a53012b8eff41653c93922638e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f970c0e9b3380d132f5073039ed3486c6e8f6bbd180e9ef9b059db3591391f837f75f99f1805a5e7da872acb12cb1ea360c5fdb4275294fd9506272df7d98a5
|
7
|
+
data.tar.gz: 4b97d19722ade8113abe4c829bd3cfc40957a5983cf66f8096a97a03bd4d270145394ce3609d6cbd3b6014c081f6994d464f5ea22c2064c9b63001e33c59b8c9
|
data/.gitlab-ci.yml
CHANGED
@@ -3,6 +3,7 @@ default:
|
|
3
3
|
|
4
4
|
stages:
|
5
5
|
- test
|
6
|
+
- deploy
|
6
7
|
|
7
8
|
.test-template: &test
|
8
9
|
before_script:
|
@@ -13,5 +14,10 @@ stages:
|
|
13
14
|
rspec:
|
14
15
|
parallel:
|
15
16
|
matrix:
|
16
|
-
- RUBY_VERSION: [ "2.7", "3.0" ]
|
17
|
+
- RUBY_VERSION: [ "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
|
17
18
|
<<: *test
|
19
|
+
|
20
|
+
include:
|
21
|
+
- component: gitlab.com/gitlab-org/components/gem-release/gem-release@main
|
22
|
+
inputs:
|
23
|
+
gem_name: gitlab_omniauth-ldap
|
@@ -46,10 +46,10 @@ module OmniAuth
|
|
46
46
|
return fail!(:invalid_request_method) unless valid_request_method?
|
47
47
|
return fail!(:missing_credentials) if missing_credentials?
|
48
48
|
begin
|
49
|
-
@ldap_user_info = @adaptor.bind_as(:filter => filter(@adaptor), :size => 1, :password => request['password'])
|
49
|
+
@ldap_user_info = @adaptor.bind_as(:filter => filter(@adaptor), :size => 1, :password => request.params['password'])
|
50
50
|
|
51
51
|
unless @ldap_user_info
|
52
|
-
return fail!(:invalid_credentials, InvalidCredentialsError.new("Invalid credentials for #{request['username']}"))
|
52
|
+
return fail!(:invalid_credentials, InvalidCredentialsError.new("Invalid credentials for #{request.params['username']}"))
|
53
53
|
end
|
54
54
|
|
55
55
|
@user_info = self.class.map_user(@@config, @ldap_user_info)
|
@@ -61,10 +61,10 @@ module OmniAuth
|
|
61
61
|
|
62
62
|
def filter(adaptor)
|
63
63
|
if adaptor.filter and !adaptor.filter.empty?
|
64
|
-
username = Net::LDAP::Filter.escape(@options[:name_proc].call(request['username']))
|
64
|
+
username = Net::LDAP::Filter.escape(@options[:name_proc].call(request.params['username']))
|
65
65
|
Net::LDAP::Filter.construct(adaptor.filter % { username: username })
|
66
66
|
else
|
67
|
-
Net::LDAP::Filter.equals(adaptor.uid, @options[:name_proc].call(request['username']))
|
67
|
+
Net::LDAP::Filter.equals(adaptor.uid, @options[:name_proc].call(request.params['username']))
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -107,7 +107,7 @@ module OmniAuth
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def missing_credentials?
|
110
|
-
request['username'].nil? or request['username'].empty? or request['password'].nil? or request['password'].empty?
|
110
|
+
request.params['username'].nil? or request.params['username'].empty? or request.params['password'].nil? or request.params['password'].empty?
|
111
111
|
end # missing_credentials?
|
112
112
|
end
|
113
113
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_omniauth-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ping Yu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -144,7 +144,6 @@ files:
|
|
144
144
|
- ".gitignore"
|
145
145
|
- ".gitlab-ci.yml"
|
146
146
|
- ".rspec"
|
147
|
-
- ".travis.yml"
|
148
147
|
- CHANGELOG
|
149
148
|
- Gemfile
|
150
149
|
- Guardfile
|
@@ -162,7 +161,7 @@ homepage: https://gitlab.com/gitlab-org/omniauth-ldap
|
|
162
161
|
licenses:
|
163
162
|
- MIT
|
164
163
|
metadata: {}
|
165
|
-
post_install_message:
|
164
|
+
post_install_message:
|
166
165
|
rdoc_options: []
|
167
166
|
require_paths:
|
168
167
|
- lib
|
@@ -177,11 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
176
|
- !ruby/object:Gem::Version
|
178
177
|
version: '0'
|
179
178
|
requirements: []
|
180
|
-
rubygems_version: 3.
|
181
|
-
signing_key:
|
179
|
+
rubygems_version: 3.5.22
|
180
|
+
signing_key:
|
182
181
|
specification_version: 4
|
183
182
|
summary: A LDAP strategy for OmniAuth.
|
184
|
-
test_files:
|
185
|
-
- spec/omniauth-ldap/adaptor_spec.rb
|
186
|
-
- spec/omniauth/strategies/ldap_spec.rb
|
187
|
-
- spec/spec_helper.rb
|
183
|
+
test_files: []
|