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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0e19852d1701afb5ca640aa4aef01c7157581a2
4
- data.tar.gz: 46b4f05e96827f7b9ef0ddd9696854f646abac5b
3
+ metadata.gz: bd177e5573f1b625768712c469f324e23c970577
4
+ data.tar.gz: 0543e0f33b681c25ced505040aa567dee521b050
5
5
  SHA512:
6
- metadata.gz: 93bea383556309906b61e094ec15b8a4bff062701c8a5901e013f891a996a8317fd6b2b90225493fc29c23b7c4e35a80c5576932034aff42d78bc68efe3e53c8
7
- data.tar.gz: f8a1d643ca2678803c9fa71e1842f134d83ee12cecf85d40bd4374e82cb7f85eac490c68570bf9a9d0974134c627704c10444a14333612bd811ceb1863fd5e82
6
+ metadata.gz: e6bc97ac6d41c3bd7c317ad99b368cd90b7f3199428842a95285e30c7b14ee996cb0fca82c781fdb267ab3d2b7bfce7638497f9fb7235491bc4fdca1a420576c
7
+ data.tar.gz: d7ce5e6c4d5a7711c4cf610a7c38ad4c1dc028a23d24f2d5c2e9f6855ad10bbc47e520ecb2be2fc6503606c5e39d9db9cf831e50d92eb03ed8acbdd5387afd1b
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module ProctorU
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
@@ -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'
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
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: