omniauth-crew-check 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 443fb208fba8f4775b68433a22bc05c092f499a0
4
- data.tar.gz: f25e31c3efab29573341f93d622769211838afa9
3
+ metadata.gz: f30db05c82d0e73064bc8ab26e0e957813585ccd
4
+ data.tar.gz: 1c2409359dd7147c3591faf552cdee45c8b003a1
5
5
  SHA512:
6
- metadata.gz: 34c4a7959b36c884146d2fe3c6c4aa3eea123f8ac2c1b4402bffb518a7a0896303493f3524dbc8df1de105131dfee41df674bfbc074468585332e5d98a745d9f
7
- data.tar.gz: 52ec12c0b07fcbe6842719576e6e48b38122f11392f2fc83176c29f79dfec6f93a4fe1056418776ce319987005e94cafe0ab3a342e863ddc3a50a8c48cf87907
6
+ metadata.gz: 711176cb668a2a9a5defc79155c01dc1c805504f079a702291f1202d83c3d94bf4e20e00afc5eb2190c0b7640e61e153fbd46ed25f2fe929c621b32cc1063514
7
+ data.tar.gz: 358cf8f9d33f52298eebbf7ee3a50cbcaaffd560c3068e2acd3c8a2293d39031fa7be4d2061d54781ea684af2498da46e69849d0bb67e890fb9f44f0877a97be
@@ -1,3 +1,3 @@
1
1
  module CrewCheck
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -16,10 +16,10 @@ module OmniAuth
16
16
  end
17
17
 
18
18
  def callback_phase
19
- if options.role_required && roles.empty?
20
- fail!(:invalid_credentials)
21
- else
22
- super
19
+ super.tap do |res|
20
+ if options.role_required && roles.empty?
21
+ fail!(:invalid_credentials)
22
+ end
23
23
  end
24
24
  end
25
25
 
@@ -91,4 +91,95 @@ http_interactions:
91
91
  MA","email":"hello@launchacademy.com","public_repos":89,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-08-07T18:35:21Z","type":"Organization"}}]'
92
92
  http_version:
93
93
  recorded_at: Thu, 07 Aug 2014 18:51:46 GMT
