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 +4 -4
- data/README.md +6 -6
- data/lib/warden/oauth2/strategies/accessing_protected_resource.rb +0 -4
- data/lib/warden/oauth2/strategies/bearer.rb +1 -1
- data/lib/warden/oauth2/strategies/issuing_access_token.rb +0 -4
- data/lib/warden/oauth2/version.rb +1 -1
- data/spec/warden/oauth2/strategies/bearer_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91693eebe7b261a8fac112ba0eaf0e9326010e01
|
4
|
+
data.tar.gz: c734102cc67e9483dcff30c616ec736f341bd45f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
#
|
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
|
@@ -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(
|
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.
|
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-
|
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.
|
128
|
+
rubygems_version: 2.1.11
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: OAuth 2.0 strategies for Warden
|