oauth_im 0.15.3 → 0.15.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0801f2cfd7bbb797459860aad80993f2924f706b9af5afbcc893f72c168f062
|
4
|
+
data.tar.gz: 221c422dcd6ad79787c75242df79cc1744b48c76778fd831c1a57653de629f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b935fda06f3bb7c368d8902e06e263023f2e4972d6f16a5068823132ebb70825f2962c3d6e1a9a48a7c8ddf4ec44eb6d39b9e308389dc4e3220964edeacc4425
|
7
|
+
data.tar.gz: b671cf2d285bb5f85cc4394edd74fd918b9a55c33dfb9cd720381bea2dd9319db18a9a823e0ba3503a0a8026315e8986ab3695aeec5e344250df7243b180281b
|
@@ -15,14 +15,18 @@ module OauthIm
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def proxy_user_for(user_id:)
|
18
|
-
ProxyUser.new proxy_attrs_for
|
18
|
+
ProxyUser.new proxy_attrs_for user_id: user_id
|
19
19
|
end
|
20
20
|
|
21
21
|
def proxy_attrs_for(user_id:)
|
22
22
|
response = client.retrieve_user(user_id).success_response
|
23
23
|
raise "No user for id #{user_id}" if response.blank?
|
24
24
|
|
25
|
-
response
|
25
|
+
response
|
26
|
+
.user
|
27
|
+
.to_h
|
28
|
+
.with_indifferent_access
|
29
|
+
.merge api_key: api_key, idp_url: idp_url
|
26
30
|
end
|
27
31
|
|
28
32
|
private
|
@@ -11,7 +11,6 @@ require 'fusionauth/fusionauth_client'
|
|
11
11
|
|
12
12
|
module OauthIm
|
13
13
|
module HasRegistrationData
|
14
|
-
delegate :email, to: :attrs
|
15
14
|
delegate :role, :grade_level, :school, :district, :state,
|
16
15
|
to: :registration_data
|
17
16
|
delegate :name, :id,
|
@@ -25,6 +24,10 @@ module OauthIm
|
|
25
24
|
delegate :name, :id,
|
26
25
|
to: :state, prefix: true
|
27
26
|
|
27
|
+
def email
|
28
|
+
attrs[:email]
|
29
|
+
end
|
30
|
+
|
28
31
|
def registrations
|
29
32
|
attrs[:registrations] || []
|
30
33
|
end
|
data/lib/oauth_im/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth_im
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Connally
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fusionauth_client
|