94
+ - request:
95
+ method: get
96
+ uri: https://api.github.com/user/teams?per_page=100
97
+ body:
98
+ encoding: US-ASCII
99
+ string: ''
100
+ headers:
101
+ Accept:
102
+ - application/vnd.github.v3+json
103
+ User-Agent:
104
+ - Octokit Ruby Gem 3.3.0
105
+ Authorization:
106
+ - token <GITHUB_API_KEY>
107
+ Accept-Encoding:
108
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
109
+ response:
110
+ status:
111
+ code: 200
112
+ message: OK
113
+ headers:
114
+ Server:
115
+ - GitHub.com
116
+ Date:
117
+ - Thu, 04 Sep 2014 01:13:32 GMT
118
+ Content-Type:
119
+ - application/json; charset=utf-8
120
+ Transfer-Encoding:
121
+ - chunked
122
+ Status:
123
+ - 200 OK
124
+ X-Ratelimit-Limit:
125
+ - '5000'
126
+ X-Ratelimit-Remaining:
127
+ - '4999'
128
+ X-Ratelimit-Reset:
129
+ - '1409796812'
130
+ Cache-Control:
131
+ - private, max-age=60, s-maxage=60
132
+ Etag:
133
+ - '"2dd3a286aaf0abd85f9f8a14a3d860a9"'
134
+ X-Oauth-Scopes:
135
+ - gist, repo, user
136
+ X-Accepted-Oauth-Scopes:
137
+ - admin:org, read:org, repo, user, write:org
138
+ Vary:
139
+ - Accept, Authorization, Cookie, X-GitHub-OTP
140
+ - Accept-Encoding
141
+ X-Github-Media-Type:
142
+ - github.v3; format=json
143
+ X-Xss-Protection:
144
+ - 1; mode=block
145
+ X-Frame-Options:
146
+ - deny
147
+ Content-Security-Policy:
148
+ - default-src 'none'
149
+ Access-Control-Allow-Credentials:
150
+ - 'true'
151
+ Access-Control-Expose-Headers:
152
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
153
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
154
+ Access-Control-Allow-Origin:
155
+ - "*"
156
+ X-Github-Request-Id:
157
+ - 421E9943:6A41:2BFE159C:5407BCBB
158
+ Strict-Transport-Security:
159
+ - max-age=31536000; includeSubdomains; preload
160
+ X-Content-Type-Options:
161
+ - nosniff
162
+ X-Served-By:
163
+ - 3061975e1f37121b3751604ad153c687
164
+ body:
165
+ encoding: UTF-8
166
+ string: '[{"name":"Bot","id":345064,"slug":"bot","permission":"admin","url":"https://api.github.com/teams/345064","members_url":"https://api.github.com/teams/345064/members{/member}","repositories_url":"https://api.github.com/teams/345064/repos","members_count":1,"repos_count":4,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
167
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
168
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"latest","id":458370,"slug":"latest","permission":"admin","url":"https://api.github.com/teams/458370","members_url":"https://api.github.com/teams/458370/members{/member}","repositories_url":"https://api.github.com/teams/458370/repos","members_count":1,"repos_count":0,"organization":{"login":"LaunchAcademyEDU","id":5073731,"url":"https://api.github.com/orgs/LaunchAcademyEDU","repos_url":"https://api.github.com/orgs/LaunchAcademyEDU/repos","events_url":"https://api.github.com/orgs/LaunchAcademyEDU/events","members_url":"https://api.github.com/orgs/LaunchAcademyEDU/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademyEDU/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/5073731?v=2","name":"Launch
169
+ Academy","company":null,"blog":"http://www.launchacademy.com","location":"Boston,
170
+ MA","email":"hello@launchacademy.com","public_repos":9,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademyEDU","created_at":"2013-07-23T14:22:32Z","updated_at":"2014-06-10T20:16:56Z","type":"Organization"}},{"name":"winter-2013","id":488810,"slug":"winter-2013","permission":"push","url":"https://api.github.com/teams/488810","members_url":"https://api.github.com/teams/488810/members{/member}","repositories_url":"https://api.github.com/teams/488810/repos","members_count":48,"repos_count":8,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
171
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
172
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"spring-2014","id":574495,"slug":"spring-2014","permission":"push","url":"https://api.github.com/teams/574495","members_url":"https://api.github.com/teams/574495/members{/member}","repositories_url":"https://api.github.com/teams/574495/repos","members_count":43,"repos_count":36,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
173
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
174
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"summer-2014","id":656047,"slug":"summer-2014","permission":"push","url":"https://api.github.com/teams/656047","members_url":"https://api.github.com/teams/656047/members{/member}","repositories_url":"https://api.github.com/teams/656047/repos","members_count":51,"repos_count":2,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
175
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
176
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"spring-2014-read-only","id":744182,"slug":"spring-2014-read-only","permission":"pull","url":"https://api.github.com/teams/744182","members_url":"https://api.github.com/teams/744182/members{/member}","repositories_url":"https://api.github.com/teams/744182/repos","members_count":44,"repos_count":153,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
177
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
178
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"capital-one-preview","id":942647,"slug":"capital-one-preview","permission":"pull","url":"https://api.github.com/teams/942647","members_url":"https://api.github.com/teams/942647/members{/member}","repositories_url":"https://api.github.com/teams/942647/repos","members_count":9,"repos_count":0,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
179
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
180
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"test","id":953825,"slug":"test","permission":"pull","url":"https://api.github.com/teams/953825","members_url":"https://api.github.com/teams/953825/members{/member}","repositories_url":"https://api.github.com/teams/953825/repos","members_count":3,"repos_count":0,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
181
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
182
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}}]'
183
+ http_version:
184
+ recorded_at: Thu, 04 Sep 2014 01:13:32 GMT
94
185
  recorded_with: VCR 2.9.2
