oauth_im 0.15.4 → 0.15.6

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: 340c3017228bd8deac795d9b39c291a9f0d20662c213c0e04c503fd22bcb5bc4
4
- data.tar.gz: 867e207345538f7861d140874f5d95481867b15292b8cbeb6854d74aa36d0bb8
3
+ metadata.gz: 4e339c89931b94e7437d0abec65fbc9223d9bb4ca0d4c0ce6387acd4dd5bc539
4
+ data.tar.gz: b314bd69a4fda21a02afc2a09428dfc9146361ebba36d691dda59d21eb95433e
5
5
  SHA512:
6
- metadata.gz: e19cb411c221a5c6300ab9e0fdbc1d2c45fc2d052d94d700d666e82de8bc5d3d034062e17c9115a2a391c97dfed9a929a74e5faf60dd75cded1ac5b199236eaa
7
- data.tar.gz: 29119e6529f226beb84eecfda8bfc0f30c001c67e9f33067a9a1d209d27d4b4dda34b125f2b7a252f8a10d08eac9e835a9b65205995b3910ec204a3402025bcf
6
+ metadata.gz: d3f467434c4df8266109c62adff0cba17d245439d91183ae75db63d23be10b10e062fc116db7bb40f5bddfa4c21dd0965717061d8922fc767c035afac8222cf1
7
+ data.tar.gz: 3ac0b1b7b86f9897665baff4d353db0f2b6d84f3d88fa92c86dbdd9ca231897c9eb6177cf2641911be17162d333a7e0041fd117feeb0c7e40a5e42c40017cd56
@@ -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(user_id: user_id)
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.user
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
@@ -84,7 +84,8 @@ module OauthIm
84
84
  end
85
85
 
86
86
  def reset_attrs
87
- @attrs = AdminClient.new.proxy_attrs_for(user_id: user_id)
87
+ @attrs =
88
+ AdminClient.new(api_key: api_key, idp_url: idp_url).proxy_attrs_for(user_id: user_id)
88
89
  self
89
90
  end
90
91
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OauthIm
4
- VERSION = '0.15.4'
4
+ VERSION = '0.15.6'
5
5
  end
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
4
+ version: 0.15.6
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-18 00:00:00.000000000 Z
11
+ date: 2024-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fusionauth_client