minato-rails-auth 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minato/rails/auth/user.rb +6 -6
- 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: f852d8c8fb4a6ab7e5afa05144de2fcc622ac073e7830fa4f4229d9975941d78
|
4
|
+
data.tar.gz: d8ad8fd69b33b1e952c363d9c149dba390f313b1168f0226678e78708efca5b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19744e2044ad31a4754435d0df1ab7cdff2233ce5ce8f36ad971ec0dc08544ca3506297ec04e55f5f50f0e5943e19f2bbd12b93633e42e586c34e336e6ff4959
|
7
|
+
data.tar.gz: bcbfdec2e4b3b57c914e326e44d7e24490959d356bf838aca0a3a0a764880ba89b7982abe0edce4024502c75118a7bb53d82089628091d5ba7c73d3284e552bb
|
@@ -20,14 +20,14 @@ module Minato
|
|
20
20
|
@machine ||= !human?
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
24
|
-
return
|
23
|
+
def identity
|
24
|
+
return impersonator_identity unless impersonated?
|
25
25
|
|
26
|
-
session.identity.metadata_public.
|
26
|
+
session.identity.metadata_public.impersonated_identity
|
27
27
|
end
|
28
28
|
|
29
|
-
def
|
30
|
-
session.identity
|
29
|
+
def impersonator_identity
|
30
|
+
session.identity
|
31
31
|
end
|
32
32
|
|
33
33
|
def subject
|
@@ -35,7 +35,7 @@ module Minato
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def impersonated?
|
38
|
-
|
38
|
+
session.identity.metadata_public&.impersonated_identity.present?
|
39
39
|
end
|
40
40
|
|
41
41
|
private
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ferreri
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|