From bb110eb6e4f195b79c7a842ddbe1cea34560db08 Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Tue, 30 Apr 2024 16:07:06 +0530 Subject: [PATCH] [GH-372] Fix unmarshaling issue with Wordpress strategy connections --- management/connection.go | 53 +++++++ management/connection_test.go | 41 +++++ ...successfully_create_a_ADFS_Connection.yaml | 12 +- ...n_successfully_create_a_AD_Connection.yaml | 12 +- ...uccessfully_create_a_Apple_Connection.yaml | 12 +- ...uccessfully_create_a_Auth0_Connection.yaml | 12 +- ...sfully_create_a_Custom_SMS_Connection.yaml | 12 +- ...uccessfully_create_a_Email_Connection.yaml | 12 +- ...essfully_create_a_Facebook_Connection.yaml | 12 +- ...ccessfully_create_a_GitHub_Connection.yaml | 12 +- ...sfully_create_a_GoogleApps_Connection.yaml | 12 +- ...ully_create_a_GoogleOAuth2_Connection.yaml | 12 +- ...essfully_create_a_LinkedIn_Connection.yaml | 12 +- ...successfully_create_a_OIDC_Connection.yaml | 12 +- ...successfully_create_a_Okta_Connection.yaml | 12 +- ...lly_create_a_Ping_Federate_Connection.yaml | 12 +- ...successfully_create_a_SAML_Connection.yaml | 12 +- ..._successfully_create_a_SMS_Connection.yaml | 12 +- ...sfully_create_a_SalesForce_Connection.yaml | 12 +- ...fully_create_a_WindowsLive_Connection.yaml | 12 +- ...ssfully_create_a_Wordpress_Connection.yaml | 74 +++++++++ .../TestConnectionManager_Delete.yaml | 20 +-- .../TestConnectionManager_List.yaml | 16 +- ...n_successfully_read_a_ADFS_Connection.yaml | 22 +-- ...can_successfully_read_a_AD_Connection.yaml | 22 +-- ..._successfully_read_a_Apple_Connection.yaml | 30 ++-- ..._successfully_read_a_Auth0_Connection.yaml | 22 +-- ...essfully_read_a_Custom_SMS_Connection.yaml | 22 +-- ..._successfully_read_a_Email_Connection.yaml | 24 +-- ...ccessfully_read_a_Facebook_Connection.yaml | 22 +-- ...successfully_read_a_GitHub_Connection.yaml | 30 ++-- ...essfully_read_a_GoogleApps_Connection.yaml | 30 ++-- ...sfully_read_a_GoogleOAuth2_Connection.yaml | 30 ++-- ...ccessfully_read_a_LinkedIn_Connection.yaml | 22 +-- ...n_successfully_read_a_OIDC_Connection.yaml | 30 ++-- ...n_successfully_read_a_Okta_Connection.yaml | 30 ++-- ...fully_read_a_Ping_Federate_Connection.yaml | 30 ++-- ...n_successfully_read_a_SAML_Connection.yaml | 22 +-- ...an_successfully_read_a_SMS_Connection.yaml | 30 ++-- ...essfully_read_a_SalesForce_Connection.yaml | 24 +-- ...ssfully_read_a_WindowsLive_Connection.yaml | 22 +-- ...cessfully_read_a_Wordpress_Connection.yaml | 144 +++++++++++++++++ ...ly_find_a_ADFS_Connection_by_its_name.yaml | 30 ++-- ...ully_find_a_AD_Connection_by_its_name.yaml | 22 +-- ...y_find_a_Apple_Connection_by_its_name.yaml | 30 ++-- ...y_find_a_Auth0_Connection_by_its_name.yaml | 22 +-- ...d_a_Custom_SMS_Connection_by_its_name.yaml | 30 ++-- ...y_find_a_Email_Connection_by_its_name.yaml | 24 +-- ...ind_a_Facebook_Connection_by_its_name.yaml | 30 ++-- ..._find_a_GitHub_Connection_by_its_name.yaml | 22 +-- ...d_a_GoogleApps_Connection_by_its_name.yaml | 30 ++-- ...a_GoogleOAuth2_Connection_by_its_name.yaml | 24 +-- ...ind_a_LinkedIn_Connection_by_its_name.yaml | 30 ++-- ...ly_find_a_OIDC_Connection_by_its_name.yaml | 22 +-- ...ly_find_a_Okta_Connection_by_its_name.yaml | 30 ++-- ..._Ping_Federate_Connection_by_its_name.yaml | 30 ++-- ...ly_find_a_SAML_Connection_by_its_name.yaml | 30 ++-- ...lly_find_a_SMS_Connection_by_its_name.yaml | 30 ++-- ...d_a_SalesForce_Connection_by_its_name.yaml | 22 +-- ..._a_WindowsLive_Connection_by_its_name.yaml | 22 +-- ...nd_a_Wordpress_Connection_by_its_name.yaml | 144 +++++++++++++++++ ...n_successfully_update_a_AD_Connection.yaml | 24 +-- ...uccessfully_update_a_Apple_Connection.yaml | 24 +-- ...uccessfully_update_a_Auth0_Connection.yaml | 24 +-- ...sfully_update_a_Custom_SMS_Connection.yaml | 24 +-- ...uccessfully_update_a_Email_Connection.yaml | 24 +-- ...essfully_update_a_Facebook_Connection.yaml | 24 +-- ...ccessfully_update_a_GitHub_Connection.yaml | 24 +-- ...sfully_update_a_GoogleApps_Connection.yaml | 24 +-- ...ully_update_a_GoogleOAuth2_Connection.yaml | 24 +-- ...essfully_update_a_LinkedIn_Connection.yaml | 24 +-- ..._successfully_update_a_SMS_Connection.yaml | 24 +-- ...sfully_update_a_SalesForce_Connection.yaml | 24 +-- ...fully_update_a_WindowsLive_Connection.yaml | 24 +-- ...ssfully_update_a_Wordpress_Connection.yaml | 145 ++++++++++++++++++ 75 files changed, 1355 insertions(+), 754 deletions(-) create mode 100644 test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml create mode 100644 test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml diff --git a/management/connection.go b/management/connection.go index 376ecbc4..1a1daedd 100644 --- a/management/connection.go +++ b/management/connection.go @@ -7,6 +7,7 @@ import ( "sort" "strings" + "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/internal/tag" ) @@ -913,6 +914,58 @@ type ConnectionOptionsOAuth2 struct { UpstreamParams map[string]interface{} `json:"upstream_params,omitempty"` } +// UnmarshalJSON implements the json.Unmarshaler interface for ConnectionOptionsOAuth2. +// It is required to handle differences in the scope field, which can +// be an array of strings or a single string. +func (c *ConnectionOptionsOAuth2) UnmarshalJSON(data []byte) error { + type connectionOptionsOAuth2 ConnectionOptionsOAuth2 + type connectionOptionsOAuth2Wrapper struct { + *connectionOptionsOAuth2 + RawScope interface{} `json:"scope,omitempty"` + } + + alias := &connectionOptionsOAuth2Wrapper{(*connectionOptionsOAuth2)(c), nil} + + err := json.Unmarshal(data, alias) + if err != nil { + return err + } + + if alias.RawScope != nil { + switch rawScope := alias.RawScope.(type) { + case []interface{}: + scopes := make([]string, len(rawScope)) + for i, v := range rawScope { + scopes[i] = v.(string) + } + c.Scope = auth0.String(strings.Join(scopes, " ")) + case string: + c.Scope = auth0.String(rawScope) + default: + return fmt.Errorf("unexpected type for field scope: %T", alias.RawScope) + } + } + + return nil +} + +// MarshalJSON implements the json.Marshaler interface for ConnectionOptionsOAuth2. +func (c *ConnectionOptionsOAuth2) MarshalJSON() ([]byte, error) { + type connectionOptionsOAuth2 ConnectionOptionsOAuth2 + type connectionOptionsOAuth2Wrapper struct { + *connectionOptionsOAuth2 + RawScope interface{} `json:"scope,omitempty"` + } + + alias := &connectionOptionsOAuth2Wrapper{(*connectionOptionsOAuth2)(c), nil} + if c.Scope != nil { + scopes := strings.Fields(*c.Scope) + alias.RawScope = scopes + } + + return json.Marshal(alias) +} + // Scopes returns the scopes for ConnectionOptionsOAuth2. func (c *ConnectionOptionsOAuth2) Scopes() []string { return strings.Fields(c.GetScope()) diff --git a/management/connection_test.go b/management/connection_test.go index fe1816d3..9a1e25fe 100644 --- a/management/connection_test.go +++ b/management/connection_test.go @@ -28,6 +28,21 @@ var connectionTestCases = []connectionTestCase{ }, }, }, + { + name: "Wordpress Connection", + connection: Connection{ + Name: auth0.Stringf("Test-Wordpress-Connection-%d", time.Now().Unix()), + Strategy: auth0.String("wordpress"), + }, + options: &ConnectionOptionsOAuth2{ + Scope: auth0.String("email profile openid"), + UpstreamParams: map[string]interface{}{ + "screen_name": map[string]interface{}{ + "alias": "login_hint", + }, + }, + }, + }, { name: "GoogleOAuth2 Connection", connection: Connection{ @@ -612,6 +627,32 @@ func TestConnectionOptionsScopes(t *testing.T) { }) } +func TestOAuth2Connection_MarshalJSON(t *testing.T) { + for connection, expected := range map[*ConnectionOptionsOAuth2]string{ + {Scope: auth0.String("foo bar baz")}: `{"authorizationURL":null,"tokenURL":null,"scope":["foo","bar","baz"]}`, + {Scope: auth0.String("")}: `{"authorizationURL":null,"tokenURL":null,"scope":[]}`, + {Scope: nil}: `{"authorizationURL":null,"tokenURL":null}`, + } { + payload, err := json.Marshal(connection) + assert.NoError(t, err) + assert.Equal(t, expected, string(payload)) + } +} + +func TestOAuth2Connection_UnmarshalJSON(t *testing.T) { + for expectedAsString, expected := range map[string]*ConnectionOptionsOAuth2{ + `{"scope":["foo","bar","baz"]}`: {Scope: auth0.String("foo bar baz")}, + `{"scope":null}`: {Scope: nil}, + `{}`: {}, + `{"scope":[]}`: {Scope: auth0.String("")}, + } { + var actual *ConnectionOptionsOAuth2 + err := json.Unmarshal([]byte(expectedAsString), &actual) + assert.NoError(t, err) + assert.Equal(t, expected, actual) + } +} + func TestGoogleOauth2Connection_MarshalJSON(t *testing.T) { var emptySlice []string for connection, expected := range map[*ConnectionOptionsGoogleOAuth2]string{ diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml index 6258f9fb..6b03fbfb 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1714039090","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-ADFS-Connection-1714473052","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_99dCf1MTlQiNP56U","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/8Il6A5Qd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039090"]}' + body: '{"id":"con_0395zVLxXGz37nxg","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/s3WGmg3a","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 317.085292ms + duration: 383.956ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_99dCf1MTlQiNP56U + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0395zVLxXGz37nxg method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:17.762Z"}' + body: '{"deleted_at":"2024-04-30T10:31:00.646Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 289.661625ms + duration: 366.961792ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml index 3b4dc799..d0cbe8b3 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039090","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714473052","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 407 uncompressed: false - body: '{"id":"con_HzF4tG8cdHmnnn30","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/ITTPn4ckD4O3R2JUiLJl0h0NjGGlBotS","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039090"]}' + body: '{"id":"con_pbVKvqxBHFr6oWPj","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/ebkio6LUEGJu1ohysbIlQybdZ3Imrm3A","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 329.268584ms + duration: 406.856083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HzF4tG8cdHmnnn30 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbVKvqxBHFr6oWPj method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:17.153Z"}' + body: '{"deleted_at":"2024-04-30T10:30:59.908Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 298.261542ms + duration: 329.858125ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml index 5ba8c8b2..7653f2cf 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039090","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714473052","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_Y8Kj7ui38hZiC8fp","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039090"]}' + body: '{"id":"con_vweVu7ZlaTbdM5C0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 304.10175ms + duration: 363.491583ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y8Kj7ui38hZiC8fp + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vweVu7ZlaTbdM5C0 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:19.013Z"}' + body: '{"deleted_at":"2024-04-30T10:31:02.076Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 302.679292ms + duration: 358.612958ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml index d83161e4..d08cd10d 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039090","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714473052","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - body: '{"id":"con_pcnj6AYiMPfhD3Xj","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039090"]}' + body: '{"id":"con_wrGwirVruBhK1ceq","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.234447666s + duration: 1.161378458s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pcnj6AYiMPfhD3Xj + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wrGwirVruBhK1ceq method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:11.936Z"}' + body: '{"deleted_at":"2024-04-30T10:30:54.013Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 320.527083ms + duration: 372.204459ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml index 3d255407..b38c9adf 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039090","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714473052","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - body: '{"id":"con_4ufaOPCb5X7w3CE3","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039090"]}' + body: '{"id":"con_BDd5LNqGUfIMPPMf","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 498.095167ms + duration: 355.267625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4ufaOPCb5X7w3CE3 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BDd5LNqGUfIMPPMf method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:15.876Z"}' + body: '{"deleted_at":"2024-04-30T10:30:58.463Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 299.285917ms + duration: 346.820666ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml index ea80cd3a..c26ea5af 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039090","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Email-Connection-1714473052","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_bOSN9UAfIz3cbLJ5","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039090"]}' + body: '{"id":"con_eKVuo2VWBiQYat9m","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 320.399458ms + duration: 328.45525ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bOSN9UAfIz3cbLJ5 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eKVuo2VWBiQYat9m method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:14.445Z"}' + body: '{"deleted_at":"2024-04-30T10:30:57.060Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 303.483833ms + duration: 357.016541ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml index 01d5985c..2205f487 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039090","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714473052","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_PgWaMhpWrX8NAyJG","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039090"]}' + body: '{"id":"con_gxh8Kt7WPAPjLy9a","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 321.464792ms + duration: 329.907792ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PgWaMhpWrX8NAyJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gxh8Kt7WPAPjLy9a method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:18.398Z"}' + body: '{"deleted_at":"2024-04-30T10:31:01.355Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 326.34525ms + duration: 353.038375ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml index 1081bd40..9c5fdda7 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039090","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714473052","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_6R4edWvsVXC1sr4O","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039090"]}' + body: '{"id":"con_wGlnCXNEDWdGYGVd","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.78463775s + duration: 388.00275ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6R4edWvsVXC1sr4O + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wGlnCXNEDWdGYGVd method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:21.842Z"}' + body: '{"deleted_at":"2024-04-30T10:31:03.495Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 685.960583ms + duration: 352.389834ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml index 1e4929dc..2d68f269 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039090","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleApps-Connection-1714473052","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - body: '{"id":"con_iJf7zQKi1LHgzKoM","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039090","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/EGqzsZGc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039090"]}' + body: '{"id":"con_MnSnzPgu18RtUzeO","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473052","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/4VrqkleQ","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 424.161083ms + duration: 494.386625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJf7zQKi1LHgzKoM + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnSnzPgu18RtUzeO method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:13.787Z"}' + body: '{"deleted_at":"2024-04-30T10:30:56.383Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 341.964375ms + duration: 367.900041ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml index 78967b96..2b451d73 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039090","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} + {"name":"Test-GoogleOAuth2-Connection-1714473052","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_Sa4O6pSH5FKgxMr6","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039090"]}' + body: '{"id":"con_o4leyQcvPnEsulhA","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 402.828ms + duration: 364.11275ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Sa4O6pSH5FKgxMr6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o4leyQcvPnEsulhA method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:13.042Z"}' + body: '{"deleted_at":"2024-04-30T10:30:55.503Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 700.637958ms + duration: 372.373292ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml index bd30a03e..4860edf4 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039090","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714473052","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_yU1dsr25pBOE4KoF","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039090"]}' + body: '{"id":"con_9IFegLFxjRNzwXyS","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 304.820042ms + duration: 324.244083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1dsr25pBOE4KoF + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9IFegLFxjRNzwXyS method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:19.609Z"}' + body: '{"deleted_at":"2024-04-30T10:31:02.748Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 288.470875ms + duration: 353.9405ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml index 26501651..a07f4d30 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1714039090","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714473052","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 601 uncompressed: false - body: '{"id":"con_gwUQcKszoR4YzqJh","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039090","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039090"]}' + body: '{"id":"con_R3vDvBL9APN6FWup","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714473052","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 466.066583ms + duration: 495.284625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gwUQcKszoR4YzqJh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_R3vDvBL9APN6FWup method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:25.239Z"}' + body: '{"deleted_at":"2024-04-30T10:31:05.781Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 1.0150705s + duration: 466.204667ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml index d618bcaa..fa4e1126 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1714039090","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Okta-Connection-1714473052","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_UNM36xniapct7Fdg","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039090","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039090"]}' + body: '{"id":"con_ymZTflBKfO1nZe4Z","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714473052","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 2.004119209s + duration: 617.88775ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UNM36xniapct7Fdg + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ymZTflBKfO1nZe4Z method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:27.774Z"}' + body: '{"deleted_at":"2024-04-30T10:31:06.851Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 294.757417ms + duration: 332.492834ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml index 745ff8f9..865fd372 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Ping-Federate-Connection-1714039090","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} + {"name":"Test-Ping-Federate-Connection-1714473052","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_zb1phW3cVWRcc1Z8","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/Xpsski7H","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039090"]}' + body: '{"id":"con_lO9x4ot3mzIM8vZf","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/WjwaF4Jm","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.462875ms + duration: 435.125292ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zb1phW3cVWRcc1Z8 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lO9x4ot3mzIM8vZf method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:28.392Z"}' + body: '{"deleted_at":"2024-04-30T10:31:07.657Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.251458ms + duration: 436.62025ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml index 93b78d2d..3a6920c2 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1714039090","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SAML-Connection-1714473052","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Kq4CT6aSuGAE2tmh","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/TYwMKw5u","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039090"]}' + body: '{"id":"con_QdwAW6eftPXgNARQ","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/O0kUSqAO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 338.630541ms + duration: 350.210375ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Kq4CT6aSuGAE2tmh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QdwAW6eftPXgNARQ method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:16.520Z"}' + body: '{"deleted_at":"2024-04-30T10:30:59.156Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 297.435833ms + duration: 344.824041ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml index 833ced20..9ccb439c 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039090","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SMS-Connection-1714473052","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_iKq24od5UExzvR6v","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039090"]}' + body: '{"id":"con_lMBgpzFbHQhCoJ19","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 315.465333ms + duration: 340.851792ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iKq24od5UExzvR6v + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lMBgpzFbHQhCoJ19 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:15.065Z"}' + body: '{"deleted_at":"2024-04-30T10:30:57.758Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 319.833583ms + duration: 344.044ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml index e76c9358..faaf0457 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039090","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714473052","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_XcQCQDdgps4WlT0E","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039090"]}' + body: '{"id":"con_8GVCTa5JxURNv0tW","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 298.047833ms + duration: 377.860708ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XcQCQDdgps4WlT0E + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8GVCTa5JxURNv0tW method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:23.986Z"}' + body: '{"deleted_at":"2024-04-30T10:31:04.939Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 305.483166ms + duration: 333.829875ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml index f0c852e8..0b1465d8 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039090","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714473052","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_OJEwRqLoDmRsrQwX","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039090"]}' + body: '{"id":"con_lwVv7HioQN9yT6ZJ","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 996.973917ms + duration: 363.12475ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OJEwRqLoDmRsrQwX + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lwVv7HioQN9yT6ZJ method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:23.380Z"}' + body: '{"deleted_at":"2024-04-30T10:31:04.213Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.195167ms + duration: 364.028125ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml new file mode 100644 index 00000000..80763a6c --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml @@ -0,0 +1,74 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 217 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473052","strategy":"wordpress","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 342 + uncompressed: false + body: '{"id":"con_1LIdptTAFtTOkREW","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473052"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 389.720583ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_1LIdptTAFtTOkREW + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:30:54.765Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 376.670125ms diff --git a/test/data/recordings/TestConnectionManager_Delete.yaml b/test/data/recordings/TestConnectionManager_Delete.yaml index 6b9fa3c8..400d0c6f 100644 --- a/test/data/recordings/TestConnectionManager_Delete.yaml +++ b/test/data/recordings/TestConnectionManager_Delete.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039361","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1714473387","strategy":"auth0"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 520 uncompressed: false - body: '{"id":"con_eDAiZ1UPsIUzjZZD","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039361","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039361"]}' + body: '{"id":"con_LYWBkMBZrC6aelY5","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473387","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473387"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 719.911542ms + duration: 828.671875ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 method: DELETE response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:02:42.108Z"}' + body: '{"deleted_at":"2024-04-30T10:36:28.127Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 307.303583ms + duration: 329.139917ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 method: GET response: proto: HTTP/2.0 @@ -106,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 286.915125ms + duration: 339.533416ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 278.150167ms + duration: 353.659875ms diff --git a/test/data/recordings/TestConnectionManager_List.yaml b/test/data/recordings/TestConnectionManager_List.yaml index 8a734bb0..7ce71ac5 100644 --- a/test/data/recordings/TestConnectionManager_List.yaml +++ b/test/data/recordings/TestConnectionManager_List.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-List-1714039374","strategy":"auth0"} + {"name":"Test-Auth0-Connection-List-1714473394","strategy":"auth0"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 530 uncompressed: false - body: '{"id":"con_DuRWr9eEHgCRBxh5","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-List-1714039374","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1714039374"]}' + body: '{"id":"con_9ipDSs5V9ANs9sBA","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-List-1714473394","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1714473394"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 680.305709ms + duration: 1.072938375s - id: 1 request: proto: HTTP/1.1 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":5,"start":0,"limit":50,"connections":[{"id":"con_zKW9Xxoj0tFV5LnK","is_domain_connection":false},{"id":"con_hxpwEaue9vG1Nmah","is_domain_connection":false},{"id":"con_DuRWr9eEHgCRBxh5","is_domain_connection":false},{"id":"con_j2mkms4M0wmxNiSx","is_domain_connection":false},{"id":"con_o1RfqDaIvuekh5T5","is_domain_connection":false}]}' + body: '{"total":5,"start":0,"limit":50,"connections":[{"id":"con_zKW9Xxoj0tFV5LnK","is_domain_connection":false},{"id":"con_hxpwEaue9vG1Nmah","is_domain_connection":false},{"id":"con_9ipDSs5V9ANs9sBA","is_domain_connection":false},{"id":"con_j2mkms4M0wmxNiSx","is_domain_connection":false},{"id":"con_o1RfqDaIvuekh5T5","is_domain_connection":false}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 280.450917ms + duration: 325.89875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DuRWr9eEHgCRBxh5 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9ipDSs5V9ANs9sBA method: DELETE response: proto: HTTP/2.0 @@ -100,10 +100,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:02:56.036Z"}' + body: '{"deleted_at":"2024-04-30T10:36:36.523Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 300.531209ms + duration: 328.540667ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml index 39a31625..24657d51 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1714039119","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-ADFS-Connection-1714473198","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Pf8jZhMH5fUfas7S","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/agYNWXCB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' + body: '{"id":"con_uvDp1KQI1WMnLp8O","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/KNWoyrHt","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.828168125s + duration: 350.364ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Pf8jZhMH5fUfas7S","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/agYNWXCB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' + body: '{"id":"con_uvDp1KQI1WMnLp8O","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/KNWoyrHt","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 283.031666ms + duration: 353.083208ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:57.761Z"}' + body: '{"deleted_at":"2024-04-30T10:33:39.160Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 359.249042ms + duration: 320.5215ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 281.2415ms + duration: 394.116541ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml index 957f34f2..0f1bae6a 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039119","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714473198","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 407 uncompressed: false - body: '{"id":"con_liiPTODci0164g0d","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d8yQjHWI7ZmcelIM8QCz7PqVZTPRHS6d","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' + body: '{"id":"con_SyGo8pu7byDRkHPa","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d1h4il6iNZLWlByYXujP6MZUCCVMsFeL","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 312.809166ms + duration: 338.068584ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_liiPTODci0164g0d","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d8yQjHWI7ZmcelIM8QCz7PqVZTPRHS6d","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' + body: '{"id":"con_SyGo8pu7byDRkHPa","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d1h4il6iNZLWlByYXujP6MZUCCVMsFeL","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 287.541791ms + duration: 349.556584ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:54.400Z"}' + body: '{"deleted_at":"2024-04-30T10:33:31.487Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 287.127875ms + duration: 345.545084ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 904.360708ms + duration: 6.626678375s diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml index 01b2c417..8f600a07 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039119","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714473198","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_ulUkCQdIpt4Rc35k","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' + body: '{"id":"con_SQk86k5mLVQWdVNx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 279.609083ms + duration: 406.227875ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_ulUkCQdIpt4Rc35k","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' + body: '{"id":"con_SQk86k5mLVQWdVNx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 1.008866583s + duration: 332.068209ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:01.023Z"}' + body: '{"deleted_at":"2024-04-30T10:33:42.269Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 291.508625ms + duration: 447.952375ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:01.023Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 286.908542ms + status: 204 No Content + code: 204 + duration: 332.105666ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml index 9d1449d0..f25c99f0 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039119","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714473198","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - body: '{"id":"con_5AsdYqbYZK1UHvJG","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' + body: '{"id":"con_yU1jaw0rreAkxE0R","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 676.395708ms + duration: 797.860334ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_5AsdYqbYZK1UHvJG","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' + body: '{"id":"con_yU1jaw0rreAkxE0R","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 278.576333ms + duration: 364.919833ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:40.979Z"}' + body: '{"deleted_at":"2024-04-30T10:33:19.595Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 718.49725ms + duration: 327.139792ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 296.858084ms + duration: 320.961042ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml index 8aaadd99..bd3d669b 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714473198","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - body: '{"id":"con_kg5g3CWVxE01lql9","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' + body: '{"id":"con_sJn2mdHVsF09i1yK","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 533.0365ms + duration: 399.502083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_kg5g3CWVxE01lql9","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' + body: '{"id":"con_sJn2mdHVsF09i1yK","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 321.263833ms + duration: 331.206959ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:50.789Z"}' + body: '{"deleted_at":"2024-04-30T10:33:28.551Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 532.929208ms + duration: 478.443875ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 1.111852833s + duration: 353.65575ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml index 797cb595..67f7e04a 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039119","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Email-Connection-1714473198","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_MWvrzZGqfpZdjojf","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' + body: '{"id":"con_cTSqXxWoLevx7EoJ","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.83537625s + duration: 384.920375ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_MWvrzZGqfpZdjojf","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' + body: '{"id":"con_cTSqXxWoLevx7EoJ","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 284.650959ms + duration: 338.224791ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:47.235Z"}' + body: '{"deleted_at":"2024-04-30T10:33:25.290Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 303.03975ms + duration: 353.717375ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:47.235Z"}' + body: '{"deleted_at":"2024-04-30T10:33:25.290Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 296.719333ms + duration: 314.753875ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml index df231f2c..ef2ca954 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039119","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714473198","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_rEOcYHfO6hayZeVf","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' + body: '{"id":"con_xJbBgEWF54NBRyDU","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 290.859541ms + duration: 406.369792ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_rEOcYHfO6hayZeVf","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' + body: '{"id":"con_xJbBgEWF54NBRyDU","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 270.879958ms + duration: 409.065667ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:58.910Z"}' + body: '{"deleted_at":"2024-04-30T10:33:40.706Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 538.240583ms + duration: 409.334334ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 277.320666ms + duration: 408.962333ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml index 6c26eeef..d1619071 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039119","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714473198","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_pKErIJOvmCDBHDmu","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' + body: '{"id":"con_rXyFZf1jLxNKLHq6","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.770864333s + duration: 339.808125ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_pKErIJOvmCDBHDmu","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' + body: '{"id":"con_rXyFZf1jLxNKLHq6","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 290.357042ms + duration: 310.81775ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:10.517Z"}' + body: '{"deleted_at":"2024-04-30T10:33:45.675Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 940.935583ms + duration: 349.036834ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:45.675Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 291.931083ms + status: 202 Accepted + code: 202 + duration: 344.12775ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml index a2a37364..c32d8783 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039119","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleApps-Connection-1714473198","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - body: '{"id":"con_i0BNiwITSWk1tFSh","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/8zC73qIN","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' + body: '{"id":"con_5Pwdf8riSqOSl3Nv","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473198","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/IHMf58rC","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 373.794375ms + duration: 468.054584ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_i0BNiwITSWk1tFSh","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/8zC73qIN","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' + body: '{"id":"con_5Pwdf8riSqOSl3Nv","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473198","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/IHMf58rC","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 940.760291ms + duration: 321.829125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:44.527Z"}' + body: '{"deleted_at":"2024-04-30T10:33:23.898Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 283.51875ms + duration: 346.397916ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:23.898Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 281.428125ms + status: 202 Accepted + code: 202 + duration: 328.279125ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml index eff1f045..111e1b48 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039119","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} + {"name":"Test-GoogleOAuth2-Connection-1714473198","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_YuZ7vqMV4QOsZNcf","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' + body: '{"id":"con_wSoxywAAbF3L24PX","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.303ms + duration: 352.906625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_YuZ7vqMV4QOsZNcf","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' + body: '{"id":"con_wSoxywAAbF3L24PX","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 298.592416ms + duration: 363.881125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:42.414Z"}' + body: '{"deleted_at":"2024-04-30T10:33:22.375Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 298.447291ms + duration: 338.441166ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:22.375Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 504.469167ms + status: 202 Accepted + code: 202 + duration: 390.45475ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml index a3a4c7ab..03977c40 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039119","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714473198","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_nfU32kQA3KQ7ihtY","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' + body: '{"id":"con_eaIVHi6cpMMLKhLW","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 929.889834ms + duration: 459.667167ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_nfU32kQA3KQ7ihtY","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' + body: '{"id":"con_eaIVHi6cpMMLKhLW","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 289.014083ms + duration: 577.483292ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:02.820Z"}' + body: '{"deleted_at":"2024-04-30T10:33:44.093Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 281.665084ms + duration: 340.815875ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 340.3295ms + duration: 596.247125ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml index c87f293a..2053c571 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1714039119","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714473198","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 601 uncompressed: false - body: '{"id":"con_y7zUsbV329xFLrMO","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' + body: '{"id":"con_jupNbydQGYPotAVo","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 608.625625ms + duration: 499.51625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_y7zUsbV329xFLrMO","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' + body: '{"id":"con_jupNbydQGYPotAVo","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 303.0795ms + duration: 345.431167ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:15.016Z"}' + body: '{"deleted_at":"2024-04-30T10:33:50.344Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 282.691833ms + duration: 327.611042ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:15.016Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 289.665792ms + status: 204 No Content + code: 204 + duration: 336.887084ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml index eb8be846..9734d881 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1714039119","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Okta-Connection-1714473198","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_8lirb7WPfkQCJbHO","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' + body: '{"id":"con_U8bCbR5G60jXUHhI","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 530.491167ms + duration: 620.70325ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_8lirb7WPfkQCJbHO","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' + body: '{"id":"con_U8bCbR5G60jXUHhI","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 275.73625ms + duration: 334.3025ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:16.423Z"}' + body: '{"deleted_at":"2024-04-30T10:33:52.308Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 306.130625ms + duration: 704.891917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:52.308Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 279.331084ms + status: 202 Accepted + code: 202 + duration: 317.054417ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml index 73cb7d40..c47ca065 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Ping-Federate-Connection-1714039119","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} + {"name":"Test-Ping-Federate-Connection-1714473198","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_3IDb76XUJe64wte9","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/jgCUtTsq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' + body: '{"id":"con_IO8VmU6v6n06WTDp","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/TCzsAt5H","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 565.412833ms + duration: 361.766333ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_3IDb76XUJe64wte9","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/jgCUtTsq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' + body: '{"id":"con_IO8VmU6v6n06WTDp","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/TCzsAt5H","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 288.681583ms + duration: 340.971667ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:17.855Z"}' + body: '{"deleted_at":"2024-04-30T10:33:53.705Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 6.76604075s + duration: 412.491542ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:53.705Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 301.09725ms + status: 202 Accepted + code: 202 + duration: 374.138667ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml index c5d83b93..bacabdc9 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1714039119","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SAML-Connection-1714473198","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_OOotKswZ4NDuqxD6","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/24shvsu0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' + body: '{"id":"con_sm3oJRdagvqKFvpm","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/haDfh6yd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 314.43ms + duration: 398.977708ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_OOotKswZ4NDuqxD6","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/24shvsu0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' + body: '{"id":"con_sm3oJRdagvqKFvpm","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/haDfh6yd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 288.493042ms + duration: 340.891166ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:53.002Z"}' + body: '{"deleted_at":"2024-04-30T10:33:30.030Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 271.65725ms + duration: 429.279542ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 507.191667ms + duration: 346.346875ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml index 039108f5..56080f92 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SMS-Connection-1714473198","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_QVhTByAUKCKGFPEe","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' + body: '{"id":"con_nuuebpXQzLPwZrhq","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 545.083041ms + duration: 513.9165ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_QVhTByAUKCKGFPEe","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' + body: '{"id":"con_nuuebpXQzLPwZrhq","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 519.649958ms + duration: 409.678875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:48.906Z"}' + body: '{"deleted_at":"2024-04-30T10:33:26.874Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 311.9005ms + duration: 410.3715ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:26.874Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 701.853209ms + status: 202 Accepted + code: 202 + duration: 416.808875ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml index 80f74294..00f104c3 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039119","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714473198","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_RVKEsDIRPSWdVIW1","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' + body: '{"id":"con_fKtFTXLPoJ1LnNvE","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 285.587042ms + duration: 326.873834ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_RVKEsDIRPSWdVIW1","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' + body: '{"id":"con_fKtFTXLPoJ1LnNvE","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 292.226125ms + duration: 313.401875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:13.516Z"}' + body: '{"deleted_at":"2024-04-30T10:33:48.629Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.118209ms + duration: 381.336083ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:13.516Z"}' + body: '{"deleted_at":"2024-04-30T10:33:48.629Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.393417ms + duration: 511.058333ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml index 634e77af..59a8abde 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039119","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714473198","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_s20VSSN0ch6UGDsH","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' + body: '{"id":"con_YXdytpu4VSD0F7de","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 306.423875ms + duration: 369.866583ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_s20VSSN0ch6UGDsH","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' + body: '{"id":"con_YXdytpu4VSD0F7de","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 296.549583ms + duration: 407.859209ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:12.363Z"}' + body: '{"deleted_at":"2024-04-30T10:33:47.325Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 291.101917ms + duration: 502.293667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 287.7265ms + duration: 316.352125ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml new file mode 100644 index 00000000..547939c1 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml @@ -0,0 +1,144 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 217 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473198","strategy":"wordpress","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 342 + uncompressed: false + body: '{"id":"con_QgVJdPChZqeIauvG","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473198"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 332.632125ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_QgVJdPChZqeIauvG","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473198"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 355.966417ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:33:20.954Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 342.890084ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 361.824834ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml index 15d062c1..29caba9d 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1714039119","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-ADFS-Connection-1714473302","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Eb5a0lw82xSQ7L2R","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/boL8bVmA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' + body: '{"id":"con_bpvlBQPDCBDsqOot","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/IGwco2TF","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 554.73075ms + duration: 5.710824125s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Eb5a0lw82xSQ7L2R","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/boL8bVmA","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_bpvlBQPDCBDsqOot","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/IGwco2TF","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 286.625875ms + duration: 403.112334ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Eb5a0lw82xSQ7L2R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bpvlBQPDCBDsqOot method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:40.625Z"}' + body: '{"deleted_at":"2024-04-30T10:35:23.448Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 300.554541ms + duration: 328.764666ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Eb5a0lw82xSQ7L2R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bpvlBQPDCBDsqOot method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:23.448Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 269.242583ms + status: 202 Accepted + code: 202 + duration: 436.47375ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml index 99d36a9f..87b98df5 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039119","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714473302","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 407 uncompressed: false - body: '{"id":"con_y4u6xzf79w6o7ujq","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/WZ04z8Ta5DVJFrkVO25atdDUpTOpZql5","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' + body: '{"id":"con_fJKZpLULtI3twgjl","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/F0rXspAqECvfI0bW3n6xXWieHs8bEJrA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 294.543792ms + duration: 326.753166ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_y4u6xzf79w6o7ujq","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/WZ04z8Ta5DVJFrkVO25atdDUpTOpZql5","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_fJKZpLULtI3twgjl","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/F0rXspAqECvfI0bW3n6xXWieHs8bEJrA","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 282.695875ms + duration: 318.130083ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y4u6xzf79w6o7ujq + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fJKZpLULtI3twgjl method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:39.223Z"}' + body: '{"deleted_at":"2024-04-30T10:35:16.691Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 274.557583ms + duration: 331.01025ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y4u6xzf79w6o7ujq + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fJKZpLULtI3twgjl method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 255.857166ms + duration: 312.649333ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml index dd992e22..c0dd4696 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039119","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714473302","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_QQWSQL3NBr7jFMgR","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' + body: '{"id":"con_4bwoWzShbslsA9Hn","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 297.382458ms + duration: 348.066084ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_QQWSQL3NBr7jFMgR","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"realms":["Test-Apple-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_4bwoWzShbslsA9Hn","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473302","is_domain_connection":false,"realms":["Test-Apple-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 295.378ms + duration: 316.280125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QQWSQL3NBr7jFMgR + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4bwoWzShbslsA9Hn method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:42.941Z"}' + body: '{"deleted_at":"2024-04-30T10:35:26.195Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 311.191417ms + duration: 340.531958ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QQWSQL3NBr7jFMgR + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4bwoWzShbslsA9Hn method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:42.941Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 276.171ms + status: 204 No Content + code: 204 + duration: 307.697292ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml index 3b96a3ce..29dfbd4f 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039119","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714473302","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - body: '{"id":"con_tfZFr7R6TuERRgdX","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' + body: '{"id":"con_ljYVBopvrTDcvyUB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 307.732ms + duration: 812.202167ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tfZFr7R6TuERRgdX","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"realms":["Test-Auth0-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_ljYVBopvrTDcvyUB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473302","is_domain_connection":false,"realms":["Test-Auth0-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 294.977125ms + duration: 331.410917ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tfZFr7R6TuERRgdX + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ljYVBopvrTDcvyUB method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:25.529Z"}' + body: '{"deleted_at":"2024-04-30T10:35:04.939Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 282.262625ms + duration: 989.603458ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tfZFr7R6TuERRgdX + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ljYVBopvrTDcvyUB method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 268.172333ms + duration: 379.8115ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml index d6dbe343..b9db0986 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714473302","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - body: '{"id":"con_9JvXRKOlv2f59CWZ","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' + body: '{"id":"con_RHIwoZw7hdVMJDRw","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 319.076709ms + duration: 404.771542ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_9JvXRKOlv2f59CWZ","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_RHIwoZw7hdVMJDRw","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473302","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 268.253ms + duration: 409.61325ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9JvXRKOlv2f59CWZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RHIwoZw7hdVMJDRw method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:31.674Z"}' + body: '{"deleted_at":"2024-04-30T10:35:13.890Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 286.25625ms + duration: 333.687333ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9JvXRKOlv2f59CWZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RHIwoZw7hdVMJDRw method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:13.890Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 5.536023833s + status: 202 Accepted + code: 202 + duration: 373.838708ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml index 3615310f..0ee2e4d0 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039119","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Email-Connection-1714473302","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_BE9tW3vz5RItIKXa","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' + body: '{"id":"con_kZfCnQYXVGXwFs6J","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.864125ms + duration: 343.757667ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_BE9tW3vz5RItIKXa","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"realms":["Test-Email-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_kZfCnQYXVGXwFs6J","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473302","is_domain_connection":false,"realms":["Test-Email-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 263.096083ms + duration: 374.519708ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BE9tW3vz5RItIKXa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kZfCnQYXVGXwFs6J method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:29.356Z"}' + body: '{"deleted_at":"2024-04-30T10:35:10.863Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 279.080333ms + duration: 333.051833ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BE9tW3vz5RItIKXa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kZfCnQYXVGXwFs6J method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:29.356Z"}' + body: '{"deleted_at":"2024-04-30T10:35:10.863Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 257.493709ms + duration: 311.9795ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml index ed0ef002..7ded958c 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039119","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714473302","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_XP35DTZjHGlrxtJ2","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' + body: '{"id":"con_SQmJVLGTsYZ2ighN","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 311.860542ms + duration: 346.242291ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_XP35DTZjHGlrxtJ2","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"realms":["Test-Facebook-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_SQmJVLGTsYZ2ighN","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473302","is_domain_connection":false,"realms":["Test-Facebook-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 283.588792ms + duration: 320.32525ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XP35DTZjHGlrxtJ2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQmJVLGTsYZ2ighN method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:41.777Z"}' + body: '{"deleted_at":"2024-04-30T10:35:24.876Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 276.754958ms + duration: 325.861667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XP35DTZjHGlrxtJ2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQmJVLGTsYZ2ighN method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:24.876Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 260.40425ms + status: 202 Accepted + code: 202 + duration: 304.703291ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml index 3fd87981..9f3a3c75 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039119","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714473302","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_RcckZlJhvfSjBY1R","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' + body: '{"id":"con_zh6MDuAZ44XHV2FW","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 301.498333ms + duration: 343.616333ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_RcckZlJhvfSjBY1R","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"realms":["Test-GitHub-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_zh6MDuAZ44XHV2FW","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473302","is_domain_connection":false,"realms":["Test-GitHub-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 280.33575ms + duration: 336.696875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RcckZlJhvfSjBY1R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zh6MDuAZ44XHV2FW method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:51.306Z"}' + body: '{"deleted_at":"2024-04-30T10:35:28.907Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 307.214917ms + duration: 337.443625ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RcckZlJhvfSjBY1R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zh6MDuAZ44XHV2FW method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 280.070042ms + duration: 409.240417ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml index 2fbc56d3..fd670275 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039119","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleApps-Connection-1714473302","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - body: '{"id":"con_6I7X9m56rlIb6yLK","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/XFQUoBp1","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' + body: '{"id":"con_5Dc3F1Db2EttVzhS","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473302","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/ZLxQCuAn","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 604.915583ms + duration: 477.005917ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_6I7X9m56rlIb6yLK","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/XFQUoBp1","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_5Dc3F1Db2EttVzhS","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473302","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/ZLxQCuAn","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 288.721625ms + duration: 457.007875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6I7X9m56rlIb6yLK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Dc3F1Db2EttVzhS method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:28.190Z"}' + body: '{"deleted_at":"2024-04-30T10:35:09.395Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 352.645708ms + duration: 441.548166ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6I7X9m56rlIb6yLK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Dc3F1Db2EttVzhS method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:28.190Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 262.637583ms + status: 204 No Content + code: 204 + duration: 314.826458ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml index 6291adf2..d71a04c3 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039119","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} + {"name":"Test-GoogleOAuth2-Connection-1714473302","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_5Y7mJiuZzRmhXF0Z","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' + body: '{"id":"con_OBIag7kpH76OFUDM","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.049125ms + duration: 360.493292ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_5Y7mJiuZzRmhXF0Z","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_OBIag7kpH76OFUDM","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473302","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 293.278791ms + duration: 319.3915ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Y7mJiuZzRmhXF0Z + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OBIag7kpH76OFUDM method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:26.709Z"}' + body: '{"deleted_at":"2024-04-30T10:35:07.743Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 308.996708ms + duration: 358.136041ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Y7mJiuZzRmhXF0Z + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OBIag7kpH76OFUDM method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:26.709Z"}' + body: '{"deleted_at":"2024-04-30T10:35:07.743Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 267.257167ms + duration: 378.220291ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml index cd0bcbd9..6e434c76 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039119","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714473302","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_AWLYaFqXQsNsWSoi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' + body: '{"id":"con_bvAUCuevZHdYeIo1","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 313.553625ms + duration: 342.666208ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_AWLYaFqXQsNsWSoi","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_bvAUCuevZHdYeIo1","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473302","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 290.845291ms + duration: 337.3845ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_AWLYaFqXQsNsWSoi + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bvAUCuevZHdYeIo1 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:49.480Z"}' + body: '{"deleted_at":"2024-04-30T10:35:27.510Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 6.292603417s + duration: 325.439917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_AWLYaFqXQsNsWSoi + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bvAUCuevZHdYeIo1 method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:27.510Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 291.290542ms + status: 202 Accepted + code: 202 + duration: 386.39975ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml index 9367db7e..db19d839 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1714039119","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714473302","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 601 uncompressed: false - body: '{"id":"con_oavO85VKWUdxjTL4","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' + body: '{"id":"con_Q9zMy9JwSiBYeYm9","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 465.701209ms + duration: 603.3885ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_oavO85VKWUdxjTL4","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"realms":["Test-OIDC-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Q9zMy9JwSiBYeYm9","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"realms":["Test-OIDC-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 773.123167ms + duration: 320.242375ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oavO85VKWUdxjTL4 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q9zMy9JwSiBYeYm9 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:55.818Z"}' + body: '{"deleted_at":"2024-04-30T10:35:33.463Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.169125ms + duration: 338.707083ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oavO85VKWUdxjTL4 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q9zMy9JwSiBYeYm9 method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 304.647375ms + duration: 362.9335ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml index 8c176ff6..b7e0ac97 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1714039119","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Okta-Connection-1714473302","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_SP4CdTOqji8SmKaf","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' + body: '{"id":"con_SP7oYgVyYp5WbIVp","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 777.184708ms + duration: 6.041564875s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_SP4CdTOqji8SmKaf","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"realms":["Test-Okta-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_SP7oYgVyYp5WbIVp","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"realms":["Test-Okta-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.276334ms + duration: 509.725583ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP4CdTOqji8SmKaf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP7oYgVyYp5WbIVp method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:57.532Z"}' + body: '{"deleted_at":"2024-04-30T10:35:40.725Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 523.684125ms + duration: 339.382667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP4CdTOqji8SmKaf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP7oYgVyYp5WbIVp method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:40.725Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 271.990125ms + status: 202 Accepted + code: 202 + duration: 386.975667ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml index 8ac99c84..e32a0d3b 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Ping-Federate-Connection-1714039119","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} + {"name":"Test-Ping-Federate-Connection-1714473302","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_pxXUpEqz6lImRZsy","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/vQxjgHtA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' + body: '{"id":"con_Y4h0LOeTmjEccyT9","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/je480ld2","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 941.722375ms + duration: 396.583375ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_pxXUpEqz6lImRZsy","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/vQxjgHtA","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Y4h0LOeTmjEccyT9","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/je480ld2","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 928.417792ms + duration: 408.605083ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pxXUpEqz6lImRZsy + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y4h0LOeTmjEccyT9 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:00:00.222Z"}' + body: '{"deleted_at":"2024-04-30T10:35:42.254Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 295.817834ms + duration: 410.584125ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pxXUpEqz6lImRZsy + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y4h0LOeTmjEccyT9 method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:00:00.222Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 281.725333ms + status: 204 No Content + code: 204 + duration: 335.738875ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml index 65739152..2b34693c 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1714039119","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SAML-Connection-1714473302","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_367wYAui2j9BVs1K","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/1BWHvJZn","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' + body: '{"id":"con_iJSlQ9Cp3VcULPHt","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/2HEKdzI1","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 307.439416ms + duration: 367.211542ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_367wYAui2j9BVs1K","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/1BWHvJZn","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_iJSlQ9Cp3VcULPHt","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/2HEKdzI1","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 274.846834ms + duration: 322.228459ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_367wYAui2j9BVs1K + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJSlQ9Cp3VcULPHt method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:38.093Z"}' + body: '{"deleted_at":"2024-04-30T10:35:15.287Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 290.469917ms + duration: 331.640917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_367wYAui2j9BVs1K + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJSlQ9Cp3VcULPHt method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:15.287Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 264.618666ms + status: 202 Accepted + code: 202 + duration: 419.533875ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml index 68273ef5..3554058e 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SMS-Connection-1714473302","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_tlXbDURTRR0gwQ2C","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' + body: '{"id":"con_h7XPly3pvVkSzeJk","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 292.268209ms + duration: 338.048708ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tlXbDURTRR0gwQ2C","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"realms":["Test-SMS-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_h7XPly3pvVkSzeJk","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473302","is_domain_connection":false,"realms":["Test-SMS-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.508125ms + duration: 400.735542ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlXbDURTRR0gwQ2C + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h7XPly3pvVkSzeJk method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:30.526Z"}' + body: '{"deleted_at":"2024-04-30T10:35:12.258Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 287.902709ms + duration: 408.584042ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlXbDURTRR0gwQ2C + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h7XPly3pvVkSzeJk method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:12.258Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 280.039167ms + status: 202 Accepted + code: 202 + duration: 409.85725ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml index 20f4e9b6..e1b63aec 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039119","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714473302","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_pbupNl5E5iKEDlaQ","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' + body: '{"id":"con_0piuYFctzHie9Z3e","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 330.258958ms + duration: 336.914084ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_pbupNl5E5iKEDlaQ","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_0piuYFctzHie9Z3e","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473302","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 496.320125ms + duration: 320.87ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbupNl5E5iKEDlaQ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0piuYFctzHie9Z3e method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:54.022Z"}' + body: '{"deleted_at":"2024-04-30T10:35:31.861Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 318.626625ms + duration: 363.419625ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbupNl5E5iKEDlaQ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0piuYFctzHie9Z3e method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 263.171333ms + duration: 312.71275ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml index 9a364171..e6cee4ff 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039119","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714473302","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_JFpIlYsUyRx9Xw26","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' + body: '{"id":"con_aioG22piwFEMfV9s","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 293.4585ms + duration: 324.487042ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_JFpIlYsUyRx9Xw26","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_aioG22piwFEMfV9s","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473302","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 280.759708ms + duration: 387.395416ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JFpIlYsUyRx9Xw26 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aioG22piwFEMfV9s method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:52.456Z"}' + body: '{"deleted_at":"2024-04-30T10:35:30.375Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 435.677958ms + duration: 410.282417ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JFpIlYsUyRx9Xw26 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aioG22piwFEMfV9s method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 265.29075ms + duration: 410.982208ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml new file mode 100644 index 00000000..2f681868 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml @@ -0,0 +1,144 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 217 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473302","strategy":"wordpress","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 342 + uncompressed: false + body: '{"id":"con_7qEL7ZP1LkJ6laad","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473302"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 324.772917ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Wordpress-Connection-1714473302&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_7qEL7ZP1LkJ6laad","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473302","is_domain_connection":false,"realms":["Test-Wordpress-Connection-1714473302"],"enabled_clients":[]}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 341.853791ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7qEL7ZP1LkJ6laad + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:35:06.372Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 332.967375ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7qEL7ZP1LkJ6laad + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 334.271875ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml index 6143ef91..fc5556c3 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039292","strategy":"ad"} + {"name":"Test-AD-Connection-1714473349","strategy":"ad"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 350 uncompressed: false - body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' + body: '{"id":"con_2Q6DiHDd5tthYU7j","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473349","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cgFvR7be7nfvfREDaIxQhgMBSL168G0f","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 302.12025ms + duration: 344.410334ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' + body: '{"id":"con_2Q6DiHDd5tthYU7j","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714473349","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cgFvR7be7nfvfREDaIxQhgMBSL168G0f","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 414.295583ms + duration: 448.570083ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' + body: '{"id":"con_2Q6DiHDd5tthYU7j","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714473349","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cgFvR7be7nfvfREDaIxQhgMBSL168G0f","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 268.425791ms + duration: 322.231792ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:44.108Z"}' + body: '{"deleted_at":"2024-04-30T10:36:02.434Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 300.658625ms + duration: 337.959166ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml index 0846e28d..bbf013f0 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039292","strategy":"apple"} + {"name":"Test-Apple-Connection-1714473349","strategy":"apple"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 199 uncompressed: false - body: '{"id":"con_eaFIj3kL972NXvEx","options":{},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' + body: '{"id":"con_k450HrzoSZun0qqi","options":{},"strategy":"apple","name":"Test-Apple-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 293.626083ms + duration: 348.921709ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_eaFIj3kL972NXvEx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' + body: '{"id":"con_k450HrzoSZun0qqi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 339.756666ms + duration: 355.444708ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_eaFIj3kL972NXvEx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' + body: '{"id":"con_k450HrzoSZun0qqi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.779083ms + duration: 529.399083ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:47.207Z"}' + body: '{"deleted_at":"2024-04-30T10:36:11.640Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 280.97975ms + duration: 407.669792ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml index 9f5405c2..f53ca056 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039292","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1714473349","strategy":"auth0"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 520 uncompressed: false - body: '{"id":"con_gym71s4JTbACZkRN","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' + body: '{"id":"con_g2D8xIh9FP73ayJ5","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 694.736708ms + duration: 1.054093916s - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_gym71s4JTbACZkRN","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' + body: '{"id":"con_g2D8xIh9FP73ayJ5","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 305.594084ms + duration: 368.411333ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_gym71s4JTbACZkRN","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' + body: '{"id":"con_g2D8xIh9FP73ayJ5","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 285.979583ms + duration: 339.03675ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:33.572Z"}' + body: '{"deleted_at":"2024-04-30T10:35:52.002Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 296.915208ms + duration: 338.445791ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml index 75bdeeb3..09b47c07 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039292","strategy":"sms"} + {"name":"Test-Custom-SMS-Connection-1714473349","strategy":"sms"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 236 uncompressed: false - body: '{"id":"con_iszyrbDILLXEvhY2","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' + body: '{"id":"con_o1OkAN3GOCni2pr5","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 295.31075ms + duration: 381.738375ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_iszyrbDILLXEvhY2","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' + body: '{"id":"con_o1OkAN3GOCni2pr5","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 324.368167ms + duration: 340.817625ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_iszyrbDILLXEvhY2","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' + body: '{"id":"con_o1OkAN3GOCni2pr5","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 291.176875ms + duration: 370.793583ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:42.800Z"}' + body: '{"deleted_at":"2024-04-30T10:36:00.992Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 309.914375ms + duration: 329.6475ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml index dbc5ae8a..bf98a1a3 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039292","strategy":"email"} + {"name":"Test-Email-Connection-1714473349","strategy":"email"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 228 uncompressed: false - body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' + body: '{"id":"con_4rAqdFx8di4ueV0J","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 297.275209ms + duration: 406.44075ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' + body: '{"id":"con_4rAqdFx8di4ueV0J","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 294.23425ms + duration: 409.085708ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' + body: '{"id":"con_4rAqdFx8di4ueV0J","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 279.903375ms + duration: 409.385125ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:38.208Z"}' + body: '{"deleted_at":"2024-04-30T10:35:57.911Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 955.824208ms + duration: 408.627375ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml index b93ca0f4..d1609388 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039292","strategy":"facebook"} + {"name":"Test-Facebook-Connection-1714473349","strategy":"facebook"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 218 uncompressed: false - body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' + body: '{"id":"con_XjRQTRVnj4CIqfZt","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 956.147916ms + duration: 337.285667ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' + body: '{"id":"con_XjRQTRVnj4CIqfZt","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 317.796042ms + duration: 344.148833ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' + body: '{"id":"con_XjRQTRVnj4CIqfZt","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 292.061042ms + duration: 320.207875ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:45.970Z"}' + body: '{"deleted_at":"2024-04-30T10:36:10.070Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 290.76125ms + duration: 6.617861667s diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml index aaf05920..4da435d5 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039292","strategy":"github"} + {"name":"Test-GitHub-Connection-1714473349","strategy":"github"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 212 uncompressed: false - body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' + body: '{"id":"con_QPtYW1u27Q3RfX0g","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 927.687875ms + duration: 328.446541ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' + body: '{"id":"con_QPtYW1u27Q3RfX0g","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 310.876166ms + duration: 365.121542ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' + body: '{"id":"con_QPtYW1u27Q3RfX0g","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 1.79357775s + duration: 409.684084ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:52.516Z"}' + body: '{"deleted_at":"2024-04-30T10:36:14.717Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 351.685416ms + duration: 381.227416ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml index 5ec12f2f..fca9c1ad 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039292","strategy":"google-apps"} + {"name":"Test-GoogleApps-Connection-1714473349","strategy":"google-apps"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 439 uncompressed: false - body: '{"id":"con_GjAws9biy6A99gV7","options":{"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' + body: '{"id":"con_aktOwZ6B3TXbxVRT","options":{"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473349","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/oLTnZqRh","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.036354875s + duration: 391.310542ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_GjAws9biy6A99gV7","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' + body: '{"id":"con_aktOwZ6B3TXbxVRT","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473349","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/oLTnZqRh","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 376.1175ms + duration: 400.50175ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_GjAws9biy6A99gV7","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' + body: '{"id":"con_aktOwZ6B3TXbxVRT","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473349","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/oLTnZqRh","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 503.019583ms + duration: 311.666334ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:37.013Z"}' + body: '{"deleted_at":"2024-04-30T10:35:56.278Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.560583ms + duration: 403.222958ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml index e5a4dfda..01020061 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039292","strategy":"google-oauth2"} + {"name":"Test-GoogleOAuth2-Connection-1714473349","strategy":"google-oauth2"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 276 uncompressed: false - body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' + body: '{"id":"con_enYMdfsLAL21lQdY","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 317.978583ms + duration: 340.064417ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' + body: '{"id":"con_enYMdfsLAL21lQdY","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 319.743833ms + duration: 351.209042ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' + body: '{"id":"con_enYMdfsLAL21lQdY","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 279.961583ms + duration: 315.872458ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:34.793Z"}' + body: '{"deleted_at":"2024-04-30T10:35:54.852Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 283.353167ms + duration: 318.002208ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml index 30dad569..58f33257 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039292","strategy":"linkedin"} + {"name":"Test-LinkedIn-Connection-1714473349","strategy":"linkedin"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 249 uncompressed: false - body: '{"id":"con_oziq1YEBqFiBR92e","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' + body: '{"id":"con_CcU6SfOpsnaSg7Sd","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 307.984875ms + duration: 325.509792ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_oziq1YEBqFiBR92e","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' + body: '{"id":"con_CcU6SfOpsnaSg7Sd","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 304.721125ms + duration: 388.11225ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_oziq1YEBqFiBR92e","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' + body: '{"id":"con_CcU6SfOpsnaSg7Sd","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 268.467833ms + duration: 511.497042ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:48.488Z"}' + body: '{"deleted_at":"2024-04-30T10:36:13.275Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 1.044783292s + duration: 326.123125ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml index 9aed5308..940968d9 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039292","strategy":"sms"} + {"name":"Test-SMS-Connection-1714473349","strategy":"sms"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 222 uncompressed: false - body: '{"id":"con_pi37EtqyVqePsI4f","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' + body: '{"id":"con_uLQfYJEONvCnUHXh","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.795596666s + duration: 407.244792ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_pi37EtqyVqePsI4f","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' + body: '{"id":"con_uLQfYJEONvCnUHXh","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 305.624792ms + duration: 408.142209ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_pi37EtqyVqePsI4f","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' + body: '{"id":"con_uLQfYJEONvCnUHXh","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.74275ms + duration: 409.7815ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:41.588Z"}' + body: '{"deleted_at":"2024-04-30T10:35:59.560Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 313.56ms + duration: 335.282125ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml index 97f0b978..ecef6063 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039292","strategy":"salesforce"} + {"name":"Test-SalesForce-Connection-1714473349","strategy":"salesforce"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 224 uncompressed: false - body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' + body: '{"id":"con_J8nYaGeXEjgiGMN8","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 312.016375ms + duration: 324.308375ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' + body: '{"id":"con_J8nYaGeXEjgiGMN8","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 523.849917ms + duration: 326.621541ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' + body: '{"id":"con_J8nYaGeXEjgiGMN8","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 3.582142958s + duration: 316.0715ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:58.420Z"}' + body: '{"deleted_at":"2024-04-30T10:36:17.453Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.281625ms + duration: 339.649ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml index 3ab4522e..296c5480 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039292","strategy":"windowslive"} + {"name":"Test-WindowsLive-Connection-1714473349","strategy":"windowslive"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 252 uncompressed: false - body: '{"id":"con_01I10VePNYgEafNZ","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' + body: '{"id":"con_nOGF5qjtHo2hxbMa","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 304.106458ms + duration: 323.031542ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_01I10VePNYgEafNZ","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' + body: '{"id":"con_nOGF5qjtHo2hxbMa","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 284.833042ms + duration: 326.617625ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_01I10VePNYgEafNZ","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' + body: '{"id":"con_nOGF5qjtHo2hxbMa","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 276.366458ms + duration: 400.32ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:53.699Z"}' + body: '{"deleted_at":"2024-04-30T10:36:16.145Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 305.449541ms + duration: 324.35775ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml new file mode 100644 index 00000000..5190fa97 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml @@ -0,0 +1,145 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 71 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473349","strategy":"wordpress"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"id":"con_9gZjtNQGTjW8fWc2","options":{"profile":true,"scope":["profile"]},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473349"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 418.796333ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 148 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_9gZjtNQGTjW8fWc2","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473349"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 339.303333ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_9gZjtNQGTjW8fWc2","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473349"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 426.611125ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:35:53.524Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 338.965625ms