You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 👟 Check it out! | ✨ [github.com/appraisal-rb/appraisal2][💎appraisal2] ✨ |
93
94
95
+
### Ruby 3.4
96
+
97
+
nkf/kconv has been part of Ruby since long ago.
98
+
Eventually it became a standard gem, but was changed to a bundled gem in Ruby 3.4.
99
+
In general, kconv and iconv have been superseded since Ruby 1.9 by the built-in
100
+
encoding support provided by String#encode, String#force_encoding, and similar methods.
101
+
But this gem has not yet been updated to remove its dependency on nkf/kconv.
102
+
103
+
As a result of all this you should add `nkf` to your Gemfile if you are using Ruby 3.4 or later.
104
+
105
+
```ruby
106
+
gem "nkf", "~> 0.1"
107
+
```
108
+
94
109
### Enterprise Support [](https://tidelift.com/subscription/pkg/rubygems-omniauth-ldap?utm_source=rubygems-omniauth-ldap&utm_medium=referral&utm_campaign=readme)
95
110
96
111
Available as part of the Tidelift Subscription.
@@ -197,48 +212,48 @@ Below are several concrete examples to get you started.
197
212
198
213
```ruby
199
214
# config.ru
200
-
require'rack'
201
-
require'omniauth-ldap'
215
+
require"rack"
216
+
require"omniauth-ldap"
202
217
203
-
use Rack::Session::Cookie, secret:'change_me'
218
+
use Rack::Session::Cookie, secret:"change_me"
204
219
use OmniAuth::Builderdo
205
220
provider :ldap,
206
-
host:'ldap.example.com',
221
+
host:"ldap.example.com",
207
222
port:389,
208
223
method::plain,
209
-
base:'dc=example,dc=com',
210
-
uid:'uid',
211
-
title:'Example LDAP'
224
+
base:"dc=example,dc=com",
225
+
uid:"uid",
226
+
title:"Example LDAP"
212
227
end
213
228
214
-
run lambda { |env| [404, {'Content-Type' => 'text/plain'}, [env.key?('omniauth.auth').to_s]] }
229
+
run lambda { |env| [404, {"Content-Type" => "text/plain"}, [env.key?("omniauth.auth").to_s]] }
215
230
```
216
231
217
232
Visit `GET /auth/ldap` to initiate authentication (the middleware will render a login form unless you POST to `/auth/ldap`).
0 commit comments