omniauth-kerberos-clearlyip 0.1.0 → 0.1.2
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/lib/omniauth/strategies/kerberos.rb +2 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af0eaf97321df8527f82d80e3918185694eb96d558789c71710cd5d540e58b67
|
4
|
+
data.tar.gz: 2cf9c9316e03140b022d9eb765d45cc4270b9d325abfc0c44caf52994f3b29cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ffcdf47177c0286374320c235b6cdd12d9a271c65554df39d2ff89a64c41b0e213ec9f4c98c0f8636d6456f0f77cc8582021dc12b0d94a2c1ab5cd64b3e105c
|
7
|
+
data.tar.gz: 178d7169a34e649a13360ce4334b13c04f55442c4b38b6ecd1abbde3b64026f739bf911d6ab844048ceadbd0985ad19e00d67666e3691dd352651bea1e9510f6
|
@@ -7,7 +7,7 @@ module OmniAuth
|
|
7
7
|
class Kerberos
|
8
8
|
include OmniAuth::Strategy
|
9
9
|
|
10
|
-
option :title, "Kerberos Authentication @#{::Krb5Auth::Krb5.new.get_default_realm
|
10
|
+
option :title, "Kerberos Authentication @#{::Krb5Auth::Krb5.new.get_default_realm&.downcase rescue ''}"
|
11
11
|
option :name, 'kerberos'
|
12
12
|
option :fields, %i[username password]
|
13
13
|
uid { username }
|
@@ -26,19 +26,13 @@ module OmniAuth
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def username
|
29
|
-
|
29
|
+
request&.params[username_id]
|
30
30
|
end
|
31
31
|
|
32
32
|
def password
|
33
33
|
request&.params[password_id]
|
34
34
|
end
|
35
35
|
|
36
|
-
def init_authenticator(request, env, username)
|
37
|
-
@request = request
|
38
|
-
@env = env
|
39
|
-
@username = username
|
40
|
-
end
|
41
|
-
|
42
36
|
def callback_phase
|
43
37
|
if authenticate(username, password)
|
44
38
|
super
|
@@ -81,5 +75,3 @@ module OmniAuth
|
|
81
75
|
end
|
82
76
|
end
|
83
77
|
end
|
84
|
-
|
85
|
-
OmniAuth.config.add_camelization 'kerberos', 'Kerberos'
|