omniauth-github-team-member 1.0.0 → 1.0.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.
- data/LICENSE +20 -0
- data/README.md +20 -7
- data/lib/omniauth-github-team-member/version.rb +1 -1
- data/omniauth-github-team-member.gemspec +2 -2
- metadata +4 -1
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Jonathan Hoyt
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# OmniAuth
|
1
|
+
# OmniAuth GitHub Team Auth
|
2
2
|
|
3
|
-
This is
|
4
|
-
|
5
|
-
on the [GitHub Applications Page](https://github.com/settings/applications).
|
3
|
+
This is an OmniAuth strategy for authenticating to GitHub and ensuring the user belongs to a specific team. This strategy is useful for building web apps that should only be administered by specific teams. I adapted this from an internal gem at GitHub.
|
4
|
+
|
5
|
+
To use it, you'll need to sign up for an OAuth2 Application ID and Secret on the [GitHub Applications Page](https://github.com/settings/applications).
|
6
6
|
|
7
7
|
## Installing
|
8
8
|
|
@@ -20,7 +20,7 @@ Usage in Rails:
|
|
20
20
|
|
21
21
|
```ruby
|
22
22
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
23
|
-
provider :
|
23
|
+
provider :githubteammember, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET'], :scope => 'user'
|
24
24
|
end
|
25
25
|
```
|
26
26
|
|
@@ -72,7 +72,7 @@ Usage in Sinatra:
|
|
72
72
|
|
73
73
|
```ruby
|
74
74
|
use OmniAuth::Builder do
|
75
|
-
provider :
|
75
|
+
provider :githubteammember, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET']
|
76
76
|
end
|
77
77
|
```
|
78
78
|
|
@@ -83,8 +83,21 @@ the authenticated user.
|
|
83
83
|
|
84
84
|
```ruby
|
85
85
|
use OmniAuth::Builder do
|
86
|
-
provider :
|
86
|
+
provider :githubteammember, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET'], :scope => 'user'
|
87
87
|
end
|
88
88
|
```
|
89
89
|
|
90
90
|
More info on [Scopes](http://developer.github.com/v3/oauth/#scopes).
|
91
|
+
|
92
|
+
## Contributing
|
93
|
+
|
94
|
+
1. [Fork it](https://help.github.com/articles/fork-a-repo)
|
95
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
96
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
97
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
98
|
+
5. Create new [Pull Request](https://help.github.com/articles/using-pull-requests)
|
99
|
+
|
100
|
+
## Contributors
|
101
|
+
|
102
|
+
* [Garrett Bjerkhoel](https://github.com/dewski)
|
103
|
+
* [Jonathan Hoyt](https://github.com/jonmagic)
|
@@ -2,8 +2,8 @@
|
|
2
2
|
require File.expand_path('../lib/omniauth-github-team-member/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ['Jonathan Hoyt']
|
6
|
-
gem.email = ['jonmagic@gmail.com']
|
5
|
+
gem.authors = ['Garrett Bjerkhoel', 'Jonathan Hoyt']
|
6
|
+
gem.email = ['me@garrettbjerkhoel.com', 'jonmagic@gmail.com']
|
7
7
|
gem.description = %q{OmniAuth strategy for GitHub Team Auth.}
|
8
8
|
gem.summary = %q{OmniAuth strategy for GitHub Team Auth.}
|
9
9
|
gem.homepage = 'https://github.com/jonmagic/omniauth-github-team-member'
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-github-team-member
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
+
- Garrett Bjerkhoel
|
8
9
|
- Jonathan Hoyt
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
@@ -93,6 +94,7 @@ dependencies:
|
|
93
94
|
version: '0'
|
94
95
|
description: OmniAuth strategy for GitHub Team Auth.
|
95
96
|
email:
|
97
|
+
- me@garrettbjerkhoel.com
|
96
98
|
- jonmagic@gmail.com
|
97
99
|
executables: []
|
98
100
|
extensions: []
|
@@ -102,6 +104,7 @@ files:
|
|
102
104
|
- .rspec
|
103
105
|
- Gemfile
|
104
106
|
- Guardfile
|
107
|
+
- LICENSE
|
105
108
|
- README.md
|
106
109
|
- Rakefile
|
107
110
|
- lib/omniauth-github-team-member.rb
|