omniauth-trello 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +20 -9
- data/lib/omniauth-trello/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Add this line to your application's Gemfile:
|
|
10
10
|
|
11
11
|
gem 'omniauth-trello'
|
12
12
|
|
13
|
-
And then
|
13
|
+
And then bundle:
|
14
14
|
|
15
15
|
$ bundle
|
16
16
|
|
@@ -29,22 +29,33 @@ Place this into `config/initializers/omniauth.rb`:
|
|
29
29
|
```ruby
|
30
30
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
31
31
|
provider :trello, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'],
|
32
|
-
app_name: "APP_NAME", scope: 'read,write', expiration: '
|
32
|
+
app_name: "APP_NAME", scope: 'read,write,account', expiration: 'never'
|
33
33
|
end
|
34
34
|
```
|
35
35
|
|
36
|
-
|
36
|
+
##Scope
|
37
37
|
|
38
|
-
`
|
38
|
+
The `scope` argument defaults to 'read'.
|
39
39
|
|
40
|
-
|
40
|
+
Specify other scopes with a comma separated string (no spaces), example: 'read,write,account'
|
41
|
+
|
42
|
+
###`read` scope
|
43
|
+
* Read all of your boards and organizations
|
44
|
+
|
45
|
+
###`write` scope
|
46
|
+
* Create and update cards, lists and boards
|
47
|
+
* Make comments for you
|
41
48
|
|
42
|
-
|
49
|
+
###`account` scope
|
50
|
+
* Read your email address
|
43
51
|
|
44
|
-
|
52
|
+
Contrary to Trello's documentation, user email is only given when using the `read,write,account` scope.
|
45
53
|
|
46
|
-
|
47
|
-
|
54
|
+
`expiration` if omitted, it defaults to 30 days (Trello default). You can use arguments like: "never", "1day", "30days"
|
55
|
+
|
56
|
+
If you don't specify 'never', Trello will ask for user approval on every subsequent login and application will duplicate on the user's account settings page in Trello. I recommend using the `never` scope.
|
57
|
+
|
58
|
+
More info in [the Trello docs](https://trello.com/docs/gettingstarted/index.html#getting-a-token-from-a-user)
|
48
59
|
|
49
60
|
## Contributing
|
50
61
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-trello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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: 2013-
|
12
|
+
date: 2013-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
195
|
rubyforge_project:
|
196
|
-
rubygems_version: 1.8.
|
196
|
+
rubygems_version: 1.8.24
|
197
197
|
signing_key:
|
198
198
|
specification_version: 3
|
199
199
|
summary: An OAuth 1.0 Strategy for Trello that abstracts the OAuth flow using the
|