@@ -91,4 +91,95 @@ http_interactions:
91
91
  MA","email":"hello@launchacademy.com","public_repos":89,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-08-07T18:35:21Z","type":"Organization"}}]'
92
92
  http_version:
93
93
  recorded_at: Thu, 07 Aug 2014 19:01:52 GMT
94
+ - request:
95
+ method: get
96
+ uri: https://api.github.com/user/teams?per_page=100
97
+ body:
98
+ encoding: US-ASCII
99
+ string: ''
100
+ headers:
101
+ Accept:
102
+ - application/vnd.github.v3+json
103
+ User-Agent:
104
+ - Octokit Ruby Gem 3.3.0
105
+ Authorization:
106
+ - token <GITHUB_API_KEY>
107
+ Accept-Encoding:
108
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
109
+ response:
110
+ status:
111
+ code: 200
112
+ message: OK
113
+ headers:
114
+ Server:
115
+ - GitHub.com
116
+ Date:
117
+ - Thu, 04 Sep 2014 01:13:32 GMT
118
+ Content-Type:
119
+ - application/json; charset=utf-8
120
+ Transfer-Encoding:
121
+ - chunked
122
+ Status:
123
+ - 200 OK
124
+ X-Ratelimit-Limit:
125
+ - '5000'
126
+ X-Ratelimit-Remaining:
127
+ - '4998'
128
+ X-Ratelimit-Reset:
129
+ - '1409796812'
130
+ Cache-Control:
131
+ - private, max-age=60, s-maxage=60
132
+ Etag:
133
+ - '"2dd3a286aaf0abd85f9f8a14a3d860a9"'
134
+ X-Oauth-Scopes:
135
+ - gist, repo, user
136
+ X-Accepted-Oauth-Scopes:
137
+ - admin:org, read:org, repo, user, write:org
138
+ Vary:
139
+ - Accept, Authorization, Cookie, X-GitHub-OTP
140
+ - Accept-Encoding
141
+ X-Github-Media-Type:
142
+ - github.v3; format=json
143
+ X-Xss-Protection:
144
+ - 1; mode=block
145
+ X-Frame-Options:
146
+ - deny
147
+ Content-Security-Policy:
148
+ - default-src 'none'
149
+ Access-Control-Allow-Credentials:
150
+ - 'true'
151
+ Access-Control-Expose-Headers:
152
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
153
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
154
+ Access-Control-Allow-Origin:
155
+ - "*"
156
+ X-Github-Request-Id:
157
+ - 421E9943:6A3E:A862D90:5407BCBC
158
+ Strict-Transport-Security:
159
+ - max-age=31536000; includeSubdomains; preload
160
+ X-Content-Type-Options:
161
+ - nosniff
162
+ X-Served-By:
163
+ - d818ddef80f4c7d10683dd483558952a
164
+ body:
165
+ encoding: UTF-8
166
+ string: '[{"name":"Bot","id":345064,"slug":"bot","permission":"admin","url":"https://api.github.com/teams/345064","members_url":"https://api.github.com/teams/345064/members{/member}","repositories_url":"https://api.github.com/teams/345064/repos","members_count":1,"repos_count":4,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
167
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
168
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"latest","id":458370,"slug":"latest","permission":"admin","url":"https://api.github.com/teams/458370","members_url":"https://api.github.com/teams/458370/members{/member}","repositories_url":"https://api.github.com/teams/458370/repos","members_count":1,"repos_count":0,"organization":{"login":"LaunchAcademyEDU","id":5073731,"url":"https://api.github.com/orgs/LaunchAcademyEDU","repos_url":"https://api.github.com/orgs/LaunchAcademyEDU/repos","events_url":"https://api.github.com/orgs/LaunchAcademyEDU/events","members_url":"https://api.github.com/orgs/LaunchAcademyEDU/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademyEDU/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/5073731?v=2","name":"Launch
169
+ Academy","company":null,"blog":"http://www.launchacademy.com","location":"Boston,
170
+ MA","email":"hello@launchacademy.com","public_repos":9,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademyEDU","created_at":"2013-07-23T14:22:32Z","updated_at":"2014-06-10T20:16:56Z","type":"Organization"}},{"name":"winter-2013","id":488810,"slug":"winter-2013","permission":"push","url":"https://api.github.com/teams/488810","members_url":"https://api.github.com/teams/488810/members{/member}","repositories_url":"https://api.github.com/teams/488810/repos","members_count":48,"repos_count":8,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
171
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
172
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"spring-2014","id":574495,"slug":"spring-2014","permission":"push","url":"https://api.github.com/teams/574495","members_url":"https://api.github.com/teams/574495/members{/member}","repositories_url":"https://api.github.com/teams/574495/repos","members_count":43,"repos_count":36,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
173
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
174
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"summer-2014","id":656047,"slug":"summer-2014","permission":"push","url":"https://api.github.com/teams/656047","members_url":"https://api.github.com/teams/656047/members{/member}","repositories_url":"https://api.github.com/teams/656047/repos","members_count":51,"repos_count":2,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
175
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
176
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"spring-2014-read-only","id":744182,"slug":"spring-2014-read-only","permission":"pull","url":"https://api.github.com/teams/744182","members_url":"https://api.github.com/teams/744182/members{/member}","repositories_url":"https://api.github.com/teams/744182/repos","members_count":44,"repos_count":153,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
177
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
178
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"capital-one-preview","id":942647,"slug":"capital-one-preview","permission":"pull","url":"https://api.github.com/teams/942647","members_url":"https://api.github.com/teams/942647/members{/member}","repositories_url":"https://api.github.com/teams/942647/repos","members_count":9,"repos_count":0,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
179
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
180
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}},{"name":"test","id":953825,"slug":"test","permission":"pull","url":"https://api.github.com/teams/953825","members_url":"https://api.github.com/teams/953825/members{/member}","repositories_url":"https://api.github.com/teams/953825/repos","members_count":3,"repos_count":0,"organization":{"login":"LaunchAcademy","id":3612691,"url":"https://api.github.com/orgs/LaunchAcademy","repos_url":"https://api.github.com/orgs/LaunchAcademy/repos","events_url":"https://api.github.com/orgs/LaunchAcademy/events","members_url":"https://api.github.com/orgs/LaunchAcademy/members{/member}","public_members_url":"https://api.github.com/orgs/LaunchAcademy/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","name":"Launch
181
+ Academy","company":null,"blog":"http://launchacademy.com","location":"Boston,
182
+ MA","email":"hello@launchacademy.com","public_repos":96,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/LaunchAcademy","created_at":"2013-02-16T18:16:02Z","updated_at":"2014-09-03T22:29:57Z","type":"Organization"}}]'
183
+ http_version:
184
+ recorded_at: Thu, 04 Sep 2014 01:13:32 GMT
94
185
  recorded_with: VCR 2.9.2
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://github.com/login/oauth/access_token
6
+ body:
7
+ encoding: UTF-8
8
+ string: client_id=github+secret&client_secret=&code=&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fexample.org%2Fauth%2Fcrew_check%2Fcallback
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 404
21
+ message: Not Found
22
+ headers:
23
+ Server:
24
+ - GitHub.com
25
+ Date:
26
+ - Thu, 04 Sep 2014 01:23:53 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Status:
32
+ - 404 Not Found
33
+ X-Xss-Protection:
34
+ - 1; mode=block
35
+ X-Frame-Options:
36
+ - deny
37
+ Content-Security-Policy:
38
+ - 'default-src *; script-src assets-cdn.github.com www.google-analytics.com
39
+ collector-cdn.github.com; object-src assets-cdn.github.com; style-src ''self''
40
+ ''unsafe-inline'' ''unsafe-eval'' assets-cdn.github.com; img-src ''self''
41
+ data: assets-cdn.github.com identicons.github.com www.google-analytics.com
42
+ collector.githubapp.com *.githubusercontent.com *.gravatar.com *.wp.com; media-src
43
+ ''none''; frame-src ''self'' render.githubusercontent.com www.youtube.com
44
+ player.vimeo.com checkout.paypal.com; font-src assets-cdn.github.com; connect-src
45
+ ''self'' ghconduit.com:25035 live.github.com uploads.github.com s3.amazonaws.com'
46
+ Vary:
47
+ - X-PJAX
48
+ Cache-Control:
49
+ - no-cache
50
+ X-Ua-Compatible:
51
+ - IE=Edge,chrome=1
52
+ Set-Cookie:
53
+ - _gh_sess=eyJzZXNzaW9uX2lkIjoiMzNkOGY3NjBlMDczMTI5Yjg2OTJjYjhjZDBhNDk1YzMiLCJsYXN0X3dyaXRlIjoxNDA5NzkzODMzMjY3fQ%3D%3D--920588f68d43184dbe2744549d04fb025895b64a;
54
+ path=/; secure; HttpOnly
55
+ X-Runtime:
56
+ - '0.032989'
57
+ X-Github-Request-Id:
58
+ - 421E9943:0874:37651E53:5407BF29
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubdomains; preload
61
+ X-Content-Type-Options:
62
+ - nosniff
63
+ body:
64
+ encoding: UTF-8
65
+ string: '{"error":"Not Found"}'
66
+ http_version:
67
+ recorded_at: Thu, 04 Sep 2014 01:23:53 GMT
68
+ recorded_with: VCR 2.9.2
@@ -90,6 +90,7 @@ describe OmniAuth::Strategies::CrewCheck, vcr: true do
90
90
  s.stubs(:access_token).returns(access_token)
