ruby_native 0.1.9 → 0.1.10
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72ab71b4dcc2200280a52640909f89c494887fe1601fed81cb0e221044e662e6
|
|
4
|
+
data.tar.gz: d13fd6ed7137b7085c26ddd7d8ba4e0a5785008ff8d64d4331ba9a5f04cb3b73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8761b6d6f8caee77eff209c851c2621a33bc0ed8a7a35cdf55d349cf0061aec1675ba56d97cb716f621d78c71e89adce7ef3ef7c08bfeeaeb877c7db261abc1
|
|
7
|
+
data.tar.gz: 1ab29618018b39289e310a34a0cc71ec3e5112d8e76e6c43691ebd3298946c67bfaec999cb0233b788638bf9db5a7679ed556d15b71113cd22734a43b5fa1f08
|
|
@@ -10,18 +10,11 @@ module RubyNative
|
|
|
10
10
|
return
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
# Prevent the session middleware from appending its own (empty)
|
|
14
|
-
# session cookie, which would overwrite the authenticated one.
|
|
15
|
-
request.session_options[:skip] = true
|
|
16
|
-
|
|
17
13
|
cookies = data[:cookies] || []
|
|
14
|
+
redirect_url = data[:redirect_url]
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
Rails.logger.debug { "[RubyNative] OAuth token exchanged, redirecting to #{data[:redirect_url]}" }
|
|
24
|
-
redirect_to data[:redirect_url], allow_other_host: true
|
|
16
|
+
Rails.logger.info { "[RubyNative] OAuth token exchanged, #{cookies.size} cookies, redirect to #{redirect_url}" }
|
|
17
|
+
render json: {cookies: cookies, redirect_url: redirect_url}
|
|
25
18
|
end
|
|
26
19
|
end
|
|
27
20
|
end
|
data/lib/ruby_native/version.rb
CHANGED