minato-rails-auth 0.3.3 → 0.3.4
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/minato/rails/auth/user.rb +4 -0
- data/lib/minato/rails/auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bdda1705a7cd83e0dae0ffa26adfa16d4e6f3a5ebab4fe18baf91cb8b3f7c095
|
|
4
|
+
data.tar.gz: 2d9c2aec0efb3dcb2af02b94f69ea30676592baeb9b5c77589f61e07fe609b5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3820c9fc66a8f13341521eb88e6fb574209531a73a17d45bef2cee24ba13c475290574bb7534d801041d5d4a97b68be2759894cacd3c544b2b69f86a0822789
|
|
7
|
+
data.tar.gz: 590c5291d96fdf1952c3cfffb00fdb4e862ece9653f05827b455467f4bd6869650e6704681bebdcc5546a527bbddf3e0a57dbfea3a8ccd271b7df4bd69e87932
|
|
@@ -44,6 +44,8 @@ module Minato
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def impersonator_identity
|
|
47
|
+
return nil if session_obj.blank?
|
|
48
|
+
|
|
47
49
|
session_obj.identity
|
|
48
50
|
end
|
|
49
51
|
|
|
@@ -68,6 +70,8 @@ module Minato
|
|
|
68
70
|
end
|
|
69
71
|
|
|
70
72
|
def authentication_method(auth_method)
|
|
73
|
+
return if session_raw.blank?
|
|
74
|
+
|
|
71
75
|
session_raw['authentication_methods']&.find { |m| m['method'].to_s == auth_method.to_s }
|
|
72
76
|
end
|
|
73
77
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minato-rails-auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ferreri
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|