liangzan_omniauth-trello 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/omniauth/strategies/trello.rb +6 -6
- data/lib/omniauth-trello/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -19,6 +19,6 @@ gem install liangzan_omniauth-trello
|
|
19
19
|
|
20
20
|
``` ruby
|
21
21
|
use OmniAuth::Builder do
|
22
|
-
provider :github, ENV[TRELLO_KEY'], ENV[TRELLO_SECRET'], scope: 'read,write'
|
22
|
+
provider :github, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'], scope: 'read,write', name: 'YourApp'
|
23
23
|
end
|
24
24
|
```
|
@@ -31,12 +31,12 @@ module OmniAuth
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def request_phase
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
options[:authorize_params] = {
|
35
|
+
:scope => options["scope"],
|
36
|
+
:name => options["name"]
|
37
|
+
}
|
38
|
+
super
|
39
|
+
end
|
40
40
|
|
41
41
|
extra do
|
42
42
|
{
|