omniauth-github-organization 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/omniauth-github-organization/version.rb +1 -1
- data/lib/omniauth/strategies/github_organization.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f622b7bb7d431b7b0cc18aa1f8542cee4c0316c7864b2d8bad55c3c46ea12996
|
|
4
|
+
data.tar.gz: 1599886d8c96e9a9d303be6fec714e63a7bb21272f0f03f736cdca64c00a9aaf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87e4307ee5ee1e6daac28f6d08bd2f3b4697ed8fb72ffb89728d411eb427d53563314ab0037af11972ad46962e23514d0c2573c8785a71fdbe18e431b94a205d
|
|
7
|
+
data.tar.gz: 05d1fc1239e1b2307bfede0a1368a03b97a834c3c14631ef08e7fabd643d18b8cf7943041469ea11a301c3f8701c7a0338f086c6c5846620fdd64e6f3d7e6db9
|
data/README.md
CHANGED
|
@@ -19,7 +19,7 @@ GitHub API v3 lets you set scopes to provide granular access to different types
|
|
|
19
19
|
|
|
20
20
|
```ruby
|
|
21
21
|
use OmniAuth::Builder do
|
|
22
|
-
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'],
|
|
22
|
+
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], { organization: ENV['GITHUB_ORGANIZATION_NAME'], scope: "user,repo,gist" }
|
|
23
23
|
end
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -28,8 +28,8 @@ module OmniAuth
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def callback_phase
|
|
31
|
-
return fail!(:user_denied, CallbackError.new(:user_denied, options['organization'])) unless organizations.include? options['organization']
|
|
32
31
|
super
|
|
32
|
+
return fail!(:user_denied, CallbackError.new(:user_denied, options['organization'])) unless organizations.include? options['organization']
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def organizations
|