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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 642e2ab518a4f8a4ba59ebaf35cfa5986e610fbe15692dd95dd7bf5a6a3a06fa
4
- data.tar.gz: 630e6293aa7810f87433fb1a0bb51a4e8cd801f1e8e3f4865bdea803ba3bd57b
3
+ metadata.gz: 25feeb3ba0d219352e71ab7ada2e2daf80c7fb94a552985cfb012e7582476aa2
4
+ data.tar.gz: b80f443e17e0afe34510eae3918039806a61c9a53012b8eff41653c93922638e
5
5
  SHA512:
6
- metadata.gz: c97fd71ee465d6be8b3a91a532dcbfa24242bbe5ad6e18305881af005dc9c96c661e03298f9c4e75bba4b19c9e3152cc04d732e871eaf431422381ca7862f300
7
- data.tar.gz: 14738f46becca517da74c67ad6f0fb37de4e545c98636e8a2a285eba5059e1722617662107196977847518416baf32221123f07ed93b6382fd5d6b6c580a56eb
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
@@ -4,7 +4,6 @@ require 'rack'
4
4
  require 'net/ldap'
5
5
  require 'net/ntlm'
6
6
  require 'sasl'
7
- require 'kconv'
8
7
  module OmniAuth
9
8
  module LDAP
10
9
  class Adaptor
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module LDAP
3
- VERSION = "2.2.0"
3
+ VERSION = "2.3.0"
4
4
  end
5
5
  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.2.0
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: 2022-06-24 00:00:00.000000000 Z
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.3.16
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: []
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- branches:
2
- only:
3
- - 'master'
4
- rvm:
5
- - 2.0.0
6
- - 2.1.5
7
- script: "bundle exec rspec spec"