stytch 7.0.0 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/b2b_organizations.rb +9 -10
- data/lib/stytch/b2b_passwords.rb +9 -9
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5b6f3a220db5b04687a900ac17b0e8f538fb5880a71c390c9ffcef876fd5425
|
4
|
+
data.tar.gz: ed5964bfc4b355a239cc8b5214ea6a2e7dd89a980fa923fd62cf9665176bf241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea9dca6572aaed91548265c03bf051237965cc57d7b82d4d0e3df4f4d1a5e9b1232501c983076057d2c38c168c0210f8051b8874e66155734d62772619c7b343
|
7
|
+
data.tar.gz: 201db2bb213b9c97614c3392beca947df83ed24c57a229e7dadc635a293d4fd6ebc9c424f5d6156a794e53fa9185d23f7447f9f9c11a9896e5567d0653edc758
|
@@ -490,11 +490,6 @@ module StytchB2B
|
|
490
490
|
# member_id::
|
491
491
|
# Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value.
|
492
492
|
# The type of this field is +String+.
|
493
|
-
# preserve_existing_sessions::
|
494
|
-
# (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
|
495
|
-
# by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
|
496
|
-
# authentication factors with the affected SSO connection IDs will be revoked.
|
497
|
-
# The type of this field is +Boolean+.
|
498
493
|
# name::
|
499
494
|
# The name of the Member.
|
500
495
|
#
|
@@ -541,8 +536,13 @@ module StytchB2B
|
|
541
536
|
# authentication factors with the affected connection ID. You can preserve these sessions by passing in the
|
542
537
|
# `preserve_existing_sessions` parameter with a value of `true`.
|
543
538
|
#
|
544
|
-
# If this field is provided, the
|
539
|
+
# If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.roles` action on the `stytch.member` Resource.
|
545
540
|
# The type of this field is nilable list of +String+.
|
541
|
+
# preserve_existing_sessions::
|
542
|
+
# (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
|
543
|
+
# by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
|
544
|
+
# authentication factors with the affected SSO connection IDs will be revoked.
|
545
|
+
# The type of this field is nilable +Boolean+.
|
546
546
|
#
|
547
547
|
# == Returns:
|
548
548
|
# An object with the following fields:
|
@@ -567,7 +567,6 @@ module StytchB2B
|
|
567
567
|
def update(
|
568
568
|
organization_id:,
|
569
569
|
member_id:,
|
570
|
-
preserve_existing_sessions:,
|
571
570
|
name: nil,
|
572
571
|
trusted_metadata: nil,
|
573
572
|
untrusted_metadata: nil,
|
@@ -575,13 +574,12 @@ module StytchB2B
|
|
575
574
|
mfa_phone_number: nil,
|
576
575
|
mfa_enrolled: nil,
|
577
576
|
roles: nil,
|
577
|
+
preserve_existing_sessions: nil,
|
578
578
|
method_options: nil
|
579
579
|
)
|
580
580
|
headers = {}
|
581
581
|
headers = headers.merge(method_options.to_headers) unless method_options.nil?
|
582
|
-
request = {
|
583
|
-
preserve_existing_sessions: preserve_existing_sessions
|
584
|
-
}
|
582
|
+
request = {}
|
585
583
|
request[:name] = name unless name.nil?
|
586
584
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
587
585
|
request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
|
@@ -589,6 +587,7 @@ module StytchB2B
|
|
589
587
|
request[:mfa_phone_number] = mfa_phone_number unless mfa_phone_number.nil?
|
590
588
|
request[:mfa_enrolled] = mfa_enrolled unless mfa_enrolled.nil?
|
591
589
|
request[:roles] = roles unless roles.nil?
|
590
|
+
request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
|
592
591
|
|
593
592
|
put_request("/v1/b2b/organizations/#{organization_id}/members/#{member_id}", request, headers)
|
594
593
|
end
|
data/lib/stytch/b2b_passwords.rb
CHANGED
@@ -102,11 +102,6 @@ module StytchB2B
|
|
102
102
|
# organization_id::
|
103
103
|
# Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value.
|
104
104
|
# The type of this field is +String+.
|
105
|
-
# preserve_existing_sessions::
|
106
|
-
# (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
|
107
|
-
# by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
|
108
|
-
# authentication factors with the affected SSO connection IDs will be revoked.
|
109
|
-
# The type of this field is +Boolean+.
|
110
105
|
# md_5_config::
|
111
106
|
# Optional parameters for MD-5 hash types.
|
112
107
|
# The type of this field is nilable +MD5Config+ (+object+).
|
@@ -143,6 +138,11 @@ module StytchB2B
|
|
143
138
|
# authentication factors with the affected connection ID. You can preserve these sessions by passing in the
|
144
139
|
# `preserve_existing_sessions` parameter with a value of `true`.
|
145
140
|
# The type of this field is nilable list of +String+.
|
141
|
+
# preserve_existing_sessions::
|
142
|
+
# (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
|
143
|
+
# by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
|
144
|
+
# authentication factors with the affected SSO connection IDs will be revoked.
|
145
|
+
# The type of this field is nilable +Boolean+.
|
146
146
|
#
|
147
147
|
# == Returns:
|
148
148
|
# An object with the following fields:
|
@@ -169,7 +169,6 @@ module StytchB2B
|
|
169
169
|
hash:,
|
170
170
|
hash_type:,
|
171
171
|
organization_id:,
|
172
|
-
preserve_existing_sessions:,
|
173
172
|
md_5_config: nil,
|
174
173
|
argon_2_config: nil,
|
175
174
|
sha_1_config: nil,
|
@@ -178,15 +177,15 @@ module StytchB2B
|
|
178
177
|
name: nil,
|
179
178
|
trusted_metadata: nil,
|
180
179
|
untrusted_metadata: nil,
|
181
|
-
roles: nil
|
180
|
+
roles: nil,
|
181
|
+
preserve_existing_sessions: nil
|
182
182
|
)
|
183
183
|
headers = {}
|
184
184
|
request = {
|
185
185
|
email_address: email_address,
|
186
186
|
hash: hash,
|
187
187
|
hash_type: hash_type,
|
188
|
-
organization_id: organization_id
|
189
|
-
preserve_existing_sessions: preserve_existing_sessions
|
188
|
+
organization_id: organization_id
|
190
189
|
}
|
191
190
|
request[:md_5_config] = md_5_config unless md_5_config.nil?
|
192
191
|
request[:argon_2_config] = argon_2_config unless argon_2_config.nil?
|
@@ -197,6 +196,7 @@ module StytchB2B
|
|
197
196
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
198
197
|
request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
|
199
198
|
request[:roles] = roles unless roles.nil?
|
199
|
+
request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
|
200
200
|
|
201
201
|
post_request('/v1/b2b/passwords/migrate', request, headers)
|
202
202
|
end
|
data/lib/stytch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stytch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|