noresponse 7.1.4 → 7.1.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 +4 -4
- data/lib/no_response/integrations.rb +2 -2
- data/lib/no_response/models/shared/integrationplatform.rb +1 -0
- data/lib/no_response/models/shared/integrationrequest.rb +3 -3
- data/lib/no_response/models/shared/integrationrotationrequest.rb +2 -2
- data/lib/no_response/models/shared/reasoncode.rb +2 -0
- data/lib/no_response/sdkconfiguration.rb +2 -2
- 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: cf24a6aafafdb7fae22fa9116f1caad70765867fe26639f6c503dc3b9bb202eb
|
|
4
|
+
data.tar.gz: 9c9d49a33be9670749d4c8fd87d036118baf52011a0d92cb9302ad70edafc609
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 645eac106667f9b26bcb4f2cfd82f3a42281e05f039832135aad17dcf0eab70fed2908e7cb85cce6031bfa94537eb3db6f14207026c61876f94eb13636622167
|
|
7
|
+
data.tar.gz: 3c0d258863f1925a70ff9828d24e7024f40dc391405ab66b42bd76493bcea441c0fc539f59f0fe07c886dd5070a5e420c262c32bd12f23e6e9a577cab279c1cd
|
|
@@ -47,7 +47,7 @@ module NoResponse
|
|
|
47
47
|
}
|
|
48
48
|
def create(request:, timeout_ms: nil, http_headers: nil)
|
|
49
49
|
# create - Register a hosted provider integration.
|
|
50
|
-
# Registers a WorkOS or
|
|
50
|
+
# Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
51
51
|
url, params = @sdk_configuration.get_server_details
|
|
52
52
|
base_url = Utils.template_url(url, params)
|
|
53
53
|
url = "#{base_url}/v1/integrations"
|
|
@@ -876,7 +876,7 @@ module NoResponse
|
|
|
876
876
|
}
|
|
877
877
|
def rotate(body:, integration_id:, timeout_ms: nil, http_headers: nil)
|
|
878
878
|
# rotate - Replace an integration's secret.
|
|
879
|
-
# For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
879
|
+
# For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
880
880
|
request = Models::Operations::RotateIntegrationSecretRequest.new(
|
|
881
881
|
integration_id: integration_id,
|
|
882
882
|
body: body
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module NoResponse
|
|
5
5
|
module Models
|
|
6
6
|
module Shared
|
|
7
|
-
# POST /v1/integrations body. Registers a hosted endpoint for one authentication provider. The workspace is the API key that signs the request, so the body has no workspace field and refuses one like any other unknown member. A WorkOS integration needs signing_secret, the Actions secret shown in the WorkOS dashboard, which NoResponse uses to verify each Action request and to sign its answer. An Auth0 integration sends no signing_secret: NoResponse generates the shared secret and returns it once.
|
|
7
|
+
# POST /v1/integrations body. Registers a hosted endpoint for one authentication provider. The workspace is the API key that signs the request, so the body has no workspace field and refuses one like any other unknown member. A WorkOS integration needs signing_secret, the Actions secret shown in the WorkOS dashboard, which NoResponse uses to verify each Action request and to sign its answer. A Supabase integration needs signing_secret, the hook secret Supabase generates for a Before User Created HTTPS hook (v1,whsec_ and base64), which NoResponse uses to verify each call. An Auth0 integration sends no signing_secret: NoResponse generates the shared secret and returns it once.
|
|
8
8
|
class IntegrationRequest
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
@@ -21,13 +21,13 @@ module NoResponse
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
|
-
# The provider events the endpoint scores. Default
|
|
24
|
+
# The provider events the endpoint scores. Default every hook point the platform has: pre_registration (WorkOS user registration Action, Auth0 pre-user-registration trigger, Supabase Before User Created hook) and post_login (WorkOS authentication Action, Auth0 post-login trigger). Supabase has only pre_registration, so a Supabase integration that lists post_login is refused. An event that is not listed is answered allow without an assessment.
|
|
25
25
|
field(
|
|
26
26
|
:hook_points,
|
|
27
27
|
Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::IntegrationHookPoint)),
|
|
28
28
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("hook_points")}}
|
|
29
29
|
)
|
|
30
|
-
# The WorkOS Actions signing secret, as the
|
|
30
|
+
# The WorkOS Actions signing secret or the Supabase hook secret, as the provider's dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
|
|
31
31
|
field(
|
|
32
32
|
:signing_secret,
|
|
33
33
|
Crystalline::Nilable.new(::String),
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
module NoResponse
|
|
5
5
|
module Models
|
|
6
6
|
module Shared
|
|
7
|
-
# POST /v1/integrations/{integration_id}/rotate body. For an Auth0 integration send {}: NoResponse generates a new shared secret and returns it once. For a WorkOS integration send the new signing_secret after regenerating it in the
|
|
7
|
+
# POST /v1/integrations/{integration_id}/rotate body. For an Auth0 integration send {}: NoResponse generates a new shared secret and returns it once. For a WorkOS or Supabase integration send the new signing_secret after regenerating it in the provider's dashboard. Either way the previous secret is still accepted for 24 hours, so the provider can be switched over without a refused call.
|
|
8
8
|
class IntegrationRotationRequest
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
11
11
|
|
|
12
|
-
# The WorkOS Actions signing secret, as the
|
|
12
|
+
# The WorkOS Actions signing secret or the Supabase hook secret, as the provider's dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
|
|
13
13
|
field(
|
|
14
14
|
:signing_secret,
|
|
15
15
|
Crystalline::Nilable.new(::String),
|
|
@@ -48,6 +48,8 @@ module NoResponse
|
|
|
48
48
|
YOUNG_EMAIL_DOMAIN = new("young_email_domain")
|
|
49
49
|
EMAIL_DOMAIN_NO_MX = new("email_domain_no_mx")
|
|
50
50
|
EMAIL_DOMAIN_NONEXISTENT = new("email_domain_nonexistent")
|
|
51
|
+
FORUM_SANCTIONED = new("forum_sanctioned")
|
|
52
|
+
PRIOR_PAYMENT_ABUSE = new("prior_payment_abuse")
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
open!
|
|
@@ -95,9 +95,9 @@ module NoResponse
|
|
|
95
95
|
|
|
96
96
|
@language = "ruby"
|
|
97
97
|
@openapi_doc_version = "1"
|
|
98
|
-
@sdk_version = "7.1.
|
|
98
|
+
@sdk_version = "7.1.6"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby 7.1.
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 7.1.6 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|