prooflink_connect 0.0.6 → 0.0.7
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.
- data/README.md +16 -4
- data/lib/prooflink_connect/assertion.rb +1 -0
- data/lib/prooflink_connect/version.rb +1 -1
- data/lib/prooflink_connect.rb +8 -7
- metadata +6 -6
data/README.md
CHANGED
@@ -1,14 +1,26 @@
|
|
1
|
-
Prooflink Connect
|
1
|
+
# Prooflink Connect
|
2
2
|
=================
|
3
3
|
|
4
|
-
Library to connect to the prooflink identity service provider
|
4
|
+
Library to connect to the [prooflink](http://www.prooflink.com) identity service provider
|
5
|
+
To use this gem you will need a Prooflink api key. You can request this at [http://www.prooflink.com](http://www.prooflink.com)
|
5
6
|
|
6
|
-
Installation
|
7
|
-
|
7
|
+
## Installation
|
8
|
+
---------------
|
9
|
+
|
10
|
+
Follow the folliwing steps to install Prooflink Connect
|
11
|
+
|
12
|
+
### Install the gem
|
13
|
+
|
14
|
+
To install Prooflink Connect simply install the
|
8
15
|
|
9
16
|
* Add gem 'prooflink_connect' to your Gemfile
|
17
|
+
|
18
|
+
gem 'prooflink_connect'
|
19
|
+
|
10
20
|
* run 'bundle install'
|
11
21
|
|
22
|
+
bundle install
|
23
|
+
|
12
24
|
Usage
|
13
25
|
-----
|
14
26
|
|
data/lib/prooflink_connect.rb
CHANGED
@@ -13,12 +13,13 @@ module ProoflinkConnect
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.embedded(options = {})
|
16
|
-
options = {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
options = {
|
17
|
+
:subdomain => ProoflinkConnect.config.subdomain,
|
18
|
+
:token_url => 'https://example.com/auth/callbacks',
|
19
|
+
:forced_connect => '0',
|
20
|
+
:embed_forms => '0',
|
21
|
+
:width => 520,
|
22
|
+
:height => 250}.merge(options)
|
23
|
+
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}&forced_connect=#{options[:forced_connect]}&embed_forms=#{options[:embed_forms]}' style='width: #{options[:width]}px; height: #{options[:height]}px; border: 0;display: block' frameborder='0'></iframe>".html_safe
|
23
24
|
end
|
24
25
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
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-
|
18
|
+
date: 2011-05-03 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements: []
|
120
120
|
|
121
121
|
rubyforge_project: prooflink_connect
|
122
|
-
rubygems_version: 1.
|
122
|
+
rubygems_version: 1.6.2
|
123
123
|
signing_key:
|
124
124
|
specification_version: 3
|
125
125
|
summary: Make a connection to the prooflink connect api
|