oauth_im 0.15.4 → 0.15.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/oauth_im/admin_client.rb +6 -2
- data/lib/oauth_im/version.rb +1 -1
- metadata +1 -1
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
|
data/lib/oauth_im/version.rb
CHANGED