prooflink_connect 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
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
 
@@ -1,5 +1,6 @@
1
1
  module ProoflinkConnect
2
2
  class Assertion
3
+ require 'net/http'
3
4
  attr_accessor :token
4
5
 
5
6
  def initialize(token)
@@ -1,3 +1,3 @@
1
1
  module ProoflinkConnect
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -13,12 +13,13 @@ module ProoflinkConnect
13
13
  end
14
14
 
15
15
  def self.embedded(options = {})
16
- options = {:subdomain => ProoflinkConnect.config.subdomain, :token_url => 'https://example.com/auth/callbacks'}.merge(options)
17
-
18
- if options[:forced_connect]
19
- "<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' frameborder='0'></iframe>".html_safe
20
- else
21
- "<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' frameborder='0'></iframe>".html_safe
22
- end
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: 19
5
- prerelease: false
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
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-04-01 00:00:00 +02:00
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.3.7
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