auth_origin_control 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjdkMzYxZmNkM2Y5MTViOGI3ZTE2YTBiNTkzNjhjNDgyZTY2YjY3NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWI3N2QxYmE2NmJiZjhmMTEwZTQ5MGE2MWI0MDJhMTdjYmIyNGFmMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2JhM2ExNmY0ODQ0MGVlZTAyNTI3NTk4ZTg3MDY0ZDFiNTcxNzg2ODE2ZDk0
|
10
|
+
NGJjOGZjMTVlYzIxZDRlNDQyYmFiNWNjNWRkMGEyODMzYzYxNWQ1ZjMxYzIx
|
11
|
+
ZGI1YTY1YzUzMGVjZjhmNmExODMxZWE1YmUzNTVmMzQ0ZDgyMDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjZlNWI5ODk1MzU2ZDUzZmY4ZTAzODBhZTU0MjQ4MmQ0YjRhMDYzOTNjMTY2
|
14
|
+
YTQxY2E0YWRjODdhNTIyYTlhN2MzYzI1MjI0Yzc0YWUzOWI5ZjczZmRlOTk3
|
15
|
+
ZDEwMTM5NWQ5NGQ2NThhZjM2ZTdmZjE1Y2RkZTIzZmIyZGZhYzg=
|
@@ -18,11 +18,14 @@ module AuthOriginControl
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def secret_key access_id = @app.access_id
|
21
|
-
|
22
|
-
|
21
|
+
if AuthOriginControl.no_connection
|
22
|
+
AuthOriginControl.registered_apps[access_id]
|
23
|
+
else
|
24
|
+
_secret_from_authority = secret_key_from_authority
|
25
|
+
_secret_from_authority.try(:[],'error') ? _secret_from_authority : _secret_from_authority.try(:gsub, /\\n/,"\n")
|
26
|
+
end
|
23
27
|
end
|
24
|
-
|
25
|
-
|
28
|
+
|
26
29
|
private
|
27
30
|
|
28
31
|
def secret_key_from_authority
|
data/lib/auth_origin_control.rb
CHANGED