grand_id_simple 1.0.0 → 1.0.1
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/fake_grand_id_simple.rb +2 -6
- data/lib/grand_id_simple/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: 3d4bd8555409124e1b9e3ada14c4d7f6fa1922a7e589638d6526fdc0667a26db
|
4
|
+
data.tar.gz: 3a7b8476abf8a14266553bc18645a2935f4e44889d75dfb2bb27a8fcef4c8b33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 641b56153b7fc523839e059d41f5846ecc5ae440e191573e4ff2721aa1cbe62b3ee7370616bcaae5e1234c02de62f69163d85203b597b611d47e509d35476d9b
|
7
|
+
data.tar.gz: fc1aa93521ee825fdd21e99fae60f8dc73fec98794c5d90143b24a1d0deff0c52049f4d13616c311349857d0f99685f768334e35a730929d55c0020d43ed32d5
|
data/Gemfile.lock
CHANGED
data/lib/fake_grand_id_simple.rb
CHANGED
@@ -46,13 +46,9 @@ class FakeGrandIdSimple < GrandIdSimple
|
|
46
46
|
@server_thread = Thread.start { @server.start }
|
47
47
|
end
|
48
48
|
|
49
|
-
def federated_login(
|
49
|
+
def federated_login(**options)
|
50
50
|
@people.concat(@block.call) if @people.empty?
|
51
|
-
redirect_url =
|
52
|
-
FakeGrandIdSimple.add_query_parameter(callback_url, 'grandidsession', person.session_id)
|
53
|
-
else
|
54
|
-
FakeGrandIdSimple.add_query_parameter(@base_url, 'callback_url', callback_url)
|
55
|
-
end
|
51
|
+
redirect_url = FakeGrandIdSimple.add_query_parameter(@base_url, 'callback_url', options[:callbackUrl])
|
56
52
|
Login.new(redirect_url: redirect_url)
|
57
53
|
end
|
58
54
|
|