prooflink_connect 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/prooflink_connect.rb +6 -1
- data/lib/prooflink_connect/version.rb +1 -1
- metadata +4 -4
data/lib/prooflink_connect.rb
CHANGED
@@ -13,6 +13,11 @@ module ProoflinkConnect
|
|
13
13
|
|
14
14
|
def self.embedded(options = {})
|
15
15
|
options = {:subdomain => ProoflinkConnect.config.subdomain, :token_url => 'https://example.com/auth/callbacks'}.merge(options)
|
16
|
-
|
16
|
+
|
17
|
+
if options[:forced_connect]
|
18
|
+
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}&forced_connect=1' style='width: 500px; height: 220px; border: 0;display: block' ></iframe>".html_safe
|
19
|
+
else
|
20
|
+
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}' style='width: 500px; height: 220px; border: 0;display: block' ></iframe>".html_safe
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prooflink_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chiel Wester
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-20 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|