workos 3.0.0 → 3.1.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ad84077c20052b97407464d2d226f58f15633fc075ad94da6072e60258ffb89
|
4
|
+
data.tar.gz: 8d740970f9e7def49c1faeb4f3eddf7da2e8289a6ad8d7e6f1f9e2f730899a7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cff690a42ec04e6ff9ebfe23564573165d0ac39764ed0c8f6b62abb7b19365b1e86d8fe86e19d405cc4529f9104d64f2c6526ec053d8d536037eff9088c1edfc
|
7
|
+
data.tar.gz: 4afff676be0ba3eed8c6c5ce657d9fb6944a55eda0c165e027f34e9362f6ffd5a6cb17363b010682b702f5223e478687bdefa7cd3fa3440cd3d7677584d79a48
|
data/Gemfile.lock
CHANGED
data/lib/workos/user.rb
CHANGED
@@ -10,7 +10,7 @@ module WorkOS
|
|
10
10
|
extend T::Sig
|
11
11
|
|
12
12
|
attr_accessor :id, :email, :first_name, :last_name, :email_verified,
|
13
|
-
:created_at, :updated_at
|
13
|
+
:profile_picture_url, :created_at, :updated_at
|
14
14
|
|
15
15
|
sig { params(json: String).void }
|
16
16
|
def initialize(json)
|
@@ -21,6 +21,7 @@ module WorkOS
|
|
21
21
|
@first_name = raw.first_name
|
22
22
|
@last_name = raw.last_name
|
23
23
|
@email_verified = raw.email_verified
|
24
|
+
@profile_picture_url = raw.profile_picture_url
|
24
25
|
@created_at = T.let(raw.created_at, String)
|
25
26
|
@updated_at = T.let(raw.updated_at, String)
|
26
27
|
end
|
@@ -32,6 +33,7 @@ module WorkOS
|
|
32
33
|
first_name: first_name,
|
33
34
|
last_name: last_name,
|
34
35
|
email_verified: email_verified,
|
36
|
+
profile_picture_url: profile_picture_url,
|
35
37
|
created_at: created_at,
|
36
38
|
updated_at: updated_at,
|
37
39
|
}
|
@@ -49,6 +51,7 @@ module WorkOS
|
|
49
51
|
first_name: hash[:first_name],
|
50
52
|
last_name: hash[:last_name],
|
51
53
|
email_verified: hash[:email_verified],
|
54
|
+
profile_picture_url: hash[:profile_picture_url],
|
52
55
|
created_at: hash[:created_at],
|
53
56
|
updated_at: hash[:updated_at],
|
54
57
|
)
|
data/lib/workos/version.rb
CHANGED
@@ -225,7 +225,7 @@ describe WorkOS::UserManagement do
|
|
225
225
|
it 'returns a user' do
|
226
226
|
VCR.use_cassette 'user_management/get_user' do
|
227
227
|
user = described_class.get_user(
|
228
|
-
id: '
|
228
|
+
id: 'user_01HP0B4ZV2FWWVY0BF16GFDAER',
|
229
229
|
)
|
230
230
|
|
231
231
|
expect(user.id.instance_of?(String))
|
@@ -1,82 +1,82 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.workos.com/user_management/users/user_01HP0B4ZV2FWWVY0BF16GFDAER
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- WorkOS; ruby/3.1.1; arm64-darwin21; v3.0.0
|
18
|
+
Authorization:
|
19
|
+
- Bearer <API_KEY>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 06 Feb 2024 23:16:59 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cf-Ray:
|
34
|
+
- 85171aa13cb71017-LAX
|
35
|
+
Cf-Cache-Status:
|
36
|
+
- DYNAMIC
|
37
|
+
Etag:
|
38
|
+
- W/"fc-DvbCxkCW5Wocu/IoMzE4Fvwf0ns"
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=15552000; includeSubDomains
|
41
|
+
Vary:
|
42
|
+
- Origin, Accept-Encoding
|
43
|
+
Via:
|
44
|
+
- 1.1 spaces-router (devel)
|
45
|
+
Access-Control-Allow-Credentials:
|
46
|
+
- 'true'
|
47
|
+
Content-Security-Policy:
|
48
|
+
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
|
49
|
+
https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
|
50
|
+
''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
|
51
|
+
Expect-Ct:
|
52
|
+
- max-age=0
|
53
|
+
Referrer-Policy:
|
54
|
+
- no-referrer
|
55
|
+
X-Content-Type-Options:
|
56
|
+
- nosniff
|
57
|
+
X-Dns-Prefetch-Control:
|
58
|
+
- 'off'
|
59
|
+
X-Download-Options:
|
60
|
+
- noopen
|
61
|
+
X-Frame-Options:
|
62
|
+
- SAMEORIGIN
|
63
|
+
X-Permitted-Cross-Domain-Policies:
|
64
|
+
- none
|
65
|
+
X-Request-Id:
|
66
|
+
- d889e317-2368-4fe7-b0a2-1c47be3d9ca3
|
67
|
+
X-Xss-Protection:
|
68
|
+
- '0'
|
69
|
+
Set-Cookie:
|
70
|
+
- __cf_bm=zsxf6bU0PO_IAuZj57IP3Rk5q298HNg4.dSEXeYctso-1707261419-1-AdcDe/e31u5UfcVRh4MJqIcXlsdh/l5nwm8LpGN+dPD9ouq8nTzZ4nfMdt4Ukpc91Tohr0dOd9F6590AmrTiLUM=;
|
71
|
+
path=/; expires=Tue, 06-Feb-24 23:46:59 GMT; domain=.workos.com; HttpOnly;
|
72
|
+
Secure; SameSite=None
|
73
|
+
- __cfruid=60c1b96c058658fb8ea6f02357a98f597642db51-1707261419; path=/; domain=.workos.com;
|
74
|
+
HttpOnly; Secure; SameSite=None
|
75
|
+
Server:
|
76
|
+
- cloudflare
|
77
|
+
body:
|
78
|
+
encoding: ASCII-8BIT
|
79
|
+
string: '{"object":"user","id":"user_01HP0B4ZV2FWWVY0BF16GFDAER","email":"bob@example.com","email_verified":false,"first_name":"Bob","last_name":"Loblaw","profile_picture_url":null,"created_at":"2024-02-06T23:13:18.137Z","updated_at":"2024-02-06T23:13:36.946Z"}'
|
80
|
+
http_version:
|
81
|
+
recorded_at: Tue, 06 Feb 2024 23:16:59 GMT
|
82
82
|
recorded_with: VCR 5.0.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WorkOS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -443,7 +443,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
443
443
|
- !ruby/object:Gem::Version
|
444
444
|
version: '0'
|
445
445
|
requirements: []
|
446
|
-
rubygems_version: 3.5.
|
446
|
+
rubygems_version: 3.5.6
|
447
447
|
signing_key:
|
448
448
|
specification_version: 4
|
449
449
|
summary: API client for WorkOS
|