prooflink_connect 0.0.2 → 0.0.3
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/Gemfile.lock +25 -0
- data/Rakefile +7 -0
- data/lib/prooflink_connect/assertion.rb +5 -3
- data/lib/prooflink_connect/version.rb +1 -1
- data/prooflink_connect.gemspec +1 -0
- data/spec/prooflink_connect_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- metadata +21 -4
data/Gemfile.lock
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
prooflink_connect (0.0.2)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.1.2)
|
10
|
+
rspec (2.4.0)
|
11
|
+
rspec-core (~> 2.4.0)
|
12
|
+
rspec-expectations (~> 2.4.0)
|
13
|
+
rspec-mocks (~> 2.4.0)
|
14
|
+
rspec-core (2.4.0)
|
15
|
+
rspec-expectations (2.4.0)
|
16
|
+
diff-lcs (~> 1.1.2)
|
17
|
+
rspec-mocks (2.4.0)
|
18
|
+
|
19
|
+
PLATFORMS
|
20
|
+
ruby
|
21
|
+
|
22
|
+
DEPENDENCIES
|
23
|
+
bundler (>= 1.0.0)
|
24
|
+
prooflink_connect!
|
25
|
+
rspec
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ module ProoflinkConnect
|
|
6
6
|
@token = token
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def request_auth_info
|
10
10
|
url = URI.parse("#{ProoflinkConnect.config.protocol}://#{[ProoflinkConnect.config.subdomain, ProoflinkConnect.config.provider_endpoint].compact.join(".")}/client_assertions/auth_info/")
|
11
11
|
# query = partial_query.dup
|
12
12
|
query = {}
|
@@ -27,14 +27,16 @@ module ProoflinkConnect
|
|
27
27
|
if resp.code == '200'
|
28
28
|
begin
|
29
29
|
data = JSON.parse(resp.body)
|
30
|
-
return PortableContacts::Person.new(data['entry'])
|
31
30
|
rescue JSON::ParserError => err
|
32
31
|
raise AuthinfoException.new(resp), 'Unable to parse JSON response' + resp.body.inspect
|
33
32
|
end
|
34
33
|
else
|
35
34
|
raise AuthinfoException, "Unexpected HTTP status code from server: #{resp.code}"
|
36
35
|
end
|
37
|
-
|
36
|
+
end
|
37
|
+
|
38
|
+
def auth_info
|
39
|
+
return PortableContacts::Person.new(request_auth_info['entry'])
|
38
40
|
end
|
39
41
|
|
40
42
|
class AuthinfoException < ::StandardError
|
data/prooflink_connect.gemspec
CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = "prooflink_connect"
|
16
16
|
|
17
17
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
18
|
+
s.add_development_dependency "rspec"
|
18
19
|
|
19
20
|
s.files = `git ls-files`.split("\n")
|
20
21
|
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
data/spec/spec_helper.rb
ADDED
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: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
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-19 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -34,6 +34,20 @@ dependencies:
|
|
34
34
|
version: 1.0.0
|
35
35
|
type: :development
|
36
36
|
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rspec
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
37
51
|
description: Make a connection to the prooflink connect api for single sign on authentication
|
38
52
|
email: chiel.wester@holder.nl
|
39
53
|
executables: []
|
@@ -45,6 +59,7 @@ extra_rdoc_files: []
|
|
45
59
|
files:
|
46
60
|
- .gitignore
|
47
61
|
- Gemfile
|
62
|
+
- Gemfile.lock
|
48
63
|
- README.md
|
49
64
|
- Rakefile
|
50
65
|
- lib/prooflink_connect.rb
|
@@ -55,6 +70,8 @@ files:
|
|
55
70
|
- lib/prooflink_connect/portable_contacts/person.rb
|
56
71
|
- lib/prooflink_connect/version.rb
|
57
72
|
- prooflink_connect.gemspec
|
73
|
+
- spec/prooflink_connect_spec.rb
|
74
|
+
- spec/spec_helper.rb
|
58
75
|
has_rdoc: true
|
59
76
|
homepage: https://github.com/chielwester/prooflink_connect
|
60
77
|
licenses: []
|