omniauth-proctoru 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/proctoru/version.rb +1 -1
- data/lib/omniauth/strategies/proctoru.rb +36 -0
- data/omniauth-proctoru-0.3.2.gem +0 -0
- data/omniauth-proctoru-0.3.3.gem +0 -0
- data/omniauth-proctoru-0.3.4.gem +0 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd177e5573f1b625768712c469f324e23c970577
|
4
|
+
data.tar.gz: 0543e0f33b681c25ced505040aa567dee521b050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6bc97ac6d41c3bd7c317ad99b368cd90b7f3199428842a95285e30c7b14ee996cb0fca82c781fdb267ab3d2b7bfce7638497f9fb7235491bc4fdca1a420576c
|
7
|
+
data.tar.gz: d7ce5e6c4d5a7711c4cf610a7c38ad4c1dc028a23d24f2d5c2e9f6855ad10bbc47e520ecb2be2fc6503606c5e39d9db9cf831e50d92eb03ed8acbdd5387afd1b
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'omniauth-oauth2'
|
2
|
+
|
3
|
+
module OmniAuth
|
4
|
+
module Strategies
|
5
|
+
class ProctorU < OmniAuth::Strategies::OAuth2
|
6
|
+
option :name, :proctoru
|
7
|
+
option :client_options, {
|
8
|
+
site: "https://api.proctoru.com",
|
9
|
+
authorize_url: "/oauth/authorize"
|
10
|
+
}
|
11
|
+
|
12
|
+
uid { raw_info["uuid"] }
|
13
|
+
|
14
|
+
info do
|
15
|
+
prune!({
|
16
|
+
:uuid => raw_info["uuid"],
|
17
|
+
:email => raw_info["email"],
|
18
|
+
:name => raw_info["first_name"] + raw_info["last_name"],
|
19
|
+
:image_url => raw_info["image_url"]
|
20
|
+
})
|
21
|
+
end
|
22
|
+
|
23
|
+
extra do
|
24
|
+
hash = {}
|
25
|
+
hash[:raw_info] = raw_info
|
26
|
+
prune! hash
|
27
|
+
end
|
28
|
+
|
29
|
+
def raw_info
|
30
|
+
@raw_info ||= access_token.get('/api/users/me').parsed
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
OmniAuth.config.add_camelization 'proctoru', 'ProctorU'
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-proctoru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Autwell
|
@@ -84,6 +84,10 @@ files:
|
|
84
84
|
- bin/setup
|
85
85
|
- lib/omniauth/proctoru.rb
|
86
86
|
- lib/omniauth/proctoru/version.rb
|
87
|
+
- lib/omniauth/strategies/proctoru.rb
|
88
|
+
- omniauth-proctoru-0.3.2.gem
|
89
|
+
- omniauth-proctoru-0.3.3.gem
|
90
|
+
- omniauth-proctoru-0.3.4.gem
|
87
91
|
- omniauth-proctoru.gemspec
|
88
92
|
homepage: https://www.proctoru.com
|
89
93
|
licenses:
|