gatleon-rails 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gatleon/rails/authform/concern.rb +2 -2
- data/lib/gatleon/rails/version.rb +1 -1
- 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: d3eea66c082a497538bc85470271f44e68c3bdafdcc2835853d4d8a94f43b7bf
|
4
|
+
data.tar.gz: 3b8be6bab2a0db9691d0fb1e9c994242a768d60a84842a9c6069e8afebe2113d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b02a4c82ffb375be8f0e335d5e08fc4c1e1d0a05e57dc9467b9a38c85f9622ad848034133b231f3e874ad7a562d3345315079fb2fc9726970e9e38f6ce61871b
|
7
|
+
data.tar.gz: 728106194b3ffd60855a02539b52ef78112bd8cdbc7a52ba63b5f0b048dc452ec40cf0c1e2f206b37c68916653fc954b1626b8a3d77eb5e859f640d123528065
|
data/Gemfile.lock
CHANGED
@@ -4,7 +4,7 @@ module Gatleon
|
|
4
4
|
class Concern < Module
|
5
5
|
def initialize(form_uid:,
|
6
6
|
current_user_method_name: "current_user",
|
7
|
-
|
7
|
+
_authform_base_url: "https://authform.gatleon.com")
|
8
8
|
super() do
|
9
9
|
extend ActiveSupport::Concern
|
10
10
|
|
@@ -27,7 +27,7 @@ module Gatleon
|
|
27
27
|
define_method :_exchange_user_voucher_for_user do
|
28
28
|
if params[:_authformForm] == form_uid && params[:_authformUserVoucher]
|
29
29
|
# TODO: headers for api verification
|
30
|
-
response = Faraday.get("#{
|
30
|
+
response = Faraday.get("#{authform_base_url}/v1/exchangeUserVoucherForUser/#{params[:_authformUserVoucher]}")
|
31
31
|
|
32
32
|
if response.status == 200
|
33
33
|
cookies[_authform_user_cookie_key] = {
|