91
91
  s.stubs(:request).returns(mock_request)
92
92
  s.stubs(:env).returns({})
93
+ s.stubs(:script_name).returns('')
93
94
  end
94
95
  end
95
96
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-crew-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Pickett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-13 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -175,6 +175,7 @@ files:
175
175
  - spec/fixtures/vcr_cassettes/CrewCheck_TeamList/has_a_list_of_shorthand_names.yml
176
176
  - spec/fixtures/vcr_cassettes/OmniAuth_Strategies_CrewCheck/provides_a_list_of_teams.yml
177
177
  - spec/fixtures/vcr_cassettes/OmniAuth_Strategies_CrewCheck/provides_an_unempty_list_of_teams.yml
178
+ - spec/fixtures/vcr_cassettes/OmniAuth_Strategies_CrewCheck/requiring_a_role/fails_if_a_role_is_not_found_for_the_list_of_teams.yml
178
179
  - spec/spec_helper.rb
179
180
  - spec/support/_dotenv.rb
180
181
  - spec/support/vcr.rb
@@ -211,6 +212,7 @@ test_files:
211
212
  - spec/fixtures/vcr_cassettes/CrewCheck_TeamList/has_a_list_of_shorthand_names.yml
212
213
  - spec/fixtures/vcr_cassettes/OmniAuth_Strategies_CrewCheck/provides_a_list_of_teams.yml
213
214
  - spec/fixtures/vcr_cassettes/OmniAuth_Strategies_CrewCheck/provides_an_unempty_list_of_teams.yml
215
+ - spec/fixtures/vcr_cassettes/OmniAuth_Strategies_CrewCheck/requiring_a_role/fails_if_a_role_is_not_found_for_the_list_of_teams.yml
214
216
  - spec/spec_helper.rb
215
217
  - spec/support/_dotenv.rb
216
218
  - spec/support/vcr.rb