omniauth-cloud66 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.md +6 -2
- data/example/Gemfile +1 -1
- data/example/config.ru +1 -1
- data/lib/omniauth/strategies/cloud66.rb +3 -3
- data/lib/omniauth-cloud66/version.rb +1 -1
- data/omniauth-cloud66.gemspec +1 -0
- metadata +5 -3
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 Aleksandar Diklic
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Then integrate the strategy into your middleware:
|
|
23
23
|
|
24
24
|
```ruby
|
25
25
|
use OmniAuth::Builder do
|
26
|
-
provider :cloud66, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], scope: "public
|
26
|
+
provider :cloud66, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], scope: "public redeploy"
|
27
27
|
end
|
28
28
|
```
|
29
29
|
|
@@ -31,15 +31,19 @@ In Rails, you'll want to add to the middleware stack:
|
|
31
31
|
|
32
32
|
```ruby
|
33
33
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
34
|
-
provider :cloud66, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], scope: "public
|
34
|
+
provider :cloud66, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], scope: "public redeploy"
|
35
35
|
end
|
36
36
|
```
|
37
37
|
|
38
|
+
- The scope needs to be separated by space and not comma: "public redeploy" instead of "public,redeploy" !
|
39
|
+
|
38
40
|
|
39
41
|
For additional information, refer to the [OmniAuth wiki](https://github.com/intridea/omniauth/wiki).
|
40
42
|
|
41
43
|
See the [example](https://github.com/rastasheep/omniauth-cloud66/blob/master/example/config.ru) Sinatra app for full examples
|
42
44
|
|
45
|
+
Note: before running example app, please add your applicaation id and secret to ` example/config.ru ` file.
|
46
|
+
|
43
47
|
## License
|
44
48
|
|
45
49
|
omniauth-cloud66 is released under the MIT License.
|
data/example/Gemfile
CHANGED
data/example/config.ru
CHANGED
@@ -4,9 +4,9 @@ module OmniAuth
|
|
4
4
|
module Strategies
|
5
5
|
class Cloud66 < OmniAuth::Strategies::OAuth2
|
6
6
|
option :client_options, {
|
7
|
-
:site => "https://
|
8
|
-
:authorize_url => "https://
|
9
|
-
:token_url => "https://
|
7
|
+
:site => "https://app.cloud66.com/api/2",
|
8
|
+
:authorize_url => "https://app.cloud66.com/oauth/authorize" ,
|
9
|
+
:token_url => "https://app.cloud66.com/oauth/token"
|
10
10
|
}
|
11
11
|
|
12
12
|
def request_phase
|
data/omniauth-cloud66.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Unfficial OmniAuth strategy for Cloud66.}
|
8
8
|
gem.summary = %q{Unfficial OmniAuth strategy for Cloud66.}
|
9
9
|
gem.homepage = "https://github.com/rastasheep/omniauth-cloud66"
|
10
|
+
gem.license = "MIT"
|
10
11
|
|
11
12
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
13
|
gem.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-cloud66
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
@@ -116,6 +116,7 @@ extra_rdoc_files: []
|
|
116
116
|
files:
|
117
117
|
- .gitignore
|
118
118
|
- Gemfile
|
119
|
+
- LICENSE
|
119
120
|
- README.md
|
120
121
|
- Rakefile
|
121
122
|
- example/Gemfile
|
@@ -127,7 +128,8 @@ files:
|
|
127
128
|
- spec/omniauth/strategies/cloud66_spec.rb
|
128
129
|
- spec/spec_helper.rb
|
129
130
|
homepage: https://github.com/rastasheep/omniauth-cloud66
|
130
|
-
licenses:
|
131
|
+
licenses:
|
132
|
+
- MIT
|
131
133
|
post_install_message:
|
132
134
|
rdoc_options: []
|
133
135
|
require_paths:
|