oauth-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.travis.yml +9 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +12 -0
- data/Rakefile +8 -0
- data/config.ru +7 -0
- data/features/access-token-revocation.feature +4 -0
- data/features/overwriting-a-valid-access-token.feature +2 -0
- data/features/starting-the-dance.feature +4 -0
- data/features/support/env.rb +25 -0
- data/lib/oauth/rails.rb +7 -0
- data/lib/oauth/rails/version.rb +5 -0
- data/oauth-rails.gemspec +22 -0
- data/spec/internal/config/database.yml +3 -0
- data/spec/internal/config/routes.rb +3 -0
- data/spec/internal/db/schema.rb +3 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/internal/public/favicon.ico +0 -0
- metadata +107 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 31db7ac0c8ad14e98a8975de6cb6bbd7db6ee531
|
4
|
+
data.tar.gz: cb7964c772bac4f78a7f1f5d802352f44dcb1784
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3ef8529121dae27809fb2e786d643d7f56a31f0de35af5e0f23238912ccd12113eec4fef09aa594c2deedc3b0e53cf46fd7f023ca74fff21cd47b322843ba421
|
7
|
+
data.tar.gz: d3c30850ea9e416adb5fcaab384e5c2fdf0b215062c8dccdabcc9702e9519ace85f4514818a708dbe7f70b15057dadf784eff554a53477d9a191a42e1abec65a
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Charles Lowell
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
data/config.ru
ADDED
@@ -0,0 +1,4 @@
|
|
1
|
+
Feature: Dealing with revoked access tokens
|
2
|
+
From time to time, users will revoke access to your application. Sadly, you won't know that this has happened until
|
3
|
+
you attempt a request on their behalf. Only at that point will you get an authentication failure because your access
|
4
|
+
token was revoked. Luckily, OAuth::Rails has got your back.
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Bundler.require :default, :development
|
2
|
+
|
3
|
+
$:.push(File.expand_path('../../../lib', __FILE__))
|
4
|
+
require 'oauth/rails'
|
5
|
+
|
6
|
+
module RouteProxy
|
7
|
+
# didn't find a cleaner way to get route helpers into my steps
|
8
|
+
def method_missing(sym, *args)
|
9
|
+
if route_helpers.respond_to?(sym)
|
10
|
+
route_helpers.send(sym, *args)
|
11
|
+
else
|
12
|
+
super
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def route_helpers
|
17
|
+
MyEngine::Engine.routes.url_helpers
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
World(RouteProxy)
|
22
|
+
|
23
|
+
Before do
|
24
|
+
OAuth::Engine.routes.default_url_options[:host] = 'test.host'
|
25
|
+
end
|
data/lib/oauth/rails.rb
ADDED
data/oauth-rails.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'oauth/rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "oauth-rails"
|
8
|
+
spec.version = OAuth::Rails::VERSION
|
9
|
+
spec.authors = ["Charles Lowell"]
|
10
|
+
spec.email = ["cowboyd@thefrontside.net"]
|
11
|
+
spec.description = %q{Para bailar La OAuth, se necesita una poca de gracia.}
|
12
|
+
spec.summary = %q{Request Tokens, Access Tokens... When they dip, you dip, we dip.}
|
13
|
+
spec.homepage = "https://github.com/thefrontside/oauth-rails"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "oauth"
|
22
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
*.log
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oauth-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Charles Lowell
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDPjC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oC
|
28
|
+
Ty6Gi071pwoJXvdMaE/6iPy7bUzlndYdHyYuWSKaO9N47HqQ62oEnBraglw6ghoi
|
29
|
+
UgImJlChAzCoDP9zi9tdm6jAr7ttF25R9PPYr11ILb7dYe3qUzlNlM6zJx/nb31b
|
30
|
+
IhdyRVup4qLcqYSTPsm6u7VA
|
31
|
+
-----END CERTIFICATE-----
|
32
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
33
|
+
dependencies:
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: oauth
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
description: Para bailar La OAuth, se necesita una poca de gracia.
|
49
|
+
email:
|
50
|
+
- cowboyd@thefrontside.net
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- .gitignore
|
56
|
+
- .travis.yml
|
57
|
+
- Gemfile
|
58
|
+
- LICENSE.txt
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- config.ru
|
62
|
+
- features/access-token-revocation.feature
|
63
|
+
- features/overwriting-a-valid-access-token.feature
|
64
|
+
- features/starting-the-dance.feature
|
65
|
+
- features/support/env.rb
|
66
|
+
- lib/oauth/rails.rb
|
67
|
+
- lib/oauth/rails/version.rb
|
68
|
+
- oauth-rails.gemspec
|
69
|
+
- spec/internal/config/database.yml
|
70
|
+
- spec/internal/config/routes.rb
|
71
|
+
- spec/internal/db/schema.rb
|
72
|
+
- spec/internal/log/.gitignore
|
73
|
+
- spec/internal/public/favicon.ico
|
74
|
+
homepage: https://github.com/thefrontside/oauth-rails
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.0.0
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: Request Tokens, Access Tokens... When they dip, you dip, we dip.
|
98
|
+
test_files:
|
99
|
+
- features/access-token-revocation.feature
|
100
|
+
- features/overwriting-a-valid-access-token.feature
|
101
|
+
- features/starting-the-dance.feature
|
102
|
+
- features/support/env.rb
|
103
|
+
- spec/internal/config/database.yml
|
104
|
+
- spec/internal/config/routes.rb
|
105
|
+
- spec/internal/db/schema.rb
|
106
|
+
- spec/internal/log/.gitignore
|
107
|
+
- spec/internal/public/favicon.ico
|