vidibus-service 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/vidibus/service/mongoid.rb +9 -0
- data/vidibus-service.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -67,6 +67,15 @@ module Vidibus
|
|
67
67
|
url.gsub(/https?:\/\//, "") if url
|
68
68
|
end
|
69
69
|
|
70
|
+
# Returns true if given client_secret matches signature.
|
71
|
+
# This method is called from Vidibus' OauthServer when issuing an OAuth token.
|
72
|
+
# To prevent sending the service's secret over the network, the ConnectorClient
|
73
|
+
# sends a signature instead.
|
74
|
+
# TODO: Where to put this method?
|
75
|
+
def valid_oauth2_secret?(client_secret)
|
76
|
+
client_secret == Vidibus::Secure.sign("#{self.class.this.url}#{uuid}", secret)
|
77
|
+
end
|
78
|
+
|
70
79
|
protected
|
71
80
|
|
72
81
|
# Returns a Client for current service.
|
data/vidibus-service.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vidibus-service}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andre Pankratz"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-02}
|
13
13
|
s.description = %q{Description...}
|
14
14
|
s.email = %q{andre@vidibus.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidibus-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
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
|
- Andre Pankratz
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-02 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|