warden-oauth2-strategies 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b297d915e9538c8e6738f2c3640d1d49754e364
4
- data.tar.gz: c9e378eea02711ab6896cb3bef9a0869450f11e1
3
+ metadata.gz: 91693eebe7b261a8fac112ba0eaf0e9326010e01
4
+ data.tar.gz: c734102cc67e9483dcff30c616ec736f341bd45f
5
5
  SHA512:
6
- metadata.gz: 03a9f886ffd1444fae5d7d265e6c57a81dd1bff9dd7d43555f6b61caa15ac8f01961a7cb6dd2d90b0e620ea3b7ce3051e353a7742b6f4c1da0d67c103b90e742
7
- data.tar.gz: 7482138e22498c3a3bf04b9bf260c59362c35ecb06944ab688e4819b773fb64d755fe3122cdd06b4e82497c319b8b4a5abb87869ff39c24362cf6d4f8c6c228d
6
+ metadata.gz: ee76e1b6713669d752c8562b3a8c778f92a15e1f7802b146f76fd1de97fcfdd3a0b3d8ed4340abf4f3253dec38c4d27ff1ed38ce95552d7073c06bf22fe3cd04
7
+ data.tar.gz: 87f1a4f2ede459483285fafb34173d4c0f735e325bf4561de2080aae7424b560e3e57b8f52c59bbd00895e1fef247801f42c3137e4e2c335d2283f03fd51f7de
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Warden::OAuth2 [![CI Status](https://secure.travis-ci.org/opperator/warden-oauth2.png)](http://travis-ci.org/opperator/warden-oauth2)
1
+ # Warden::OAuth2 [![CI Status](https://secure.travis-ci.org/airservice/warden-oauth2.png)](http://travis-ci.org/airservice/warden-oauth2)
2
2
 
3
3
  This is a fork of [original project](https://github.com/opperator/warden-oauth2) which is actually maintained.
4
4
  This library provides a robust set of authorization strategies for
@@ -91,11 +91,11 @@ class ResourceOwnerPasswordCredentialsApplication
91
91
  # Should return a client application matching the client_id
92
92
  # provided, but should ONLY match client_secret if it is
93
93
  # provided.
94
- end
95
- #REQUIRED
96
- def valid?(options={})
97
- # Use options[:username] and options[:password] to check
98
- # that specified credentials are valid
94
+ # the returned value should implement the following interface
95
+ # def valid?(options={})
96
+ # Use options[:username] and options[:password] to check
97
+ # that specified credentials are valid
98
+ # end
99
99
  end
100
100
 
101
101
  # OPTIONAL
@@ -12,10 +12,6 @@ module Warden
12
12
  self.error_description = 'Bearer Token is not provided'
13
13
  fail! 'invalid_client'
14
14
  end
15
-
16
- def error_status
17
- 400
18
- end
19
15
  end
20
16
  end
21
17
  end
@@ -22,7 +22,7 @@ module Warden
22
22
  end
23
23
 
24
24
  def token_string_from_request_params
25
- params[:access_token]
25
+ params['access_token']
26
26
  end
27
27
  end
28
28
  end
@@ -12,10 +12,6 @@ module Warden
12
12
  self.error_description = 'grant_type is not specified or invalid'
13
13
  fail! 'invalid_grant'
14
14
  end
15
-
16
- def error_status
17
- 400
18
- end
19
15
  end
20
16
  end
21
17
  end
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module OAuth2
3
- VERSION = "0.0.6"
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ describe Warden::OAuth2::Strategies::Bearer do
25
25
 
26
26
  describe '#token_string_from_request_params' do
27
27
  it 'should pull the :access_token param' do
28
- subject.stub(:params).and_return(:access_token => 'abc')
28
+ subject.stub(:params).and_return('access_token' => 'abc')
29
29
  subject.token_string_from_request_params.should == 'abc'
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-oauth2-strategies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - AirService
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2014-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: warden
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.2.1
128
+ rubygems_version: 2.1.11
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: OAuth 2.0 strategies for Warden