From 6369fbe2a3cc068c90c5c6aa8a29dac44f655c85 Mon Sep 17 00:00:00 2001 From: "A. Craig West" Date: Thu, 12 Sep 2024 16:19:18 -0400 Subject: [PATCH 1/4] Add strategy_version to other connections that use it --- management/connection.go | 12 ++++++++ management/management.gen.go | 40 +++++++++++++++++++++++++ management/management.gen_test.go | 50 +++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) diff --git a/management/connection.go b/management/connection.go index a4b58ace..c014e665 100644 --- a/management/connection.go +++ b/management/connection.go @@ -1098,6 +1098,10 @@ type ConnectionOptionsOAuth2 struct { // ClientSecret is the OAuth2 client secret. ClientSecret *string `json:"client_secret,omitempty"` + // StrategyVersion is used when there are different versions of the strategy + // that may be used. Paypal mey require it, for example. + StrategyVersion *int `json:"strategy_version,omitempty"` + // AuthorizationURL is the URL used for obtaining authorization from the user. AuthorizationURL *string `json:"authorizationURL"` @@ -1207,6 +1211,8 @@ func (c *ConnectionOptionsOAuth2) SetScopes(enable bool, scopes ...string) { // ConnectionOptionsAD is used to configure an AD Connection. type ConnectionOptionsAD struct { + StrategyVersion *int `json:"strategy_version,omitempty"` + TenantDomain *string `json:"tenant_domain,omitempty"` DomainAliases *[]string `json:"domain_aliases,omitempty"` LogoURL *string `json:"icon_url,omitempty"` @@ -1233,6 +1239,8 @@ type ConnectionOptionsAzureAD struct { ClientID *string `json:"client_id,omitempty"` ClientSecret *string `json:"client_secret,omitempty"` + StrategyVersion *int `json:"strategy_version,omitempty"` + AppID *string `json:"app_id,omitempty"` TenantDomain *string `json:"tenant_domain,omitempty"` Domain *string `json:"domain,omitempty"` @@ -1283,6 +1291,8 @@ func (c *ConnectionOptionsAzureAD) SetScopes(enable bool, scopes ...string) { // ConnectionOptionsADFS is used to configure an ADFS Connection. type ConnectionOptionsADFS struct { + StrategyVersion *int `json:"strategy_version,omitempty"` + TenantDomain *string `json:"tenant_domain,omitempty"` DomainAliases *[]string `json:"domain_aliases,omitempty"` LogoURL *string `json:"icon_url,omitempty"` @@ -1363,6 +1373,8 @@ func (c *ConnectionOptionsPingFederate) SetScopes(enable bool, scopes ...string) // ConnectionOptionsSAML is used to configure a SAML Connection. type ConnectionOptionsSAML struct { + StrategyVersion *int `json:"strategy_version,omitempty"` + Cert *string `json:"cert,omitempty"` Debug *bool `json:"debug,omitempty"` Expires *string `json:"expires,omitempty"` diff --git a/management/management.gen.go b/management/management.gen.go index 37dffd15..37a43c89 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -2568,6 +2568,14 @@ func (c *ConnectionOptionsAD) GetSetUserAttributes() string { return *c.SetUserAttributes } +// GetStrategyVersion returns the StrategyVersion field if it's non-nil, zero value otherwise. +func (c *ConnectionOptionsAD) GetStrategyVersion() int { + if c == nil || c.StrategyVersion == nil { + return 0 + } + return *c.StrategyVersion +} + // GetTenantDomain returns the TenantDomain field if it's non-nil, zero value otherwise. func (c *ConnectionOptionsAD) GetTenantDomain() string { if c == nil || c.TenantDomain == nil { @@ -2685,6 +2693,14 @@ func (c *ConnectionOptionsADFS) GetSignInEndpoint() string { return *c.SignInEndpoint } +// GetStrategyVersion returns the StrategyVersion field if it's non-nil, zero value otherwise. +func (c *ConnectionOptionsADFS) GetStrategyVersion() int { + if c == nil || c.StrategyVersion == nil { + return 0 + } + return *c.StrategyVersion +} + // GetTenantDomain returns the TenantDomain field if it's non-nil, zero value otherwise. func (c *ConnectionOptionsADFS) GetTenantDomain() string { if c == nil || c.TenantDomain == nil { @@ -3109,6 +3125,14 @@ func (c *ConnectionOptionsAzureAD) GetSetUserAttributes() string { return *c.SetUserAttributes } +// GetStrategyVersion returns the StrategyVersion field if it's non-nil, zero value otherwise. +func (c *ConnectionOptionsAzureAD) GetStrategyVersion() int { + if c == nil || c.StrategyVersion == nil { + return 0 + } + return *c.StrategyVersion +} + // GetTenantDomain returns the TenantDomain field if it's non-nil, zero value otherwise. func (c *ConnectionOptionsAzureAD) GetTenantDomain() string { if c == nil || c.TenantDomain == nil { @@ -4522,6 +4546,14 @@ func (c *ConnectionOptionsOAuth2) GetSetUserAttributes() string { return *c.SetUserAttributes } +// GetStrategyVersion returns the StrategyVersion field if it's non-nil, zero value otherwise. +func (c *ConnectionOptionsOAuth2) GetStrategyVersion() int { + if c == nil || c.StrategyVersion == nil { + return 0 + } + return *c.StrategyVersion +} + // GetTokenURL returns the TokenURL field if it's non-nil, zero value otherwise. func (c *ConnectionOptionsOAuth2) GetTokenURL() string { if c == nil || c.TokenURL == nil { @@ -5519,6 +5551,14 @@ func (c *ConnectionOptionsSAML) GetSignSAMLRequest() bool { return *c.SignSAMLRequest } +// GetStrategyVersion returns the StrategyVersion field if it's non-nil, zero value otherwise. +func (c *ConnectionOptionsSAML) GetStrategyVersion() int { + if c == nil || c.StrategyVersion == nil { + return 0 + } + return *c.StrategyVersion +} + // GetSubject returns the Subject map if it's non-nil, an empty map otherwise. func (c *ConnectionOptionsSAML) GetSubject() map[string]interface{} { if c == nil || c.Subject == nil { diff --git a/management/management.gen_test.go b/management/management.gen_test.go index b7f7ab02..c8fe6831 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -3137,6 +3137,16 @@ func TestConnectionOptionsAD_GetSetUserAttributes(tt *testing.T) { c.GetSetUserAttributes() } +func TestConnectionOptionsAD_GetStrategyVersion(tt *testing.T) { + var zeroValue int + c := &ConnectionOptionsAD{StrategyVersion: &zeroValue} + c.GetStrategyVersion() + c = &ConnectionOptionsAD{} + c.GetStrategyVersion() + c = nil + c.GetStrategyVersion() +} + func TestConnectionOptionsAD_GetTenantDomain(tt *testing.T) { var zeroValue string c := &ConnectionOptionsAD{TenantDomain: &zeroValue} @@ -3285,6 +3295,16 @@ func TestConnectionOptionsADFS_GetSignInEndpoint(tt *testing.T) { c.GetSignInEndpoint() } +func TestConnectionOptionsADFS_GetStrategyVersion(tt *testing.T) { + var zeroValue int + c := &ConnectionOptionsADFS{StrategyVersion: &zeroValue} + c.GetStrategyVersion() + c = &ConnectionOptionsADFS{} + c.GetStrategyVersion() + c = nil + c.GetStrategyVersion() +} + func TestConnectionOptionsADFS_GetTenantDomain(tt *testing.T) { var zeroValue string c := &ConnectionOptionsADFS{TenantDomain: &zeroValue} @@ -3814,6 +3834,16 @@ func TestConnectionOptionsAzureAD_GetSetUserAttributes(tt *testing.T) { c.GetSetUserAttributes() } +func TestConnectionOptionsAzureAD_GetStrategyVersion(tt *testing.T) { + var zeroValue int + c := &ConnectionOptionsAzureAD{StrategyVersion: &zeroValue} + c.GetStrategyVersion() + c = &ConnectionOptionsAzureAD{} + c.GetStrategyVersion() + c = nil + c.GetStrategyVersion() +} + func TestConnectionOptionsAzureAD_GetTenantDomain(tt *testing.T) { var zeroValue string c := &ConnectionOptionsAzureAD{TenantDomain: &zeroValue} @@ -5584,6 +5614,16 @@ func TestConnectionOptionsOAuth2_GetSetUserAttributes(tt *testing.T) { c.GetSetUserAttributes() } +func TestConnectionOptionsOAuth2_GetStrategyVersion(tt *testing.T) { + var zeroValue int + c := &ConnectionOptionsOAuth2{StrategyVersion: &zeroValue} + c.GetStrategyVersion() + c = &ConnectionOptionsOAuth2{} + c.GetStrategyVersion() + c = nil + c.GetStrategyVersion() +} + func TestConnectionOptionsOAuth2_GetTokenURL(tt *testing.T) { var zeroValue string c := &ConnectionOptionsOAuth2{TokenURL: &zeroValue} @@ -6810,6 +6850,16 @@ func TestConnectionOptionsSAML_GetSignSAMLRequest(tt *testing.T) { c.GetSignSAMLRequest() } +func TestConnectionOptionsSAML_GetStrategyVersion(tt *testing.T) { + var zeroValue int + c := &ConnectionOptionsSAML{StrategyVersion: &zeroValue} + c.GetStrategyVersion() + c = &ConnectionOptionsSAML{} + c.GetStrategyVersion() + c = nil + c.GetStrategyVersion() +} + func TestConnectionOptionsSAML_GetSubject(tt *testing.T) { zeroValue := map[string]interface{}{} c := &ConnectionOptionsSAML{Subject: zeroValue} From 61844841380cd39887755afe9d579b0bd17cf984 Mon Sep 17 00:00:00 2001 From: "A. Craig West" Date: Tue, 17 Sep 2024 13:32:51 -0400 Subject: [PATCH 2/4] Add tests for strategy_version --- management/connection_test.go | 73 ++++++++- ...successfully_create_a_ADFS_Connection.yaml | 18 +-- ...n_successfully_create_a_AD_Connection.yaml | 20 +-- ...uccessfully_create_a_Apple_Connection.yaml | 16 +- ...uccessfully_create_a_Auth0_Connection.yaml | 18 +-- ...essfully_create_a_Azure-AD_Connection.yaml | 74 +++++++++ ...sfully_create_a_Custom_SMS_Connection.yaml | 16 +- ...uccessfully_create_a_Email_Connection.yaml | 16 +- ...essfully_create_a_Facebook_Connection.yaml | 16 +- ...ccessfully_create_a_GitHub_Connection.yaml | 16 +- ...sfully_create_a_GoogleApps_Connection.yaml | 16 +- ...ully_create_a_GoogleOAuth2_Connection.yaml | 16 +- ...essfully_create_a_LinkedIn_Connection.yaml | 20 +-- ...successfully_create_a_OIDC_Connection.yaml | 20 +-- ...successfully_create_a_Okta_Connection.yaml | 16 +- ...lly_create_a_Ping_Federate_Connection.yaml | 16 +- ...successfully_create_a_SAML_Connection.yaml | 18 +-- ..._successfully_create_a_SMS_Connection.yaml | 16 +- ...sfully_create_a_SalesForce_Connection.yaml | 16 +- ...fully_create_a_WindowsLive_Connection.yaml | 20 +-- ...ssfully_create_a_Wordpress_Connection.yaml | 20 +-- ...red_in_profile_but_inactive_on_signup.yaml | 6 +- ...ires_username_and_attributes_together.yaml | 6 +- ...th_validation_and_attributes_together.yaml | 6 +- ...onnection_With_No_attribute_is_active.yaml | 6 +- ...Auth0_Connection_With_RequireUsername.yaml | 16 +- ...0_Connection_with_Email_as_Identifier.yaml | 16 +- ...ection_with_PhoneNumber_as_Identifier.yaml | 16 +- ...onnection_with_Username_as_Identifier.yaml | 16 +- ...ectionManager_CreateSCIMConfiguration.yaml | 38 ++--- ...er_CreateSCIMConfigurationWithoutBody.yaml | 38 ++--- ...TestConnectionManager_CreateSCIMToken.yaml | 44 +++--- .../TestConnectionManager_Delete.yaml | 36 ++--- ...ectionManager_DeleteSCIMConfiguration.yaml | 42 ++--- ...TestConnectionManager_DeleteSCIMToken.yaml | 64 ++++---- .../TestConnectionManager_List.yaml | 22 +-- .../TestConnectionManager_ListSCIMTokens.yaml | 52 +++---- ...n_successfully_read_a_ADFS_Connection.yaml | 32 ++-- ...can_successfully_read_a_AD_Connection.yaml | 34 ++--- ..._successfully_read_a_Apple_Connection.yaml | 38 ++--- ..._successfully_read_a_Auth0_Connection.yaml | 40 ++--- ...ccessfully_read_a_Azure-AD_Connection.yaml | 144 ++++++++++++++++++ ...essfully_read_a_Custom_SMS_Connection.yaml | 38 ++--- ..._successfully_read_a_Email_Connection.yaml | 32 ++-- ...ccessfully_read_a_Facebook_Connection.yaml | 38 ++--- ...successfully_read_a_GitHub_Connection.yaml | 38 ++--- ...essfully_read_a_GoogleApps_Connection.yaml | 32 ++-- ...sfully_read_a_GoogleOAuth2_Connection.yaml | 32 ++-- ...ccessfully_read_a_LinkedIn_Connection.yaml | 34 ++--- ...n_successfully_read_a_OIDC_Connection.yaml | 42 ++--- ...n_successfully_read_a_Okta_Connection.yaml | 32 ++-- ...fully_read_a_Ping_Federate_Connection.yaml | 38 ++--- ...n_successfully_read_a_SAML_Connection.yaml | 40 ++--- ...an_successfully_read_a_SMS_Connection.yaml | 32 ++-- ...essfully_read_a_SalesForce_Connection.yaml | 32 ++-- ...ssfully_read_a_WindowsLive_Connection.yaml | 34 ++--- ...cessfully_read_a_Wordpress_Connection.yaml | 42 ++--- ...ly_find_a_ADFS_Connection_by_its_name.yaml | 34 ++--- ...ully_find_a_AD_Connection_by_its_name.yaml | 42 ++--- ...y_find_a_Apple_Connection_by_its_name.yaml | 38 ++--- ...y_find_a_Auth0_Connection_by_its_name.yaml | 40 ++--- ...ind_a_Azure-AD_Connection_by_its_name.yaml | 144 ++++++++++++++++++ ...d_a_Custom_SMS_Connection_by_its_name.yaml | 32 ++-- ...y_find_a_Email_Connection_by_its_name.yaml | 32 ++-- ...ind_a_Facebook_Connection_by_its_name.yaml | 32 ++-- ..._find_a_GitHub_Connection_by_its_name.yaml | 30 ++-- ...d_a_GoogleApps_Connection_by_its_name.yaml | 38 ++--- ...a_GoogleOAuth2_Connection_by_its_name.yaml | 38 ++--- ...ind_a_LinkedIn_Connection_by_its_name.yaml | 42 ++--- ...ly_find_a_OIDC_Connection_by_its_name.yaml | 42 ++--- ...ly_find_a_Okta_Connection_by_its_name.yaml | 32 ++-- ..._Ping_Federate_Connection_by_its_name.yaml | 38 ++--- ...ly_find_a_SAML_Connection_by_its_name.yaml | 34 ++--- ...lly_find_a_SMS_Connection_by_its_name.yaml | 32 ++-- ...d_a_SalesForce_Connection_by_its_name.yaml | 38 ++--- ..._a_WindowsLive_Connection_by_its_name.yaml | 42 ++--- ...nd_a_Wordpress_Connection_by_its_name.yaml | 42 ++--- ...nnectionManager_ReadSCIMConfiguration.yaml | 38 ++--- ...nManager_ReadSCIMDefaultConfiguration.yaml | 36 ++--- ...trategy_version_for_a_ADFS_Connection.yaml | 109 +++++++++++++ ..._strategy_version_for_a_AD_Connection.yaml | 109 +++++++++++++ ...rategy_version_for_a_Auth0_Connection.yaml | 109 +++++++++++++ ...egy_version_for_a_Azure-AD_Connection.yaml | 109 +++++++++++++ ...trategy_version_for_a_SAML_Connection.yaml | 109 +++++++++++++ ..._version_for_a_WindowsLive_Connection.yaml | 109 +++++++++++++ ...gy_version_for_a_Wordpress_Connection.yaml | 109 +++++++++++++ ...n_successfully_update_a_AD_Connection.yaml | 36 ++--- ...uccessfully_update_a_Apple_Connection.yaml | 32 ++-- ...uccessfully_update_a_Auth0_Connection.yaml | 36 ++--- ...sfully_update_a_Custom_SMS_Connection.yaml | 32 ++-- ...uccessfully_update_a_Email_Connection.yaml | 32 ++-- ...essfully_update_a_Facebook_Connection.yaml | 32 ++-- ...ccessfully_update_a_GitHub_Connection.yaml | 32 ++-- ...sfully_update_a_GoogleApps_Connection.yaml | 32 ++-- ...ully_update_a_GoogleOAuth2_Connection.yaml | 32 ++-- ...essfully_update_a_LinkedIn_Connection.yaml | 36 ++--- ..._successfully_update_a_SMS_Connection.yaml | 32 ++-- ...sfully_update_a_SalesForce_Connection.yaml | 32 ++-- ...fully_update_a_WindowsLive_Connection.yaml | 36 ++--- ...ssfully_update_a_Wordpress_Connection.yaml | 36 ++--- ...ectionManager_UpdateSCIMConfiguration.yaml | 52 +++---- 101 files changed, 2558 insertions(+), 1366 deletions(-) create mode 100644 test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Azure-AD_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_Connection_by_its_name.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml diff --git a/management/connection_test.go b/management/connection_test.go index e4875fc3..5f0c92c6 100644 --- a/management/connection_test.go +++ b/management/connection_test.go @@ -21,6 +21,7 @@ var connectionTestCases = []connectionTestCase{ Strategy: auth0.String("auth0"), }, options: &ConnectionOptions{ + StrategyVersion: auth0.Int(2), UpstreamParams: map[string]interface{}{ "screen_name": map[string]interface{}{ "alias": "login_hint", @@ -35,7 +36,8 @@ var connectionTestCases = []connectionTestCase{ Strategy: auth0.String("wordpress"), }, options: &ConnectionOptionsOAuth2{ - Scope: auth0.String("email profile openid"), + StrategyVersion: auth0.Int(2), + Scope: auth0.String("email profile openid"), UpstreamParams: map[string]interface{}{ "screen_name": map[string]interface{}{ "alias": "login_hint", @@ -185,7 +187,8 @@ var connectionTestCases = []connectionTestCase{ Strategy: auth0.String("samlp"), }, options: &ConnectionOptionsSAML{ - SignInEndpoint: auth0.String("https://saml.identity/provider"), + StrategyVersion: auth0.Int(2), + SignInEndpoint: auth0.String("https://saml.identity/provider"), SigningCert: auth0.String(`-----BEGIN CERTIFICATE----- MIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD VQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK @@ -226,6 +229,25 @@ ZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g }, }, }, + { + name: "Azure-AD Connection", + connection: Connection{ + Name: auth0.Stringf("Test-AzureAD-Connection-%d", time.Now().Unix()), + Strategy: auth0.String("waad"), + }, + options: &ConnectionOptionsAzureAD{ + StrategyVersion: auth0.Int(2), + Domain: auth0.String("example.onmicrosoft.com"), + TenantDomain: auth0.String("example.onmicrosoft.com"), + ClientID: auth0.String("123456"), + ClientSecret: auth0.String("123456"), + UpstreamParams: map[string]interface{}{ + "screen_name": map[string]interface{}{ + "alias": "login_hint", + }, + }, + }, + }, { name: "AD Connection", connection: Connection{ @@ -233,6 +255,7 @@ ZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g Strategy: auth0.String("ad"), }, options: &ConnectionOptionsAD{ + StrategyVersion: auth0.Int(2), UpstreamParams: map[string]interface{}{ "screen_name": map[string]interface{}{ "alias": "login_hint", @@ -247,6 +270,7 @@ ZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g Strategy: auth0.String("adfs"), }, options: &ConnectionOptionsADFS{ + StrategyVersion: auth0.Int(2), FedMetadataXML: auth0.String(` @@ -320,6 +344,7 @@ ZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g Strategy: auth0.String("linkedin"), }, options: &ConnectionOptionsLinkedin{ + StrategyVersion: auth0.Int(2), UpstreamParams: map[string]interface{}{ "screen_name": map[string]interface{}{ "alias": "login_hint", @@ -348,6 +373,7 @@ ZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g Strategy: auth0.String("windowslive"), }, options: &ConnectionOptionsWindowsLive{ + StrategyVersion: auth0.Int(2), UpstreamParams: map[string]interface{}{ "screen_name": map[string]interface{}{ "alias": "login_hint", @@ -789,6 +815,46 @@ func TestConnectionManager_ReadByName(t *testing.T) { }) } +func TestConnectionManager_ReadStrategyVersion(t *testing.T) { + for _, testCase := range connectionTestCases { + t.Run("It can successfully read the strategy_version for a "+testCase.name, func(t *testing.T) { + switch testCase.connection.GetStrategy() { + case "ad", "adfs", "auth0", "samlp", "waad", "windowslive", "wordpress": + configureHTTPTestRecordings(t) + + connection := givenAConnection(t, testCase) + + actualConnection, err := api.Connection.Read(context.Background(), connection.GetID()) + assert.NoError(t, err) + assert.ObjectsAreEqualValues(getStrategyVersion(testCase.connection.GetStrategy(), testCase.options), getStrategyVersion(actualConnection.GetStrategy(), actualConnection.Options)) + default: + t.Skip("Skipping for connections which don't support strategy_version") + } + }) + } +} + +func getStrategyVersion(strategy string, options interface{}) int { + switch strategy { + case "ad": + return options.(*ConnectionOptionsAD).GetStrategyVersion() + case "adfs": + return options.(*ConnectionOptionsADFS).GetStrategyVersion() + case "auth0": + return options.(*ConnectionOptions).GetStrategyVersion() + case "samlp": + return options.(*ConnectionOptionsSAML).GetStrategyVersion() + case "waad": + return options.(*ConnectionOptionsAzureAD).GetStrategyVersion() + case "windowslive": + return options.(*ConnectionOptionsWindowsLive).GetStrategyVersion() + case "wordpress": + return options.(*ConnectionOptionsOAuth2).GetStrategyVersion() + default: + return -1 + } +} + func TestConnectionManager_Update(t *testing.T) { for _, testCase := range connectionTestCases { t.Run("It can successfully update a "+testCase.name, func(t *testing.T) { @@ -796,8 +862,9 @@ func TestConnectionManager_Update(t *testing.T) { testCase.connection.GetStrategy() == "samlp" || testCase.connection.GetStrategy() == "okta" || testCase.connection.GetStrategy() == "adfs" || + testCase.connection.GetStrategy() == "waad" || testCase.connection.GetStrategy() == "pingfederate" { - t.Skip("Skipping because we can't create an oidc, okta, samlp, adfs, or pingfederate connection with no options") + t.Skip("Skipping because we can't create an oidc, okta, samlp, adfs, waad, or pingfederate connection with no options") } configureHTTPTestRecordings(t) 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 6b03fbfb..238a7113 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 2221 + content_length: 2242 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-ADFS-Connection-1726595088","strategy":"adfs","options":{"strategy_version":2,"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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_SfOKu7OhKTHFEVLh","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/62MnfgMO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 383.956ms + duration: 177.862417ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0395zVLxXGz37nxg + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SfOKu7OhKTHFEVLh method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:00.646Z"}' + body: '{"deleted_at":"2024-09-17T17:44:59.127Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 366.961792ms + duration: 152.907208ms 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 d0cbe8b3..250e72ba 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 126 + content_length: 147 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714473052","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1726595088","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 407 + content_length: 428 uncompressed: false - 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"]}' + body: '{"id":"con_pkhhFJ36e4IwW54D","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/KR3seEszrwbcYuLOteUWV7qmdtBkxlep","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.856083ms + duration: 168.473584ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbVKvqxBHFr6oWPj + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pkhhFJ36e4IwW54D method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:59.908Z"}' + body: '{"deleted_at":"2024-09-17T17:44:58.786Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 329.858125ms + duration: 153.991917ms 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 7653f2cf..25ffa776 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714473052","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1726595088","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - 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"]}' + body: '{"id":"con_pzfojOjVYOdDjxFw","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 363.491583ms + duration: 165.993708ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vweVu7ZlaTbdM5C0 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pzfojOjVYOdDjxFw method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:02.076Z"}' + body: '{"deleted_at":"2024-09-17T17:44:59.787Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 358.612958ms + duration: 150.8965ms 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 d08cd10d..57b91173 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 132 + content_length: 153 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714473052","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1726595088","strategy":"auth0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - 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"]}' + body: '{"id":"con_355aN8eKLWbxIXYL","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.161378458s + duration: 427.618208ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wrGwirVruBhK1ceq + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_355aN8eKLWbxIXYL method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:54.013Z"}' + body: '{"deleted_at":"2024-09-17T17:44:49.248Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 372.204459ms + duration: 164.585417ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Azure-AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Azure-AD_Connection.yaml new file mode 100644 index 00000000..b7d46a68 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Azure-AD_Connection.yaml @@ -0,0 +1,74 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 277 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AzureAD-Connection-1726595088","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.10.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: -1 + uncompressed: false + body: '{"id":"con_loq1kHNCuLnRPx51","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/sEjvVogK","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 475.782458ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_loq1kHNCuLnRPx51 + 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-09-17T17:44:58.465Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 156.275291ms 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 b38c9adf..12b33034 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Custom-SMS-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - 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"]}' + body: '{"id":"con_Ix5kLOOwZJqm4czv","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 355.267625ms + duration: 159.543209ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BDd5LNqGUfIMPPMf + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Ix5kLOOwZJqm4czv method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:58.463Z"}' + body: '{"deleted_at":"2024-09-17T17:44:51.344Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 346.820666ms + duration: 155.425833ms 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 c26ea5af..c9904313 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Email-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - 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"]}' + body: '{"id":"con_VImJSgSc2frvh9Jb","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 328.45525ms + duration: 168.428708ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eKVuo2VWBiQYat9m + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VImJSgSc2frvh9Jb method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:57.060Z"}' + body: '{"deleted_at":"2024-09-17T17:44:50.694Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 357.016541ms + duration: 198.246125ms 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 2205f487..cf27378a 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714473052","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1726595088","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - 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"]}' + body: '{"id":"con_PGHZvJnXkRsxnmah","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 329.907792ms + duration: 156.39075ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gxh8Kt7WPAPjLy9a + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PGHZvJnXkRsxnmah method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:01.355Z"}' + body: '{"deleted_at":"2024-09-17T17:44:59.465Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 353.038375ms + duration: 172.565208ms 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 9c5fdda7..d5213859 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714473052","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1726595088","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - 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"]}' + body: '{"id":"con_50ecu9hNbhFR5R1H","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 388.00275ms + duration: 184.235125ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wGlnCXNEDWdGYGVd + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_50ecu9hNbhFR5R1H method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:03.495Z"}' + body: '{"deleted_at":"2024-09-17T17:45:06.623Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 352.389834ms + duration: 6.296178709s 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 2d68f269..e7e8a33c 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-GoogleApps-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - 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"]}' + body: '{"id":"con_5M5t9ecbpOaPSyFn","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/Almh1QjW","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 494.386625ms + duration: 212.6805ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnSnzPgu18RtUzeO + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5M5t9ecbpOaPSyFn method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:56.383Z"}' + body: '{"deleted_at":"2024-09-17T17:44:50.321Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 367.900041ms + duration: 160.710791ms 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 2b451d73..a0637ee1 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"]}} + {"name":"Test-GoogleOAuth2-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - 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"]}' + body: '{"id":"con_fPhpqd8nlbuyP0F3","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 364.11275ms + duration: 163.74ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o4leyQcvPnEsulhA + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fPhpqd8nlbuyP0F3 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:55.503Z"}' + body: '{"deleted_at":"2024-09-17T17:44:49.933Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 372.373292ms + duration: 170.511459ms 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 4860edf4..f43d9955 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 138 + content_length: 159 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714473052","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1726595088","strategy":"linkedin","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 306 + content_length: 326 uncompressed: false - 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"]}' + body: '{"id":"con_R0t9nseXqWu6DOjL","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.244083ms + duration: 174.931791ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9IFegLFxjRNzwXyS + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_R0t9nseXqWu6DOjL method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:02.748Z"}' + body: '{"deleted_at":"2024-09-17T17:45:00.132Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 353.9405ms + duration: 170.722ms 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 a07f4d30..3f90d15b 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 456 + content_length: 465 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-OIDC-Connection-1726595088","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 601 + content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_wKQikmsQ1eU1PeKY","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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":"https://api.paypal.com/v1/oauth2/token/userinfo","token_endpoint":"https://api.paypal.com/v1/oauth2/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://www.paypal.com","authorization_endpoint":"https://www.paypal.com/signin/authorize","registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","token_endpoint":"https://api.paypal.com/v1/oauth2/token","userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","token_endpoint_auth_methods_supported":["client_secret_basic"],"response_types_supported":["code","code id_token"],"response_modes_supported":["query","form_post"],"grant_types_supported":["authorization_code","refresh_token"],"subject_types_supported":["pairwise"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"id_token_signing_alg_values_supported":["HS256","RS256"],"claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"code_challenge_methods_supported":["RS256","ES256","S256"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","attribute_map":{"mapping_mode":"bind_all"},"connection_settings":{"pkce":"auto"}},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","enabled_clients":[],"realms":["Test-OIDC-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 495.284625ms + duration: 342.218083ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_R3vDvBL9APN6FWup + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wKQikmsQ1eU1PeKY method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:05.781Z"}' + body: '{"deleted_at":"2024-09-17T17:45:07.781Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 466.204667ms + duration: 165.925584ms 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 fa4e1126..d600a517 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Okta-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_0KZBdvOQYonedJfj","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","enabled_clients":[],"realms":["Test-Okta-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 617.88775ms + duration: 723.39475ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ymZTflBKfO1nZe4Z + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0KZBdvOQYonedJfj method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:06.851Z"}' + body: '{"deleted_at":"2024-09-17T17:45:08.689Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 332.492834ms + duration: 167.882042ms 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 865fd372..01a9c072 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}} + {"name":"Test-Ping-Federate-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_TWUbK3wqNi12irwO","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/E8Jn3SRd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 435.125292ms + duration: 191.533667ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lO9x4ot3mzIM8vZf + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TWUbK3wqNi12irwO method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:07.657Z"}' + body: '{"deleted_at":"2024-09-17T17:45:09.035Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 436.62025ms + duration: 150.937ms 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 3a6920c2..6d1a5eb9 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1966 + content_length: 1987 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-SAML-Connection-1726595088","strategy":"samlp","options":{"strategy_version":2,"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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_UFM7CMxSaQJAVb87","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/GWpGVHci","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 350.210375ms + duration: 6.314629833s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QdwAW6eftPXgNARQ + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UFM7CMxSaQJAVb87 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:59.156Z"}' + body: '{"deleted_at":"2024-09-17T17:44:57.826Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 344.824041ms + duration: 162.032ms 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 9ccb439c..29d05932 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-SMS-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - 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"]}' + body: '{"id":"con_ttpXfHNPqRD1zQya","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 340.851792ms + duration: 173.476583ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lMBgpzFbHQhCoJ19 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ttpXfHNPqRD1zQya method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:57.758Z"}' + body: '{"deleted_at":"2024-09-17T17:44:51.028Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 344.044ms + duration: 156.827167ms 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 faaf0457..f7b951c2 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714473052","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1726595088","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - 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"]}' + body: '{"id":"con_JGQ7e0HTYWphKr9Y","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 377.860708ms + duration: 164.396791ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8GVCTa5JxURNv0tW + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JGQ7e0HTYWphKr9Y method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:04.939Z"}' + body: '{"deleted_at":"2024-09-17T17:45:07.269Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 333.829875ms + duration: 161.134625ms 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 0b1465d8..e89ab501 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 144 + content_length: 165 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714473052","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1726595088","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 309 + content_length: 319 uncompressed: false - 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"]}' + body: '{"id":"con_V1wnq66fwnbGrqSK","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 363.12475ms + duration: 167.2445ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lwVv7HioQN9yT6ZJ + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_V1wnq66fwnbGrqSK method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:31:04.213Z"}' + body: '{"deleted_at":"2024-09-17T17:45:06.942Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 364.028125ms + duration: 153.287083ms 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 index 80763a6c..cc46433b 100644 --- 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 217 + content_length: 238 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"]}} + {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress","options":{"strategy_version":2,"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 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 342 + content_length: 363 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"]}' + body: '{"id":"con_LVMHoByhArnt9gWY","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 389.720583ms + duration: 179.610667ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_1LIdptTAFtTOkREW + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LVMHoByhArnt9gWY method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:30:54.765Z"}' + body: '{"deleted_at":"2024-09-17T17:44:49.602Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 376.670125ms + duration: 167.8045ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Attribute_required_in_profile_but_inactive_on_signup.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Attribute_required_in_profile_but_inactive_on_signup.yaml index 147a777c..5a32dff8 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Attribute_required_in_profile_but_inactive_on_signup.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Attribute_required_in_profile_but_inactive_on_signup.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-Attribute-Inactive-On-Signup-1722944272","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"phone_number":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"inactive","verification":{"active":false}}}}}} + {"name":"Test-Auth0-Connection-Attribute-Inactive-On-Signup-1726595088","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"phone_number":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"inactive","verification":{"active":false}}}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -36,4 +36,4 @@ interactions: - application/json; charset=utf-8 status: 400 Bad Request code: 400 - duration: 236.792042ms + duration: 129.957542ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_requires_username_and_attributes_together.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_requires_username_and_attributes_together.yaml index d7ad6ed8..e81ad285 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_requires_username_and_attributes_together.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_requires_username_and_attributes_together.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-Invalid-1722944272","strategy":"auth0","options":{"requires_username":true,"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} + {"name":"Test-Auth0-Connection-Invalid-1726595088","strategy":"auth0","options":{"requires_username":true,"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -36,4 +36,4 @@ interactions: - application/json; charset=utf-8 status: 400 Bad Request code: 400 - duration: 230.9955ms + duration: 137.769667ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_validation_and_attributes_together.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_validation_and_attributes_together.yaml index 7b94b254..0b562b3a 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_validation_and_attributes_together.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_Cannot_set_both_validation_and_attributes_together.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-Attributes-And-Validation-1722944272","strategy":"auth0","options":{"validation":{"username":{"max":5,"min":1}},"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}},"username":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required"}}}}} + {"name":"Test-Auth0-Connection-Attributes-And-Validation-1726595088","strategy":"auth0","options":{"validation":{"username":{"max":5,"min":1}},"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}},"username":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required"}}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -36,4 +36,4 @@ interactions: - application/json; charset=utf-8 status: 400 Bad Request code: 400 - duration: 278.591625ms + duration: 135.562875ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_No_attribute_is_active.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_No_attribute_is_active.yaml index a38d6335..37ca2054 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_No_attribute_is_active.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_No_attribute_is_active.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-No-Active-Attributes-1722944272","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":false},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}},"username":{"identifier":{"active":false},"profile_required":true,"signup":{"status":"required"}},"phone_number":{"identifier":{"active":false},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} + {"name":"Test-Auth0-Connection-No-Active-Attributes-1726595088","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":false},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}},"username":{"identifier":{"active":false},"profile_required":true,"signup":{"status":"required"}},"phone_number":{"identifier":{"active":false},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -36,4 +36,4 @@ interactions: - application/json; charset=utf-8 status: 400 Bad Request code: 400 - duration: 235.546625ms + duration: 146.064666ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_RequireUsername.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_RequireUsername.yaml index bf2b1f0f..26d78f54 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_RequireUsername.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_With_RequireUsername.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-RequireUsername-1722944272","strategy":"auth0","options":{"requires_username":true,"precedence":["username","email","phone_number"]}} + {"name":"Test-Auth0-Connection-RequireUsername-1726595088","strategy":"auth0","options":{"requires_username":true,"precedence":["username","email","phone_number"]}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 626 uncompressed: false - body: '{"id":"con_5IOlGu2ZxeX9Sk1E","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","requires_username":true,"precedence":["username","email","phone_number"],"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-RequireUsername-1722944272","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-RequireUsername-1722944272"]}' + body: '{"id":"con_X0nARj0toNVhp3D9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","requires_username":true,"precedence":["username","email","phone_number"],"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-RequireUsername-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-RequireUsername-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 902.643167ms + duration: 168.100875ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5IOlGu2ZxeX9Sk1E + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_X0nARj0toNVhp3D9 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-08-06T11:37:54.076Z"}' + body: '{"deleted_at":"2024-09-17T17:45:09.369Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 288.051167ms + duration: 173.135917ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Email_as_Identifier.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Email_as_Identifier.yaml index ac2379db..9d1fded8 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Email_as_Identifier.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Email_as_Identifier.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-Email-1722944272","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} + {"name":"Test-Auth0-Connection-Email-1726595088","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 722 uncompressed: false - body: '{"id":"con_0XAEEFvSK34smafH","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}},"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-Email-1722944272","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Email-1722944272"]}' + body: '{"id":"con_LI6um1pbAV4gED6j","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","precedence":["username","email","phone_number"],"attributes":{"email":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}},"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-Email-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Email-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 269.858042ms + duration: 173.740167ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0XAEEFvSK34smafH + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LI6um1pbAV4gED6j method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-08-06T11:37:55.197Z"}' + body: '{"deleted_at":"2024-09-17T17:45:10.234Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.755625ms + duration: 162.873208ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_PhoneNumber_as_Identifier.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_PhoneNumber_as_Identifier.yaml index 4b4b83cf..bd1d6e02 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_PhoneNumber_as_Identifier.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_PhoneNumber_as_Identifier.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-Phone-1722944272","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"phone_number":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} + {"name":"Test-Auth0-Connection-Phone-1726595088","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"phone_number":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 729 uncompressed: false - body: '{"id":"con_3wxxbtjncdDdzJwE","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","precedence":["username","email","phone_number"],"attributes":{"phone_number":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}},"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-Phone-1722944272","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Phone-1722944272"]}' + body: '{"id":"con_glh93dywCZVgzAQY","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","precedence":["username","email","phone_number"],"attributes":{"phone_number":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required","verification":{"active":false}}}},"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-Phone-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Phone-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 271.787583ms + duration: 167.663292ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3wxxbtjncdDdzJwE + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_glh93dywCZVgzAQY method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-08-06T11:37:54.617Z"}' + body: '{"deleted_at":"2024-09-17T17:45:09.892Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 256.782333ms + duration: 349.981833ms diff --git a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Username_as_Identifier.yaml b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Username_as_Identifier.yaml index b7589a5c..69d816eb 100644 --- a/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Username_as_Identifier.yaml +++ b/test/data/recordings/TestConnectionManager_CreateDBConnectionWithDifferentOptions/It_handles_Auth0_Connection_with_Username_as_Identifier.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-Username-1722944272","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"username":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required"},"validation":{"min_length":1,"max_length":5,"allowed_types":{"email":true,"phone_number":false}}}}}} + {"name":"Test-Auth0-Connection-Username-1726595088","strategy":"auth0","options":{"precedence":["username","email","phone_number"],"attributes":{"username":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required"},"validation":{"min_length":1,"max_length":5,"allowed_types":{"email":true,"phone_number":false}}}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 796 uncompressed: false - body: '{"id":"con_cNqCz9BIYRnYqtyH","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","precedence":["username","email","phone_number"],"attributes":{"username":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required"},"validation":{"min_length":1,"max_length":5,"allowed_types":{"email":true,"phone_number":false}}}},"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-Username-1722944272","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Username-1722944272"]}' + body: '{"id":"con_EQzuMgmm6i65aHUk","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","precedence":["username","email","phone_number"],"attributes":{"username":{"identifier":{"active":true},"profile_required":true,"signup":{"status":"required"},"validation":{"min_length":1,"max_length":5,"allowed_types":{"email":true,"phone_number":false}}}},"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-Username-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Username-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 263.157833ms + duration: 6.342151709s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.8.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cNqCz9BIYRnYqtyH + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_EQzuMgmm6i65aHUk method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-08-06T11:37:55.716Z"}' + body: '{"deleted_at":"2024-09-17T17:45:16.759Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 247.652208ms + duration: 170.023834ms diff --git a/test/data/recordings/TestConnectionManager_CreateSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_CreateSCIMConfiguration.yaml index a159e889..c2c53eac 100644 --- a/test/data/recordings/TestConnectionManager_CreateSCIMConfiguration.yaml +++ b/test/data/recordings/TestConnectionManager_CreateSCIMConfiguration.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167754","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-1726595257","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_sKiCnDbS29YpkfOx","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-1720167754","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167754"]}' + body: '{"id":"con_6NW8BPVaIchXtxTX","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595257","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595257","enabled_clients":[],"realms":["Test-Okta-Connection-1726595257"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.968358292s + duration: 774.713625ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sKiCnDbS29YpkfOx/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6NW8BPVaIchXtxTX/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: 331 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_sKiCnDbS29YpkfOx","connection_name":"Test-Okta-Connection-1720167754","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-07-05T08:22:37.141Z","created_at":"2024-07-05T08:22:37.141Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_6NW8BPVaIchXtxTX","connection_name":"Test-Okta-Connection-1726595257","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:38.286Z","created_at":"2024-09-17T17:47:38.286Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 382.687208ms + duration: 324.215958ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sKiCnDbS29YpkfOx/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6NW8BPVaIchXtxTX/scim-configuration method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_sKiCnDbS29YpkfOx","connection_name":"Test-Okta-Connection-1720167754","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-07-05T08:22:37.141Z","created_at":"2024-07-05T08:22:37.141Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_6NW8BPVaIchXtxTX","connection_name":"Test-Okta-Connection-1726595257","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:38.286Z","created_at":"2024-09-17T17:47:38.286Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 450.482666ms + duration: 162.896292ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sKiCnDbS29YpkfOx/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6NW8BPVaIchXtxTX/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -142,7 +142,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 387.303584ms + duration: 159.293708ms - id: 4 request: proto: HTTP/1.1 @@ -160,8 +160,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sKiCnDbS29YpkfOx + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6NW8BPVaIchXtxTX method: DELETE response: proto: HTTP/2.0 @@ -171,10 +171,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:22:38.334Z"}' + body: '{"deleted_at":"2024-09-17T17:47:38.839Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 376.519916ms + duration: 154.494625ms diff --git a/test/data/recordings/TestConnectionManager_CreateSCIMConfigurationWithoutBody.yaml b/test/data/recordings/TestConnectionManager_CreateSCIMConfigurationWithoutBody.yaml index 3068d337..bdaf0848 100644 --- a/test/data/recordings/TestConnectionManager_CreateSCIMConfigurationWithoutBody.yaml +++ b/test/data/recordings/TestConnectionManager_CreateSCIMConfigurationWithoutBody.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167758","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-1726595258","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_dJtnEdfawCafBrQK","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-1720167758","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167758"]}' + body: '{"id":"con_Q3oMpEluOZvVZpfo","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595258","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595258","enabled_clients":[],"realms":["Test-Okta-Connection-1726595258"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 577.468458ms + duration: 778.683875ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dJtnEdfawCafBrQK/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q3oMpEluOZvVZpfo/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_dJtnEdfawCafBrQK","connection_name":"Test-Okta-Connection-1720167758","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:22:39.335Z","created_at":"2024-07-05T08:22:39.335Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_Q3oMpEluOZvVZpfo","connection_name":"Test-Okta-Connection-1726595258","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:39.796Z","created_at":"2024-09-17T17:47:39.796Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 393.328ms + duration: 174.537041ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dJtnEdfawCafBrQK/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q3oMpEluOZvVZpfo/scim-configuration method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_dJtnEdfawCafBrQK","connection_name":"Test-Okta-Connection-1720167758","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:22:39.335Z","created_at":"2024-07-05T08:22:39.335Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_Q3oMpEluOZvVZpfo","connection_name":"Test-Okta-Connection-1726595258","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:39.796Z","created_at":"2024-09-17T17:47:39.796Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 518.013375ms + duration: 153.398542ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dJtnEdfawCafBrQK/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q3oMpEluOZvVZpfo/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -142,7 +142,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 386.589334ms + duration: 182.515292ms - id: 4 request: proto: HTTP/1.1 @@ -160,8 +160,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dJtnEdfawCafBrQK + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q3oMpEluOZvVZpfo method: DELETE response: proto: HTTP/2.0 @@ -171,10 +171,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:22:40.623Z"}' + body: '{"deleted_at":"2024-09-17T17:47:45.425Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 715.005417ms + duration: 5.286908709s diff --git a/test/data/recordings/TestConnectionManager_CreateSCIMToken.yaml b/test/data/recordings/TestConnectionManager_CreateSCIMToken.yaml index bc6fcec3..f74ef4d0 100644 --- a/test/data/recordings/TestConnectionManager_CreateSCIMToken.yaml +++ b/test/data/recordings/TestConnectionManager_CreateSCIMToken.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167841","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-1726595277","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_C23ekfpZV7drY9xb","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-1720167841","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167841"]}' + body: '{"id":"con_88AZGynmuKoHwpFd","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595277","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595277","enabled_clients":[],"realms":["Test-Okta-Connection-1726595277"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.157456s + duration: 845.614542ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_C23ekfpZV7drY9xb/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_88AZGynmuKoHwpFd/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_C23ekfpZV7drY9xb","connection_name":"Test-Okta-Connection-1720167841","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:24:03.407Z","created_at":"2024-07-05T08:24:03.407Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_88AZGynmuKoHwpFd","connection_name":"Test-Okta-Connection-1726595277","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:57.989Z","created_at":"2024-09-17T17:47:57.989Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 458.371833ms + duration: 164.461292ms - id: 2 request: proto: HTTP/1.1 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_C23ekfpZV7drY9xb/scim-configuration/tokens + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_88AZGynmuKoHwpFd/scim-configuration/tokens method: POST response: proto: HTTP/2.0 @@ -102,13 +102,13 @@ interactions: trailer: {} content_length: 233 uncompressed: false - body: '{"token_id":"tok_q90xix0LtPBSwffK","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-07-05T08:24:03.793Z"}' + body: '{"token_id":"tok_4KyrQeVsqTc1AP1B","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-09-17T17:47:58.162Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 360.190209ms + duration: 167.6635ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +126,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_C23ekfpZV7drY9xb/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_88AZGynmuKoHwpFd/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -143,7 +143,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 415.454167ms + duration: 146.07125ms - id: 4 request: proto: HTTP/1.1 @@ -161,8 +161,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_C23ekfpZV7drY9xb/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_88AZGynmuKoHwpFd/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 351.367292ms + duration: 151.0425ms - id: 5 request: proto: HTTP/1.1 @@ -196,8 +196,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_C23ekfpZV7drY9xb + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_88AZGynmuKoHwpFd method: DELETE response: proto: HTTP/2.0 @@ -207,10 +207,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:24:04.893Z"}' + body: '{"deleted_at":"2024-09-17T17:47:58.612Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 370.102583ms + duration: 161.518ms diff --git a/test/data/recordings/TestConnectionManager_Delete.yaml b/test/data/recordings/TestConnectionManager_Delete.yaml index 400d0c6f..daf49185 100644 --- a/test/data/recordings/TestConnectionManager_Delete.yaml +++ b/test/data/recordings/TestConnectionManager_Delete.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714473387","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1726595256","strategy":"auth0"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 520 uncompressed: false - 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"]}' + body: '{"id":"con_Ul3HP0Ue2R9WM5IN","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-1726595256","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595256"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 828.671875ms + duration: 242.665834ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Ul3HP0Ue2R9WM5IN method: DELETE response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:28.127Z"}' + body: '{"deleted_at":"2024-09-17T17:47:36.504Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 329.139917ms + duration: 156.074167ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Ul3HP0Ue2R9WM5IN method: GET response: proto: HTTP/2.0 @@ -106,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 339.533416ms + duration: 140.256541ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Ul3HP0Ue2R9WM5IN 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-09-17T17:47:36.504Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 353.659875ms + status: 202 Accepted + code: 202 + duration: 134.869208ms diff --git a/test/data/recordings/TestConnectionManager_DeleteSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_DeleteSCIMConfiguration.yaml index 86033483..e80be469 100644 --- a/test/data/recordings/TestConnectionManager_DeleteSCIMConfiguration.yaml +++ b/test/data/recordings/TestConnectionManager_DeleteSCIMConfiguration.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167790","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-1726595267","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_7FKJwfZDamw0b3r0","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-1720167790","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167790"]}' + body: '{"id":"con_DiG7GgeHvXO7GEEb","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595267","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595267","enabled_clients":[],"realms":["Test-Okta-Connection-1726595267"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.121226709s + duration: 769.66325ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7FKJwfZDamw0b3r0/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DiG7GgeHvXO7GEEb/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_7FKJwfZDamw0b3r0","connection_name":"Test-Okta-Connection-1720167790","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:23:12.233Z","created_at":"2024-07-05T08:23:12.233Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_DiG7GgeHvXO7GEEb","connection_name":"Test-Okta-Connection-1726595267","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:48.090Z","created_at":"2024-09-17T17:47:48.090Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 400.415959ms + duration: 169.962875ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7FKJwfZDamw0b3r0/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DiG7GgeHvXO7GEEb/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -107,7 +107,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 381.742375ms + duration: 151.255584ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7FKJwfZDamw0b3r0/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DiG7GgeHvXO7GEEb/scim-configuration method: GET response: proto: HTTP/2.0 @@ -142,7 +142,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 365.933125ms + duration: 150.853875ms - id: 4 request: proto: HTTP/1.1 @@ -160,8 +160,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7FKJwfZDamw0b3r0/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DiG7GgeHvXO7GEEb/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -177,7 +177,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 347.860625ms + duration: 146.384833ms - id: 5 request: proto: HTTP/1.1 @@ -195,8 +195,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7FKJwfZDamw0b3r0 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DiG7GgeHvXO7GEEb method: DELETE response: proto: HTTP/2.0 @@ -206,10 +206,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:23:13.700Z"}' + body: '{"deleted_at":"2024-09-17T17:47:48.690Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 356.440833ms + duration: 150.302416ms diff --git a/test/data/recordings/TestConnectionManager_DeleteSCIMToken.yaml b/test/data/recordings/TestConnectionManager_DeleteSCIMToken.yaml index 21991bbf..a503bfdd 100644 --- a/test/data/recordings/TestConnectionManager_DeleteSCIMToken.yaml +++ b/test/data/recordings/TestConnectionManager_DeleteSCIMToken.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167868","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-1726595280","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_r8UGxhSqX9S5uFDx","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-1720167868","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167868"]}' + body: '{"id":"con_TyYCRjuOuU6yL3W1","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595280","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595280","enabled_clients":[],"realms":["Test-Okta-Connection-1726595280"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.347513083s + duration: 769.763375ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_r8UGxhSqX9S5uFDx","connection_name":"Test-Okta-Connection-1720167868","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:24:30.750Z","created_at":"2024-07-05T08:24:30.750Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_TyYCRjuOuU6yL3W1","connection_name":"Test-Okta-Connection-1726595280","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:48:01.375Z","created_at":"2024-09-17T17:48:01.375Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 425.627375ms + duration: 167.712292ms - id: 2 request: proto: HTTP/1.1 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx/scim-configuration/tokens + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1/scim-configuration/tokens method: POST response: proto: HTTP/2.0 @@ -102,13 +102,13 @@ interactions: trailer: {} content_length: 233 uncompressed: false - body: '{"token_id":"tok_8kIFprg2uwTYLhtu","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-07-05T08:24:31.158Z"}' + body: '{"token_id":"tok_WCitygRl2tfwHekB","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-09-17T17:48:01.544Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 402.489083ms + duration: 154.026708ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +126,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx/scim-configuration/tokens + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1/scim-configuration/tokens method: GET response: proto: HTTP/2.0 @@ -137,13 +137,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '[{"token_id":"tok_8kIFprg2uwTYLhtu","created_at":"2024-07-05T08:24:31.158Z","scopes":["get:users","post:users","put:users","patch:users"]}]' + body: '[{"token_id":"tok_WCitygRl2tfwHekB","created_at":"2024-09-17T17:48:01.544Z","scopes":["get:users","post:users","put:users","patch:users"]}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 382.78425ms + duration: 6.296951792s - id: 4 request: proto: HTTP/1.1 @@ -161,8 +161,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx/scim-configuration/tokens/tok_8kIFprg2uwTYLhtu + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1/scim-configuration/tokens/tok_WCitygRl2tfwHekB method: DELETE response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 982.439667ms + duration: 151.784541ms - id: 5 request: proto: HTTP/1.1 @@ -196,8 +196,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx/scim-configuration/tokens + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1/scim-configuration/tokens method: GET response: proto: HTTP/2.0 @@ -213,7 +213,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 777.96525ms + duration: 152.176334ms - id: 6 request: proto: HTTP/1.1 @@ -231,8 +231,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -248,7 +248,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 1.635244291s + duration: 166.021583ms - id: 7 request: proto: HTTP/1.1 @@ -266,8 +266,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -283,7 +283,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 421.679875ms + duration: 138.778166ms - id: 8 request: proto: HTTP/1.1 @@ -301,8 +301,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_r8UGxhSqX9S5uFDx + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TyYCRjuOuU6yL3W1 method: DELETE response: proto: HTTP/2.0 @@ -312,10 +312,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:24:35.754Z"}' + body: '{"deleted_at":"2024-09-17T17:48:08.592Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 409.206125ms + duration: 152.062ms diff --git a/test/data/recordings/TestConnectionManager_List.yaml b/test/data/recordings/TestConnectionManager_List.yaml index 7ce71ac5..96af9f55 100644 --- a/test/data/recordings/TestConnectionManager_List.yaml +++ b/test/data/recordings/TestConnectionManager_List.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-List-1714473394","strategy":"auth0"} + {"name":"Test-Auth0-Connection-List-1726595256","strategy":"auth0"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 530 uncompressed: false - 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"]}' + body: '{"id":"con_O9wKsUjPX9IFSpG6","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-1726595256","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1726595256"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.072938375s + duration: 165.533583ms - id: 1 request: proto: HTTP/1.1 @@ -54,7 +54,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?fields=id&include_fields=true&include_totals=true&per_page=50 method: GET response: @@ -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_9ipDSs5V9ANs9sBA","is_domain_connection":false},{"id":"con_j2mkms4M0wmxNiSx","is_domain_connection":false},{"id":"con_o1RfqDaIvuekh5T5","is_domain_connection":false}]}' + body: '{"total":4,"start":0,"limit":50,"connections":[{"id":"con_DxgC1AOx9RC3IiaU","is_domain_connection":false},{"id":"con_GaTGjEsj1Mp3sZo3","is_domain_connection":false},{"id":"con_O9wKsUjPX9IFSpG6","is_domain_connection":false},{"id":"con_3VxHo0Oqi5JOA3TE","is_domain_connection":false}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 325.89875ms + duration: 140.560458ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9ipDSs5V9ANs9sBA + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_O9wKsUjPX9IFSpG6 method: DELETE response: proto: HTTP/2.0 @@ -100,10 +100,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:36.523Z"}' + body: '{"deleted_at":"2024-09-17T17:47:37.254Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 328.540667ms + duration: 159.405541ms diff --git a/test/data/recordings/TestConnectionManager_ListSCIMTokens.yaml b/test/data/recordings/TestConnectionManager_ListSCIMTokens.yaml index fb081f09..358b69ee 100644 --- a/test/data/recordings/TestConnectionManager_ListSCIMTokens.yaml +++ b/test/data/recordings/TestConnectionManager_ListSCIMTokens.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167853","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-1726595278","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_RlCMapmmuUal6xAk","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-1720167853","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167853"]}' + body: '{"id":"con_3KN70a89GY0H8UBU","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595278","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595278","enabled_clients":[],"realms":["Test-Okta-Connection-1726595278"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.036779209s + duration: 838.246958ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RlCMapmmuUal6xAk/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3KN70a89GY0H8UBU/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_RlCMapmmuUal6xAk","connection_name":"Test-Okta-Connection-1720167853","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:24:14.833Z","created_at":"2024-07-05T08:24:14.833Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_3KN70a89GY0H8UBU","connection_name":"Test-Okta-Connection-1726595278","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:59.624Z","created_at":"2024-09-17T17:47:59.624Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 403.237667ms + duration: 165.66375ms - id: 2 request: proto: HTTP/1.1 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RlCMapmmuUal6xAk/scim-configuration/tokens + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3KN70a89GY0H8UBU/scim-configuration/tokens method: POST response: proto: HTTP/2.0 @@ -102,13 +102,13 @@ interactions: trailer: {} content_length: 233 uncompressed: false - body: '{"token_id":"tok_U8zt08XwcbKhI2B4","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-07-05T08:24:15.237Z"}' + body: '{"token_id":"tok_unoEXOPIXv1Qs9AH","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-09-17T17:47:59.796Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 441.427ms + duration: 166.045ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +126,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RlCMapmmuUal6xAk/scim-configuration/tokens + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3KN70a89GY0H8UBU/scim-configuration/tokens method: GET response: proto: HTTP/2.0 @@ -137,13 +137,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '[{"token_id":"tok_U8zt08XwcbKhI2B4","created_at":"2024-07-05T08:24:15.237Z","scopes":["get:users","post:users","put:users","patch:users"]}]' + body: '[{"token_id":"tok_unoEXOPIXv1Qs9AH","created_at":"2024-09-17T17:47:59.796Z","scopes":["get:users","post:users","put:users","patch:users"]}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 388.931708ms + duration: 176.847709ms - id: 4 request: proto: HTTP/1.1 @@ -161,8 +161,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RlCMapmmuUal6xAk/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3KN70a89GY0H8UBU/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 558.961791ms + duration: 155.689208ms - id: 5 request: proto: HTTP/1.1 @@ -196,8 +196,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RlCMapmmuUal6xAk/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3KN70a89GY0H8UBU/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -213,7 +213,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 359.313375ms + duration: 157.791833ms - id: 6 request: proto: HTTP/1.1 @@ -231,8 +231,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RlCMapmmuUal6xAk + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3KN70a89GY0H8UBU method: DELETE response: proto: HTTP/2.0 @@ -242,10 +242,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:24:17.855Z"}' + body: '{"deleted_at":"2024-09-17T17:48:00.431Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 1.611060291s + duration: 154.712791ms 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 24657d51..6453aa1a 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 2221 + content_length: 2242 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-ADFS-Connection-1726595088","strategy":"adfs","options":{"strategy_version":2,"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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_07x6SZgphwv2j3P5","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/JEvTZjow","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 350.364ms + duration: 176.340792ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_07x6SZgphwv2j3P5 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_07x6SZgphwv2j3P5","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/JEvTZjow","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 353.083208ms + duration: 138.060042ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_07x6SZgphwv2j3P5 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:39.160Z"}' + body: '{"deleted_at":"2024-09-17T17:45:41.995Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 320.5215ms + duration: 144.732958ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_07x6SZgphwv2j3P5 method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 394.116541ms + duration: 136.692667ms 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 0f1bae6a..c41c4749 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 126 + content_length: 147 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714473198","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1726595088","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 407 + content_length: 428 uncompressed: false - 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"]}' + body: '{"id":"con_zjcdz5hb6eAnzgCi","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/AjqyByhxHmSAz7WEtEWzk383w84vPe2L","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 338.068584ms + duration: 6.319112s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zjcdz5hb6eAnzgCi method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_zjcdz5hb6eAnzgCi","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/AjqyByhxHmSAz7WEtEWzk383w84vPe2L","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 349.556584ms + duration: 139.777ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zjcdz5hb6eAnzgCi method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:31.487Z"}' + body: '{"deleted_at":"2024-09-17T17:45:41.390Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 345.545084ms + duration: 141.95625ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zjcdz5hb6eAnzgCi method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 6.626678375s + duration: 142.232584ms 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 8f600a07..2c6c8f55 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714473198","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1726595088","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - 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"]}' + body: '{"id":"con_JC09FdDYi9XIdU91","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.227875ms + duration: 168.791041ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JC09FdDYi9XIdU91 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_JC09FdDYi9XIdU91","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 332.068209ms + duration: 5.321977208s - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JC09FdDYi9XIdU91 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:42.269Z"}' + body: '{"deleted_at":"2024-09-17T17:45:48.387Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 447.952375ms + duration: 159.566917ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JC09FdDYi9XIdU91 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-09-17T17:45:48.387Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 332.105666ms + status: 202 Accepted + code: 202 + duration: 149.891667ms 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 f25c99f0..69b7ab22 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 132 + content_length: 153 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714473198","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1726595088","strategy":"auth0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - 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"]}' + body: '{"id":"con_JpZYPZ2TYvCpBKLW","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 797.860334ms + duration: 164.498667ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JpZYPZ2TYvCpBKLW method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_JpZYPZ2TYvCpBKLW","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 364.919833ms + duration: 154.157625ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JpZYPZ2TYvCpBKLW method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:19.595Z"}' + body: '{"deleted_at":"2024-09-17T17:45:17.798Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 327.139792ms + duration: 150.803416ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JpZYPZ2TYvCpBKLW 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-09-17T17:45:17.798Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 320.961042ms + status: 202 Accepted + code: 202 + duration: 139.194ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml new file mode 100644 index 00000000..a0fff5a3 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml @@ -0,0 +1,144 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 277 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AzureAD-Connection-1726595088","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.10.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: -1 + uncompressed: false + body: '{"id":"con_eRuFxWWXo0YUX8vt","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/d2FV6Nyl","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 417.393875ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRuFxWWXo0YUX8vt + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_eRuFxWWXo0YUX8vt","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/d2FV6Nyl","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 141.457041ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRuFxWWXo0YUX8vt + 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-09-17T17:45:34.618Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 183.401916ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRuFxWWXo0YUX8vt + 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-09-17T17:45:34.618Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 148.242292ms 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 bd3d669b..b49ce51e 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Custom-SMS-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - 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"]}' + body: '{"id":"con_5wGYm7sW63Jcn4Q8","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 399.502083ms + duration: 180.87925ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5wGYm7sW63Jcn4Q8 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_5wGYm7sW63Jcn4Q8","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.206959ms + duration: 149.415084ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5wGYm7sW63Jcn4Q8 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:28.551Z"}' + body: '{"deleted_at":"2024-09-17T17:45:33.100Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 478.443875ms + duration: 152.399583ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5wGYm7sW63Jcn4Q8 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-09-17T17:45:33.100Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 353.65575ms + status: 202 Accepted + code: 202 + duration: 135.48ms 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 67f7e04a..17bd90fe 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Email-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - 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"]}' + body: '{"id":"con_eebaQLA9rRlaJFcK","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 384.920375ms + duration: 168.982875ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eebaQLA9rRlaJFcK method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_eebaQLA9rRlaJFcK","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 338.224791ms + duration: 151.100291ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eebaQLA9rRlaJFcK method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:25.290Z"}' + body: '{"deleted_at":"2024-09-17T17:45:26.712Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 353.717375ms + duration: 149.306708ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eebaQLA9rRlaJFcK method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:25.290Z"}' + body: '{"deleted_at":"2024-09-17T17:45:26.712Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 314.753875ms + duration: 134.977333ms 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 ef2ca954..621348d1 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714473198","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1726595088","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - 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"]}' + body: '{"id":"con_VrluQQq6uPePJUGx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.369792ms + duration: 158.394417ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VrluQQq6uPePJUGx method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_VrluQQq6uPePJUGx","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.065667ms + duration: 139.765125ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VrluQQq6uPePJUGx method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:40.706Z"}' + body: '{"deleted_at":"2024-09-17T17:45:42.588Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 409.334334ms + duration: 151.526667ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VrluQQq6uPePJUGx 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-09-17T17:45:42.588Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 408.962333ms + status: 202 Accepted + code: 202 + duration: 144.102875ms 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 d1619071..75ad8c25 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714473198","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1726595088","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - 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"]}' + body: '{"id":"con_9mkJUcH1IhwtYcX3","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 339.808125ms + duration: 160.640667ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9mkJUcH1IhwtYcX3 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_9mkJUcH1IhwtYcX3","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 310.81775ms + duration: 144.361667ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9mkJUcH1IhwtYcX3 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:45.675Z"}' + body: '{"deleted_at":"2024-09-17T17:45:49.616Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 349.036834ms + duration: 153.612958ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9mkJUcH1IhwtYcX3 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-30T10:33:45.675Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 344.12775ms + status: 204 No Content + code: 204 + duration: 138.470333ms 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 c32d8783..44d67dd5 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-GoogleApps-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - 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"]}' + body: '{"id":"con_k0j4iRUEmKf26whF","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/YeMWaaPR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 468.054584ms + duration: 199.84ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k0j4iRUEmKf26whF method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_k0j4iRUEmKf26whF","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/YeMWaaPR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 321.829125ms + duration: 148.9545ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k0j4iRUEmKf26whF method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:23.898Z"}' + body: '{"deleted_at":"2024-09-17T17:45:26.084Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 346.397916ms + duration: 164.187167ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k0j4iRUEmKf26whF method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:23.898Z"}' + body: '{"deleted_at":"2024-09-17T17:45:26.084Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 328.279125ms + duration: 144.6655ms 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 111e1b48..07a805e0 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"]}} + {"name":"Test-GoogleOAuth2-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - 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"]}' + body: '{"id":"con_LohR1kRtXn887Bub","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 352.906625ms + duration: 6.327143875s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LohR1kRtXn887Bub method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_LohR1kRtXn887Bub","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 363.881125ms + duration: 153.609458ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LohR1kRtXn887Bub method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:22.375Z"}' + body: '{"deleted_at":"2024-09-17T17:45:25.426Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.441166ms + duration: 346.151084ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LohR1kRtXn887Bub method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:22.375Z"}' + body: '{"deleted_at":"2024-09-17T17:45:25.426Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 390.45475ms + duration: 138.589666ms 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 03977c40..eecbb287 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 138 + content_length: 159 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714473198","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1726595088","strategy":"linkedin","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 306 + content_length: 326 uncompressed: false - 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"]}' + body: '{"id":"con_Vt6Lqon2PcGWzFdb","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 459.667167ms + duration: 164.77075ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Vt6Lqon2PcGWzFdb method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_Vt6Lqon2PcGWzFdb","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 577.483292ms + duration: 147.779667ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Vt6Lqon2PcGWzFdb method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:44.093Z"}' + body: '{"deleted_at":"2024-09-17T17:45:49.009Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 340.815875ms + duration: 152.93775ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Vt6Lqon2PcGWzFdb method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 596.247125ms + duration: 148.688875ms 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 2053c571..e731c065 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 456 + content_length: 465 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-OIDC-Connection-1726595088","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 601 + content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_8Vmyd1y12dwouhKa","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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":"https://api.paypal.com/v1/oauth2/token/userinfo","token_endpoint":"https://api.paypal.com/v1/oauth2/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://www.paypal.com","authorization_endpoint":"https://www.paypal.com/signin/authorize","registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","token_endpoint":"https://api.paypal.com/v1/oauth2/token","userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","token_endpoint_auth_methods_supported":["client_secret_basic"],"response_types_supported":["code","code id_token"],"response_modes_supported":["query","form_post"],"grant_types_supported":["authorization_code","refresh_token"],"subject_types_supported":["pairwise"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"id_token_signing_alg_values_supported":["HS256","RS256"],"claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"code_challenge_methods_supported":["RS256","ES256","S256"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","attribute_map":{"mapping_mode":"bind_all"},"connection_settings":{"pkce":"auto"}},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","enabled_clients":[],"realms":["Test-OIDC-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 499.51625ms + duration: 326.883208ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8Vmyd1y12dwouhKa method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_8Vmyd1y12dwouhKa","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"bind_all"},"discovery_url":"https://www.paypalobjects.com/.well-known/openid-configuration","oidc_metadata":{"issuer":"https://www.paypal.com","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","token_endpoint":"https://api.paypal.com/v1/oauth2/token","claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","grant_types_supported":["authorization_code","refresh_token"],"registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","authorization_endpoint":"https://www.paypal.com/signin/authorize","subject_types_supported":["pairwise"],"response_modes_supported":["query","form_post"],"response_types_supported":["code","code id_token"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"code_challenge_methods_supported":["RS256","ES256","S256"],"require_request_uri_registration":false,"id_token_signing_alg_values_supported":["HS256","RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic"]},"schema_version":"oidc-V4","token_endpoint":"https://api.paypal.com/v1/oauth2/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","enabled_clients":[],"realms":["Test-OIDC-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 345.431167ms + duration: 150.11725ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8Vmyd1y12dwouhKa method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:50.344Z"}' + body: '{"deleted_at":"2024-09-17T17:45:57.804Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 327.611042ms + duration: 154.449417ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8Vmyd1y12dwouhKa 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-09-17T17:45:57.804Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 336.887084ms + status: 202 Accepted + code: 202 + duration: 130.289708ms 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 9734d881..07a55462 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Okta-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_eRq8Qk1yoyUYnOdS","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","enabled_clients":[],"realms":["Test-Okta-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 620.70325ms + duration: 855.144709ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRq8Qk1yoyUYnOdS method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_eRq8Qk1yoyUYnOdS","options":{"type":"back_channel","scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"basic_profile"},"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"],"claims_parameter_supported":false,"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","request_uri_parameter_supported":false,"code_challenge_methods_supported":["S256"],"require_request_uri_registration":false,"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"]},"schema_version":"oidc-V4","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","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","enabled_clients":[],"realms":["Test-Okta-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 334.3025ms + duration: 157.999875ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRq8Qk1yoyUYnOdS method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:52.308Z"}' + body: '{"deleted_at":"2024-09-17T17:45:59.112Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 704.891917ms + duration: 158.579583ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRq8Qk1yoyUYnOdS method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:52.308Z"}' + body: '{"deleted_at":"2024-09-17T17:45:59.112Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 317.054417ms + duration: 139.144167ms 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 c47ca065..b42b8b2a 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}} + {"name":"Test-Ping-Federate-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_cg1DkiRpzVEHII2g","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/f5o4v6lc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 361.766333ms + duration: 170.590334ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cg1DkiRpzVEHII2g method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_cg1DkiRpzVEHII2g","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/f5o4v6lc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 340.971667ms + duration: 145.736583ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cg1DkiRpzVEHII2g method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:53.705Z"}' + body: '{"deleted_at":"2024-09-17T17:45:59.739Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 412.491542ms + duration: 169.099125ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cg1DkiRpzVEHII2g 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-30T10:33:53.705Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 374.138667ms + status: 204 No Content + code: 204 + duration: 6.303446292s 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 bacabdc9..26e19b86 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1966 + content_length: 1987 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-SAML-Connection-1726595088","strategy":"samlp","options":{"strategy_version":2,"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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_Xw9VEvn4EohnCwlD","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/wd2TGfzx","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 398.977708ms + duration: 186.579334ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Xw9VEvn4EohnCwlD method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_Xw9VEvn4EohnCwlD","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/wd2TGfzx","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 340.891166ms + duration: 152.406ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Xw9VEvn4EohnCwlD method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:30.030Z"}' + body: '{"deleted_at":"2024-09-17T17:45:33.745Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 429.279542ms + duration: 163.3985ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Xw9VEvn4EohnCwlD 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-09-17T17:45:33.745Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 346.346875ms + status: 202 Accepted + code: 202 + duration: 137.274583ms 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 56080f92..1c13ad6e 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-SMS-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - 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"]}' + body: '{"id":"con_2deo60CCiPa5s8w4","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 513.9165ms + duration: 170.098375ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2deo60CCiPa5s8w4 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_2deo60CCiPa5s8w4","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.678875ms + duration: 146.433042ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2deo60CCiPa5s8w4 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:26.874Z"}' + body: '{"deleted_at":"2024-09-17T17:45:32.469Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 410.3715ms + duration: 5.301385583s - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2deo60CCiPa5s8w4 method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:26.874Z"}' + body: '{"deleted_at":"2024-09-17T17:45:32.469Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 416.808875ms + duration: 142.987083ms 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 00f104c3..1f1707be 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714473198","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1726595088","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - 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"]}' + body: '{"id":"con_LFCgJmzLHyJv1IPV","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 326.873834ms + duration: 181.994583ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LFCgJmzLHyJv1IPV method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_LFCgJmzLHyJv1IPV","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 313.401875ms + duration: 150.955917ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LFCgJmzLHyJv1IPV method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:48.629Z"}' + body: '{"deleted_at":"2024-09-17T17:45:57.006Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 381.336083ms + duration: 150.148417ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LFCgJmzLHyJv1IPV method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:48.629Z"}' + body: '{"deleted_at":"2024-09-17T17:45:57.006Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 511.058333ms + duration: 163.283084ms 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 59a8abde..aac62543 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 144 + content_length: 165 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714473198","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1726595088","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 309 + content_length: 319 uncompressed: false - 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"]}' + body: '{"id":"con_HkJ9DxIeJkbFVHoW","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 369.866583ms + duration: 160.777917ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HkJ9DxIeJkbFVHoW method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_HkJ9DxIeJkbFVHoW","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 407.859209ms + duration: 155.33775ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HkJ9DxIeJkbFVHoW method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:47.325Z"}' + body: '{"deleted_at":"2024-09-17T17:45:50.229Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 502.293667ms + duration: 156.157334ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HkJ9DxIeJkbFVHoW method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 316.352125ms + duration: 6.27975625s 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 index 547939c1..d45f72a4 100644 --- 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 217 + content_length: 238 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"]}} + {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress","options":{"strategy_version":2,"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 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 342 + content_length: 363 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"]}' + body: '{"id":"con_rCizJmNH106qXDlJ","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 332.632125ms + duration: 212.060125ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rCizJmNH106qXDlJ method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: 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"]}' + body: '{"id":"con_rCizJmNH106qXDlJ","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 355.966417ms + duration: 148.000167ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rCizJmNH106qXDlJ method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:33:20.954Z"}' + body: '{"deleted_at":"2024-09-17T17:45:18.454Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 342.890084ms + duration: 156.883791ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rCizJmNH106qXDlJ 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-09-17T17:45:18.454Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 361.824834ms + status: 202 Accepted + code: 202 + duration: 137.6775ms 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 29caba9d..b083534b 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 2221 + content_length: 2242 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-ADFS-Connection-1726595088","strategy":"adfs","options":{"strategy_version":2,"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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_6SCXo3Z9rql64JaQ","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/1Whixihz","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 5.710824125s + duration: 180.064375ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-ADFS-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_6SCXo3Z9rql64JaQ","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/1Whixihz","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 403.112334ms + duration: 6.285877542s - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bpvlBQPDCBDsqOot + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6SCXo3Z9rql64JaQ method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:23.448Z"}' + body: '{"deleted_at":"2024-09-17T17:46:30.595Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 328.764666ms + duration: 152.257625ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bpvlBQPDCBDsqOot + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6SCXo3Z9rql64JaQ method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:23.448Z"}' + body: '{"deleted_at":"2024-09-17T17:46:30.595Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 436.47375ms + duration: 140.227958ms 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 87b98df5..53f496e3 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 126 + content_length: 147 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714473302","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1726595088","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 407 + content_length: 428 uncompressed: false - 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"]}' + body: '{"id":"con_CGqAhhxQiqKchSUx","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/5YVEBxEsKw6b5Equ42fXdkk1JjyeNYip","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 326.753166ms + duration: 167.777875ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-AD-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_CGqAhhxQiqKchSUx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/5YVEBxEsKw6b5Equ42fXdkk1JjyeNYip","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.130083ms + duration: 175.441666ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fJKZpLULtI3twgjl + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CGqAhhxQiqKchSUx method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:16.691Z"}' + body: '{"deleted_at":"2024-09-17T17:46:23.844Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 331.01025ms + duration: 151.678ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fJKZpLULtI3twgjl + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CGqAhhxQiqKchSUx 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-09-17T17:46:23.844Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 312.649333ms + status: 202 Accepted + code: 202 + duration: 132.2265ms 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 c0dd4696..e2006d1c 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714473302","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1726595088","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - 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"]}' + body: '{"id":"con_GPOeAwqqJzKa8BUa","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 348.066084ms + duration: 163.388292ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-Apple-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_GPOeAwqqJzKa8BUa","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"realms":["Test-Apple-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 316.280125ms + duration: 145.738542ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4bwoWzShbslsA9Hn + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GPOeAwqqJzKa8BUa method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:26.195Z"}' + body: '{"deleted_at":"2024-09-17T17:46:31.800Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 340.531958ms + duration: 157.205291ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4bwoWzShbslsA9Hn + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GPOeAwqqJzKa8BUa 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-09-17T17:46:31.800Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 307.697292ms + status: 202 Accepted + code: 202 + duration: 139.742041ms 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 29dfbd4f..c3681b8e 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 132 + content_length: 153 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714473302","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1726595088","strategy":"auth0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - 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"]}' + body: '{"id":"con_IfI1jib3tr22cBFT","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 812.202167ms + duration: 168.16875ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-Auth0-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_IfI1jib3tr22cBFT","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-1726595088","is_domain_connection":false,"realms":["Test-Auth0-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.410917ms + duration: 142.7465ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ljYVBopvrTDcvyUB + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IfI1jib3tr22cBFT method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:04.939Z"}' + body: '{"deleted_at":"2024-09-17T17:46:06.523Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 989.603458ms + duration: 163.715ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ljYVBopvrTDcvyUB + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IfI1jib3tr22cBFT 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-09-17T17:46:06.523Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 379.8115ms + status: 202 Accepted + code: 202 + duration: 145.243916ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_Connection_by_its_name.yaml new file mode 100644 index 00000000..2de16522 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_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: 277 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AzureAD-Connection-1726595088","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.10.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: -1 + uncompressed: false + body: '{"id":"con_vj5vKqLCgFP4lrLn","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/AEUYQhyQ","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 406.06775ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AzureAD-Connection-1726595088&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_vj5vKqLCgFP4lrLn","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/AEUYQhyQ","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","realms":["Test-AzureAD-Connection-1726595088"],"enabled_clients":[]}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 153.261042ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vj5vKqLCgFP4lrLn + 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-09-17T17:46:23.203Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 159.098375ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vj5vKqLCgFP4lrLn + 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-09-17T17:46:23.203Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 136.084417ms 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 b9db0986..b1c00b06 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Custom-SMS-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - 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"]}' + body: '{"id":"con_jzngEOcIQRdnMS7v","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 404.771542ms + duration: 160.544459ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-Custom-SMS-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_jzngEOcIQRdnMS7v","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-1726595088","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.61325ms + duration: 141.42975ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RHIwoZw7hdVMJDRw + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jzngEOcIQRdnMS7v method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:13.890Z"}' + body: '{"deleted_at":"2024-09-17T17:46:21.584Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 333.687333ms + duration: 5.329642666s - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RHIwoZw7hdVMJDRw + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jzngEOcIQRdnMS7v method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:13.890Z"}' + body: '{"deleted_at":"2024-09-17T17:46:21.584Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 373.838708ms + duration: 139.481958ms 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 0ee2e4d0..48dfe53e 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Email-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - 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"]}' + body: '{"id":"con_tH61hFPxUz7XlYHk","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 343.757667ms + duration: 164.354542ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-Email-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tH61hFPxUz7XlYHk","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-1726595088","is_domain_connection":false,"realms":["Test-Email-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 374.519708ms + duration: 147.405ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kZfCnQYXVGXwFs6J + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tH61hFPxUz7XlYHk method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:10.863Z"}' + body: '{"deleted_at":"2024-09-17T17:46:15.213Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 333.051833ms + duration: 158.937042ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kZfCnQYXVGXwFs6J + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tH61hFPxUz7XlYHk method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:10.863Z"}' + body: '{"deleted_at":"2024-09-17T17:46:15.213Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 311.9795ms + duration: 141.214292ms 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 7ded958c..c6849a28 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714473302","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1726595088","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - 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"]}' + body: '{"id":"con_v6SDsA5mSnusmUVT","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 346.242291ms + duration: 155.520208ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-Facebook-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_v6SDsA5mSnusmUVT","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"realms":["Test-Facebook-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.32525ms + duration: 140.234333ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQmJVLGTsYZ2ighN + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_v6SDsA5mSnusmUVT method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:24.876Z"}' + body: '{"deleted_at":"2024-09-17T17:46:31.196Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 325.861667ms + duration: 154.31475ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQmJVLGTsYZ2ighN + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_v6SDsA5mSnusmUVT method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:24.876Z"}' + body: '{"deleted_at":"2024-09-17T17:46:31.196Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.703291ms + duration: 134.743625ms 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 9f3a3c75..e2cd913b 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714473302","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1726595088","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - 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"]}' + body: '{"id":"con_9HBCOUoDAYsnrjkc","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 343.616333ms + duration: 159.416292ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-GitHub-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_9HBCOUoDAYsnrjkc","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"realms":["Test-GitHub-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 336.696875ms + duration: 159.403292ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zh6MDuAZ44XHV2FW + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9HBCOUoDAYsnrjkc method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:28.907Z"}' + body: '{"deleted_at":"2024-09-17T17:46:38.176Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 337.443625ms + duration: 153.736125ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zh6MDuAZ44XHV2FW + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9HBCOUoDAYsnrjkc method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 409.240417ms + duration: 149.886083ms 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 fd670275..5e1db711 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-GoogleApps-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - 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"]}' + body: '{"id":"con_UG06mjdZI4wplGOc","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/QuZUBWkA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 477.005917ms + duration: 201.185042ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-GoogleApps-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_UG06mjdZI4wplGOc","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/QuZUBWkA","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 457.007875ms + duration: 6.292589083s - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Dc3F1Db2EttVzhS + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UG06mjdZI4wplGOc method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:09.395Z"}' + body: '{"deleted_at":"2024-09-17T17:46:14.603Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 441.548166ms + duration: 161.24575ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Dc3F1Db2EttVzhS + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UG06mjdZI4wplGOc 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-09-17T17:46:14.603Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 314.826458ms + status: 202 Accepted + code: 202 + duration: 133.115334ms 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 d71a04c3..8078a9a0 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"]}} + {"name":"Test-GoogleOAuth2-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - 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"]}' + body: '{"id":"con_XmVyXsxNOnGgfWzV","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 360.493292ms + duration: 170.641125ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-GoogleOAuth2-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_XmVyXsxNOnGgfWzV","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-1726595088","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 319.3915ms + duration: 157.35925ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OBIag7kpH76OFUDM + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XmVyXsxNOnGgfWzV method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:07.743Z"}' + body: '{"deleted_at":"2024-09-17T17:46:07.786Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 358.136041ms + duration: 148.824459ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OBIag7kpH76OFUDM + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XmVyXsxNOnGgfWzV 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-30T10:35:07.743Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 378.220291ms + status: 204 No Content + code: 204 + duration: 157.251291ms 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 6e434c76..f08dc176 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 138 + content_length: 159 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714473302","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1726595088","strategy":"linkedin","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 306 + content_length: 326 uncompressed: false - 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"]}' + body: '{"id":"con_tlz55k3v1aSq4y6h","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 342.666208ms + duration: 156.6895ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-LinkedIn-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tlz55k3v1aSq4y6h","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 337.3845ms + duration: 147.595209ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bvAUCuevZHdYeIo1 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlz55k3v1aSq4y6h method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:27.510Z"}' + body: '{"deleted_at":"2024-09-17T17:46:37.548Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 325.439917ms + duration: 5.302044916s - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bvAUCuevZHdYeIo1 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlz55k3v1aSq4y6h 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-30T10:35:27.510Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 386.39975ms + status: 204 No Content + code: 204 + duration: 147.558625ms 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 db19d839..81baa0d7 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 456 + content_length: 465 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-OIDC-Connection-1726595088","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 601 + content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_yT4gZ2YgwUCD7Mo2","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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":"https://api.paypal.com/v1/oauth2/token/userinfo","token_endpoint":"https://api.paypal.com/v1/oauth2/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://www.paypal.com","authorization_endpoint":"https://www.paypal.com/signin/authorize","registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","token_endpoint":"https://api.paypal.com/v1/oauth2/token","userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","token_endpoint_auth_methods_supported":["client_secret_basic"],"response_types_supported":["code","code id_token"],"response_modes_supported":["query","form_post"],"grant_types_supported":["authorization_code","refresh_token"],"subject_types_supported":["pairwise"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"id_token_signing_alg_values_supported":["HS256","RS256"],"claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"code_challenge_methods_supported":["RS256","ES256","S256"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","attribute_map":{"mapping_mode":"bind_all"},"connection_settings":{"pkce":"auto"}},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","enabled_clients":[],"realms":["Test-OIDC-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 603.3885ms + duration: 6.473072709s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-OIDC-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_yT4gZ2YgwUCD7Mo2","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"bind_all"},"discovery_url":"https://www.paypalobjects.com/.well-known/openid-configuration","oidc_metadata":{"issuer":"https://www.paypal.com","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","token_endpoint":"https://api.paypal.com/v1/oauth2/token","claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","grant_types_supported":["authorization_code","refresh_token"],"registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","authorization_endpoint":"https://www.paypal.com/signin/authorize","subject_types_supported":["pairwise"],"response_modes_supported":["query","form_post"],"response_types_supported":["code","code id_token"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"code_challenge_methods_supported":["RS256","ES256","S256"],"require_request_uri_registration":false,"id_token_signing_alg_values_supported":["HS256","RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic"]},"schema_version":"oidc-V4","token_endpoint":"https://api.paypal.com/v1/oauth2/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","realms":["Test-OIDC-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.242375ms + duration: 148.361292ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q9zMy9JwSiBYeYm9 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yT4gZ2YgwUCD7Mo2 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:33.463Z"}' + body: '{"deleted_at":"2024-09-17T17:46:46.346Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.707083ms + duration: 183.530791ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q9zMy9JwSiBYeYm9 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yT4gZ2YgwUCD7Mo2 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-09-17T17:46:46.346Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 362.9335ms + status: 202 Accepted + code: 202 + duration: 136.8825ms 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 b7e0ac97..1a68be52 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-Okta-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_bMMx2iY5mhtmtvjc","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","enabled_clients":[],"realms":["Test-Okta-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.041564875s + duration: 771.094ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-Okta-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_bMMx2iY5mhtmtvjc","options":{"type":"back_channel","scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"basic_profile"},"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"],"claims_parameter_supported":false,"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","request_uri_parameter_supported":false,"code_challenge_methods_supported":["S256"],"require_request_uri_registration":false,"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"]},"schema_version":"oidc-V4","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","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","realms":["Test-Okta-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 509.725583ms + duration: 158.120375ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP7oYgVyYp5WbIVp + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bMMx2iY5mhtmtvjc method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:40.725Z"}' + body: '{"deleted_at":"2024-09-17T17:46:47.579Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 339.382667ms + duration: 158.032875ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP7oYgVyYp5WbIVp + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bMMx2iY5mhtmtvjc method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:40.725Z"}' + body: '{"deleted_at":"2024-09-17T17:46:47.579Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 386.975667ms + duration: 130.5035ms 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 e32a0d3b..2cf35c09 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}} + {"name":"Test-Ping-Federate-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_Q7oSxIrMulRHIZBE","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/RsOC1tgZ","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 396.583375ms + duration: 157.007459ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-Ping-Federate-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Q7oSxIrMulRHIZBE","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/RsOC1tgZ","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 408.605083ms + duration: 142.655459ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y4h0LOeTmjEccyT9 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q7oSxIrMulRHIZBE method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:42.254Z"}' + body: '{"deleted_at":"2024-09-17T17:46:48.165Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 410.584125ms + duration: 157.992958ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y4h0LOeTmjEccyT9 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q7oSxIrMulRHIZBE 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-09-17T17:46:48.165Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 335.738875ms + status: 202 Accepted + code: 202 + duration: 146.522875ms 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 2b34693c..2ffb7d4e 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1966 + content_length: 1987 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-SAML-Connection-1726595088","strategy":"samlp","options":{"strategy_version":2,"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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - 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"]}' + body: '{"id":"con_TvZPXMFWnI2pTPbw","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/b4vYk3gS","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 367.211542ms + duration: 193.56075ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-SAML-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_TvZPXMFWnI2pTPbw","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/b4vYk3gS","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 322.228459ms + duration: 242.759666ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJSlQ9Cp3VcULPHt + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TvZPXMFWnI2pTPbw method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:15.287Z"}' + body: '{"deleted_at":"2024-09-17T17:46:22.339Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 331.640917ms + duration: 164.451917ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJSlQ9Cp3VcULPHt + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TvZPXMFWnI2pTPbw method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:15.287Z"}' + body: '{"deleted_at":"2024-09-17T17:46:22.339Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 419.533875ms + duration: 140.350084ms 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 3554058e..8a08a46f 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"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"}}}} + {"name":"Test-SMS-Connection-1726595088","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: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - 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"]}' + body: '{"id":"con_PrpGyVtjGpoIVpFb","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 338.048708ms + duration: 170.985416ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-SMS-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_PrpGyVtjGpoIVpFb","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-1726595088","is_domain_connection":false,"realms":["Test-SMS-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 400.735542ms + duration: 134.779167ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h7XPly3pvVkSzeJk + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PrpGyVtjGpoIVpFb method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:12.258Z"}' + body: '{"deleted_at":"2024-09-17T17:46:15.818Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 408.584042ms + duration: 150.020792ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h7XPly3pvVkSzeJk + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PrpGyVtjGpoIVpFb method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:12.258Z"}' + body: '{"deleted_at":"2024-09-17T17:46:15.818Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 409.85725ms + duration: 136.641125ms 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 e1b63aec..b550453d 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714473302","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1726595088","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - 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"]}' + body: '{"id":"con_3J38oBEu9ijRq2R9","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 336.914084ms + duration: 158.507917ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-SalesForce-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_3J38oBEu9ijRq2R9","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.87ms + duration: 156.269875ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0piuYFctzHie9Z3e + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3J38oBEu9ijRq2R9 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:31.861Z"}' + body: '{"deleted_at":"2024-09-17T17:46:39.394Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 363.419625ms + duration: 167.825834ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0piuYFctzHie9Z3e + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3J38oBEu9ijRq2R9 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-09-17T17:46:39.394Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 312.71275ms + status: 202 Accepted + code: 202 + duration: 130.355667ms 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 e6cee4ff..5c71a209 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 144 + content_length: 165 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714473302","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1726595088","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 309 + content_length: 319 uncompressed: false - 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"]}' + body: '{"id":"con_ObeYskOaQSwZL4lV","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.487042ms + duration: 159.507208ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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-WindowsLive-Connection-1714473302&per_page=50 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_ObeYskOaQSwZL4lV","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 387.395416ms + duration: 135.120042ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aioG22piwFEMfV9s + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ObeYskOaQSwZL4lV method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:30.375Z"}' + body: '{"deleted_at":"2024-09-17T17:46:38.788Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 410.282417ms + duration: 162.478625ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aioG22piwFEMfV9s + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ObeYskOaQSwZL4lV 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-09-17T17:46:38.788Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 410.982208ms + status: 202 Accepted + code: 202 + duration: 131.431375ms 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 index 2f681868..5aa5c045 100644 --- 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 217 + content_length: 238 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"]}} + {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress","options":{"strategy_version":2,"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 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 342 + content_length: 363 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"]}' + body: '{"id":"con_lRQBaKLt7RsodOS6","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.772917ms + duration: 165.814792ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: 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 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Wordpress-Connection-1726595088&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_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":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_lRQBaKLt7RsodOS6","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"realms":["Test-Wordpress-Connection-1726595088"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 341.853791ms + duration: 148.105542ms - id: 2 request: proto: HTTP/1.1 @@ -89,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7qEL7ZP1LkJ6laad + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lRQBaKLt7RsodOS6 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:06.372Z"}' + body: '{"deleted_at":"2024-09-17T17:46:07.160Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 332.967375ms + duration: 164.656416ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7qEL7ZP1LkJ6laad + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lRQBaKLt7RsodOS6 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-09-17T17:46:07.160Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 334.271875ms + status: 202 Accepted + code: 202 + duration: 140.617625ms diff --git a/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml index 8159ec13..c4722a4e 100644 --- a/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml +++ b/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167814","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-1726595268","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Fme0t6qWfn5xQTXd","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-1720167814","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167814"]}' + body: '{"id":"con_HmM2kAbnqOgiuOEK","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595268","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595268","enabled_clients":[],"realms":["Test-Okta-Connection-1726595268"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.331656458s + duration: 821.881ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Fme0t6qWfn5xQTXd/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: 331 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_Fme0t6qWfn5xQTXd","connection_name":"Test-Okta-Connection-1720167814","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-07-05T08:23:36.545Z","created_at":"2024-07-05T08:23:36.545Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_HmM2kAbnqOgiuOEK","connection_name":"Test-Okta-Connection-1726595268","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:49.687Z","created_at":"2024-09-17T17:47:49.687Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 389.935959ms + duration: 167.272459ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Fme0t6qWfn5xQTXd/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK/scim-configuration method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_Fme0t6qWfn5xQTXd","connection_name":"Test-Okta-Connection-1720167814","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-07-05T08:23:36.545Z","created_at":"2024-07-05T08:23:36.545Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_HmM2kAbnqOgiuOEK","connection_name":"Test-Okta-Connection-1726595268","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:49.687Z","created_at":"2024-09-17T17:47:49.687Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 357.953584ms + duration: 175.06125ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Fme0t6qWfn5xQTXd/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -142,7 +142,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 841.7285ms + duration: 161.214084ms - id: 4 request: proto: HTTP/1.1 @@ -160,8 +160,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Fme0t6qWfn5xQTXd + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK method: DELETE response: proto: HTTP/2.0 @@ -171,10 +171,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:23:38.113Z"}' + body: '{"deleted_at":"2024-09-17T17:47:50.181Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 376.916458ms + duration: 153.662958ms diff --git a/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml b/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml index b3d7b5ac..9cc09721 100644 --- a/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml +++ b/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167818","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-1726595270","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_XIM32D2aTcQkfupC","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-1720167818","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167818"]}' + body: '{"id":"con_dyIIbRP9oUBz8rG8","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595270","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595270","enabled_clients":[],"realms":["Test-Okta-Connection-1726595270"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 484.547541ms + duration: 6.097959292s - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XIM32D2aTcQkfupC/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_XIM32D2aTcQkfupC","connection_name":"Test-Okta-Connection-1720167818","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:23:39.001Z","created_at":"2024-07-05T08:23:39.001Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_dyIIbRP9oUBz8rG8","connection_name":"Test-Okta-Connection-1726595270","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:56.466Z","created_at":"2024-09-17T17:47:56.466Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 816.32725ms + duration: 178.338334ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XIM32D2aTcQkfupC/scim-configuration/default-mapping + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8/scim-configuration/default-mapping method: GET response: proto: HTTP/2.0 @@ -107,7 +107,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 946.554166ms + duration: 180.756375ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XIM32D2aTcQkfupC/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -142,7 +142,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 545.354042ms + duration: 153.692459ms - id: 4 request: proto: HTTP/1.1 @@ -160,8 +160,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XIM32D2aTcQkfupC + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8 method: DELETE response: proto: HTTP/2.0 @@ -171,10 +171,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:23:41.284Z"}' + body: '{"deleted_at":"2024-09-17T17:47:56.950Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 403.962875ms + duration: 167.385333ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml new file mode 100644 index 00000000..fae07906 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml @@ -0,0 +1,109 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2242 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-ADFS-Connection-1726595088","strategy":"adfs","options":{"strategy_version":2,"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: + - application/json + User-Agent: + - Go-Auth0/1.10.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: -1 + uncompressed: false + body: '{"id":"con_h3NFoUAslKTXXuvL","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/4aiz5zlT","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 174.077209ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h3NFoUAslKTXXuvL + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_h3NFoUAslKTXXuvL","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/4aiz5zlT","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 147.678625ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h3NFoUAslKTXXuvL + 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-09-17T17:46:56.780Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 148.356666ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml new file mode 100644 index 00000000..21b9888c --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml @@ -0,0 +1,109 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 147 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AD-Connection-1726595088","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.10.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: 428 + uncompressed: false + body: '{"id":"con_hLVQsS4CXvWI7cC3","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/Um5kadL1OGvOsIrsBVHJupeLGJV0Eck8","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 161.09825ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hLVQsS4CXvWI7cC3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_hLVQsS4CXvWI7cC3","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/Um5kadL1OGvOsIrsBVHJupeLGJV0Eck8","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 145.719917ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hLVQsS4CXvWI7cC3 + 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-09-17T17:46:56.305Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 146.978041ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml new file mode 100644 index 00000000..817502ee --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml @@ -0,0 +1,109 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 153 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Auth0-Connection-1726595088","strategy":"auth0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.10.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: 577 + uncompressed: false + body: '{"id":"con_rlXZRYOJvQfDINpE","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 159.833792ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rlXZRYOJvQfDINpE + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_rlXZRYOJvQfDINpE","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 148.078625ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rlXZRYOJvQfDINpE + 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-09-17T17:46:48.790Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 157.674625ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml new file mode 100644 index 00000000..d16e984e --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml @@ -0,0 +1,109 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 277 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AzureAD-Connection-1726595088","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.10.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: -1 + uncompressed: false + body: '{"id":"con_4LzNEVYBZbT2XF4u","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/LvjGUWVG","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 379.116958ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4LzNEVYBZbT2XF4u + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_4LzNEVYBZbT2XF4u","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/LvjGUWVG","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 142.486542ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4LzNEVYBZbT2XF4u + 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-09-17T17:46:55.796Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 230.650083ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml new file mode 100644 index 00000000..178cd9d6 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml @@ -0,0 +1,109 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1987 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-SAML-Connection-1726595088","strategy":"samlp","options":{"strategy_version":2,"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: + - application/json + User-Agent: + - Go-Auth0/1.10.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: -1 + uncompressed: false + body: '{"id":"con_OEZQPorl8TRaHgvq","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/dzgbj6jy","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 188.586625ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OEZQPorl8TRaHgvq + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_OEZQPorl8TRaHgvq","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/dzgbj6jy","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 149.288584ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OEZQPorl8TRaHgvq + 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-09-17T17:46:55.087Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 154.420167ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml new file mode 100644 index 00000000..c16d3193 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml @@ -0,0 +1,109 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 165 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-WindowsLive-Connection-1726595088","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.10.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: 319 + uncompressed: false + body: '{"id":"con_Q956LHcmOwWDtjLo","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 166.85825ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q956LHcmOwWDtjLo + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_Q956LHcmOwWDtjLo","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 5.289320084s + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q956LHcmOwWDtjLo + 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-09-17T17:47:02.393Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 150.689417ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml new file mode 100644 index 00000000..34839132 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml @@ -0,0 +1,109 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 238 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress","options":{"strategy_version":2,"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.10.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: 363 + uncompressed: false + body: '{"id":"con_5YX5x8kpVhK9eHZp","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 172.113209ms + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5YX5x8kpVhK9eHZp + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_5YX5x8kpVhK9eHZp","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 5.462482292s + - 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.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5YX5x8kpVhK9eHZp + 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-09-17T17:46:54.588Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 157.114375ms 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 fc5556c3..0180a31b 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714473349","strategy":"ad"} + {"name":"Test-AD-Connection-1726595088","strategy":"ad"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,33 @@ interactions: trailer: {} content_length: 350 uncompressed: false - 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"]}' + body: '{"id":"con_1nxY2ZY7qnsCWUkU","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/7z4StG0KVtlhq1a0c8euETROwe5v7cHB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 344.410334ms + duration: 320.562083ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 71 + content_length: 92 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} 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_2Q6DiHDd5tthYU7j + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_1nxY2ZY7qnsCWUkU method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_1nxY2ZY7qnsCWUkU","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/7z4StG0KVtlhq1a0c8euETROwe5v7cHB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 448.570083ms + duration: 164.154416ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_1nxY2ZY7qnsCWUkU method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_1nxY2ZY7qnsCWUkU","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/7z4StG0KVtlhq1a0c8euETROwe5v7cHB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 322.231792ms + duration: 150.31375ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_1nxY2ZY7qnsCWUkU method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:02.434Z"}' + body: '{"deleted_at":"2024-09-17T17:47:20.008Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 337.959166ms + duration: 153.894625ms 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 bbf013f0..110c4c46 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714473349","strategy":"apple"} + {"name":"Test-Apple-Connection-1726595088","strategy":"apple"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 199 uncompressed: false - body: '{"id":"con_k450HrzoSZun0qqi","options":{},"strategy":"apple","name":"Test-Apple-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473349"]}' + body: '{"id":"con_CIOwoW7O5IhE4iQq","options":{},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 348.921709ms + duration: 182.851917ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CIOwoW7O5IhE4iQq method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_CIOwoW7O5IhE4iQq","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 355.444708ms + duration: 159.023542ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CIOwoW7O5IhE4iQq method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_CIOwoW7O5IhE4iQq","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 529.399083ms + duration: 140.876958ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CIOwoW7O5IhE4iQq method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:11.640Z"}' + body: '{"deleted_at":"2024-09-17T17:47:21.315Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 407.669792ms + duration: 154.759ms 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 f53ca056..7a5bdfa7 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714473349","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1726595088","strategy":"auth0"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,33 @@ interactions: trailer: {} content_length: 520 uncompressed: false - 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"]}' + body: '{"id":"con_TiIvfWqZeZnGmqtr","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.054093916s + duration: 176.620625ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 71 + content_length: 92 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} 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_g2D8xIh9FP73ayJ5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TiIvfWqZeZnGmqtr method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_TiIvfWqZeZnGmqtr","options":{"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 368.411333ms + duration: 165.923917ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TiIvfWqZeZnGmqtr method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_TiIvfWqZeZnGmqtr","options":{"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 339.03675ms + duration: 140.687542ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TiIvfWqZeZnGmqtr method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:52.002Z"}' + body: '{"deleted_at":"2024-09-17T17:47:03.036Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.445791ms + duration: 160.28875ms 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 09b47c07..d2847d61 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714473349","strategy":"sms"} + {"name":"Test-Custom-SMS-Connection-1726595088","strategy":"sms"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 236 uncompressed: false - 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"]}' + body: '{"id":"con_6nXMcr8FrVXL6rOl","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 381.738375ms + duration: 157.502ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6nXMcr8FrVXL6rOl method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_6nXMcr8FrVXL6rOl","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 340.817625ms + duration: 163.307208ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6nXMcr8FrVXL6rOl method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_6nXMcr8FrVXL6rOl","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 370.793583ms + duration: 6.28688575s - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6nXMcr8FrVXL6rOl method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:00.992Z"}' + body: '{"deleted_at":"2024-09-17T17:47:19.217Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 329.6475ms + duration: 164.681209ms 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 bf98a1a3..084ee655 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714473349","strategy":"email"} + {"name":"Test-Email-Connection-1726595088","strategy":"email"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 228 uncompressed: false - 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"]}' + body: '{"id":"con_vBrDhUIeG45G3IyF","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.44075ms + duration: 158.884709ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vBrDhUIeG45G3IyF method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_vBrDhUIeG45G3IyF","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.085708ms + duration: 157.582625ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vBrDhUIeG45G3IyF method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_vBrDhUIeG45G3IyF","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.385125ms + duration: 148.1105ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vBrDhUIeG45G3IyF method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:57.911Z"}' + body: '{"deleted_at":"2024-09-17T17:47:11.803Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 408.627375ms + duration: 147.989125ms 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 d1609388..a0fcf038 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714473349","strategy":"facebook"} + {"name":"Test-Facebook-Connection-1726595088","strategy":"facebook"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 218 uncompressed: false - body: '{"id":"con_XjRQTRVnj4CIqfZt","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473349"]}' + body: '{"id":"con_tCFmm43ebjAuNRRb","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 337.285667ms + duration: 171.137834ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tCFmm43ebjAuNRRb method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_tCFmm43ebjAuNRRb","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 344.148833ms + duration: 189.202833ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tCFmm43ebjAuNRRb method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_tCFmm43ebjAuNRRb","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.207875ms + duration: 136.9205ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tCFmm43ebjAuNRRb method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:10.070Z"}' + body: '{"deleted_at":"2024-09-17T17:47:20.669Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 6.617861667s + duration: 146.953583ms 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 4da435d5..13d6302b 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714473349","strategy":"github"} + {"name":"Test-GitHub-Connection-1726595088","strategy":"github"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 212 uncompressed: false - body: '{"id":"con_QPtYW1u27Q3RfX0g","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473349"]}' + body: '{"id":"con_NSZ28v2RTUzeS3fs","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 328.446541ms + duration: 157.725875ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_NSZ28v2RTUzeS3fs method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_NSZ28v2RTUzeS3fs","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 365.121542ms + duration: 155.892416ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_NSZ28v2RTUzeS3fs method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_NSZ28v2RTUzeS3fs","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.684084ms + duration: 145.221833ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_NSZ28v2RTUzeS3fs method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:14.717Z"}' + body: '{"deleted_at":"2024-09-17T17:47:28.717Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 381.227416ms + duration: 158.588875ms 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 fca9c1ad..4fe39e56 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714473349","strategy":"google-apps"} + {"name":"Test-GoogleApps-Connection-1726595088","strategy":"google-apps"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 439 uncompressed: false - 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"]}' + body: '{"id":"con_vJM4WpsKEHGDwiSq","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/iaO88HrR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 391.310542ms + duration: 6.330476375s - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vJM4WpsKEHGDwiSq method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_vJM4WpsKEHGDwiSq","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/iaO88HrR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 400.50175ms + duration: 214.329334ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vJM4WpsKEHGDwiSq method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_vJM4WpsKEHGDwiSq","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/iaO88HrR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 311.666334ms + duration: 139.457583ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vJM4WpsKEHGDwiSq method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:56.278Z"}' + body: '{"deleted_at":"2024-09-17T17:47:11.184Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 403.222958ms + duration: 150.057292ms 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 01020061..55efa4cd 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714473349","strategy":"google-oauth2"} + {"name":"Test-GoogleOAuth2-Connection-1726595088","strategy":"google-oauth2"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 276 uncompressed: false - 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"]}' + body: '{"id":"con_Q5REJKnadR6JQgop","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 340.064417ms + duration: 154.319375ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q5REJKnadR6JQgop method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_Q5REJKnadR6JQgop","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 351.209042ms + duration: 165.195958ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q5REJKnadR6JQgop method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_Q5REJKnadR6JQgop","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 315.872458ms + duration: 187.493209ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q5REJKnadR6JQgop method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:54.852Z"}' + body: '{"deleted_at":"2024-09-17T17:47:04.339Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 318.002208ms + duration: 155.234916ms 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 58f33257..2052209a 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714473349","strategy":"linkedin"} + {"name":"Test-LinkedIn-Connection-1726595088","strategy":"linkedin"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,33 @@ interactions: trailer: {} content_length: 249 uncompressed: false - 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"]}' + body: '{"id":"con_QM7CLbgaiNG7jIa2","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 325.509792ms + duration: 6.306040542s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 71 + content_length: 92 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} 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_CcU6SfOpsnaSg7Sd + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QM7CLbgaiNG7jIa2 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_QM7CLbgaiNG7jIa2","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 388.11225ms + duration: 170.621958ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QM7CLbgaiNG7jIa2 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_QM7CLbgaiNG7jIa2","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 511.497042ms + duration: 147.257ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QM7CLbgaiNG7jIa2 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:13.275Z"}' + body: '{"deleted_at":"2024-09-17T17:47:28.092Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 326.123125ms + duration: 151.005334ms 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 940968d9..f5dde753 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714473349","strategy":"sms"} + {"name":"Test-SMS-Connection-1726595088","strategy":"sms"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 222 uncompressed: false - 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"]}' + body: '{"id":"con_Tbw9YGAl7knzO1F7","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 407.244792ms + duration: 167.48775ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Tbw9YGAl7knzO1F7 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_Tbw9YGAl7knzO1F7","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 408.142209ms + duration: 160.859542ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Tbw9YGAl7knzO1F7 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_Tbw9YGAl7knzO1F7","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.7815ms + duration: 152.340334ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Tbw9YGAl7knzO1F7 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:59.560Z"}' + body: '{"deleted_at":"2024-09-17T17:47:12.434Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 335.282125ms + duration: 158.776209ms 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 ecef6063..118b4bf9 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714473349","strategy":"salesforce"} + {"name":"Test-SalesForce-Connection-1726595088","strategy":"salesforce"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 224 uncompressed: false - body: '{"id":"con_J8nYaGeXEjgiGMN8","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473349"]}' + body: '{"id":"con_dls91rqueXVwDQBm","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.308375ms + duration: 157.587541ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dls91rqueXVwDQBm method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_dls91rqueXVwDQBm","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 326.621541ms + duration: 154.640375ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dls91rqueXVwDQBm method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_dls91rqueXVwDQBm","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 316.0715ms + duration: 6.275512125s - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dls91rqueXVwDQBm method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:17.453Z"}' + body: '{"deleted_at":"2024-09-17T17:47:36.100Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 339.649ms + duration: 154.93ms 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 296c5480..56a2f929 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,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714473349","strategy":"windowslive"} + {"name":"Test-WindowsLive-Connection-1726595088","strategy":"windowslive"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,33 @@ interactions: trailer: {} content_length: 252 uncompressed: false - 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"]}' + body: '{"id":"con_zrMXwRWorvk2BJ6H","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 323.031542ms + duration: 165.120208ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 71 + content_length: 92 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} 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_nOGF5qjtHo2hxbMa + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zrMXwRWorvk2BJ6H method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_zrMXwRWorvk2BJ6H","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 326.617625ms + duration: 163.205542ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zrMXwRWorvk2BJ6H method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - 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"]}' + body: '{"id":"con_zrMXwRWorvk2BJ6H","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 400.32ms + duration: 151.56725ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zrMXwRWorvk2BJ6H method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:36:16.145Z"}' + body: '{"deleted_at":"2024-09-17T17:47:29.357Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 324.35775ms + duration: 151.010459ms 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 index 5190fa97..18244e97 100644 --- 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 @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Wordpress-Connection-1714473349","strategy":"wordpress"} + {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,33 @@ interactions: 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"]}' + body: '{"id":"con_zavCiT1Q6j3gVoLz","options":{"profile":true,"scope":["profile"]},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 418.796333ms + duration: 155.3745ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 148 + content_length: 169 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"]}} + {"options":{"strategy_version":2,"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 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zavCiT1Q6j3gVoLz method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: 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"]}' + body: '{"id":"con_zavCiT1Q6j3gVoLz","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null,"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 339.303333ms + duration: 168.240041ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zavCiT1Q6j3gVoLz method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: 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"]}' + body: '{"id":"con_zavCiT1Q6j3gVoLz","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 426.611125ms + duration: 146.678666ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zavCiT1Q6j3gVoLz method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-30T10:35:53.524Z"}' + body: '{"deleted_at":"2024-09-17T17:47:03.674Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.965625ms + duration: 154.796167ms diff --git a/test/data/recordings/TestConnectionManager_UpdateSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_UpdateSCIMConfiguration.yaml index 87568cdb..58b0ab99 100644 --- a/test/data/recordings/TestConnectionManager_UpdateSCIMConfiguration.yaml +++ b/test/data/recordings/TestConnectionManager_UpdateSCIMConfiguration.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1720167775","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-1726595265","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: - application/json User-Agent: - - Go-Auth0/1.7.0 + - Go-Auth0/1.10.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_i41HtvV1tONN0VKC","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-1720167775","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1720167775"]}' + body: '{"id":"con_qnsZ4BodEsoptC6S","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595265","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595265","enabled_clients":[],"realms":["Test-Okta-Connection-1726595265"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.10321925s + duration: 718.536417ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i41HtvV1tONN0VKC/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qnsZ4BodEsoptC6S/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_i41HtvV1tONN0VKC","connection_name":"Test-Okta-Connection-1720167775","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-07-05T08:22:56.846Z","created_at":"2024-07-05T08:22:56.846Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_qnsZ4BodEsoptC6S","connection_name":"Test-Okta-Connection-1726595265","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:46.328Z","created_at":"2024-09-17T17:47:46.328Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 403.439583ms + duration: 189.8925ms - id: 2 request: proto: HTTP/1.1 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i41HtvV1tONN0VKC/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qnsZ4BodEsoptC6S/scim-configuration method: PATCH response: proto: HTTP/2.0 @@ -102,13 +102,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_i41HtvV1tONN0VKC","connection_name":"Test-Okta-Connection-1720167775","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-07-05T08:22:57.242Z","created_at":"2024-07-05T08:22:56.846Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_qnsZ4BodEsoptC6S","connection_name":"Test-Okta-Connection-1726595265","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:46.500Z","created_at":"2024-09-17T17:47:46.328Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 396.691583ms + duration: 160.525042ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +126,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i41HtvV1tONN0VKC/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qnsZ4BodEsoptC6S/scim-configuration method: GET response: proto: HTTP/2.0 @@ -137,13 +137,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_i41HtvV1tONN0VKC","connection_name":"Test-Okta-Connection-1720167775","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-07-05T08:22:57.242Z","created_at":"2024-07-05T08:22:56.846Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_qnsZ4BodEsoptC6S","connection_name":"Test-Okta-Connection-1726595265","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:46.500Z","created_at":"2024-09-17T17:47:46.328Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 679.696292ms + duration: 157.479ms - id: 4 request: proto: HTTP/1.1 @@ -161,8 +161,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i41HtvV1tONN0VKC/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qnsZ4BodEsoptC6S/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 385.37525ms + duration: 188.416875ms - id: 5 request: proto: HTTP/1.1 @@ -196,8 +196,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i41HtvV1tONN0VKC/scim-configuration + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qnsZ4BodEsoptC6S/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -213,7 +213,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 538.981417ms + duration: 152.863ms - id: 6 request: proto: HTTP/1.1 @@ -231,8 +231,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.7.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i41HtvV1tONN0VKC + - Go-Auth0/1.10.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qnsZ4BodEsoptC6S method: DELETE response: proto: HTTP/2.0 @@ -242,10 +242,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-07-05T08:22:59.222Z"}' + body: '{"deleted_at":"2024-09-17T17:47:47.152Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 373.156709ms + duration: 152.942459ms From 0338b0ef2b8d314eb31522950c91f15c9a5cc9ee Mon Sep 17 00:00:00 2001 From: "A. Craig West" Date: Wed, 18 Sep 2024 10:18:25 -0400 Subject: [PATCH 3/4] clean up strategy_version test --- management/connection_test.go | 65 ++++------- ...n_successfully_read_a_ADFS_Connection.yaml | 22 ++-- ...can_successfully_read_a_AD_Connection.yaml | 30 ++--- ..._successfully_read_a_Apple_Connection.yaml | 24 ++-- ..._successfully_read_a_Auth0_Connection.yaml | 24 ++-- ...ccessfully_read_a_Azure-AD_Connection.yaml | 30 ++--- ...essfully_read_a_Custom_SMS_Connection.yaml | 24 ++-- ..._successfully_read_a_Email_Connection.yaml | 30 ++--- ...ccessfully_read_a_Facebook_Connection.yaml | 30 ++--- ...successfully_read_a_GitHub_Connection.yaml | 22 ++-- ...essfully_read_a_GoogleApps_Connection.yaml | 24 ++-- ...sfully_read_a_GoogleOAuth2_Connection.yaml | 24 ++-- ...ccessfully_read_a_LinkedIn_Connection.yaml | 30 ++--- ...n_successfully_read_a_OIDC_Connection.yaml | 24 ++-- ...n_successfully_read_a_Okta_Connection.yaml | 30 ++--- ...fully_read_a_Ping_Federate_Connection.yaml | 30 ++--- ...n_successfully_read_a_SAML_Connection.yaml | 24 ++-- ...an_successfully_read_a_SMS_Connection.yaml | 24 ++-- ...essfully_read_a_SalesForce_Connection.yaml | 24 ++-- ...ssfully_read_a_WindowsLive_Connection.yaml | 30 ++--- ...cessfully_read_a_Wordpress_Connection.yaml | 30 ++--- ...ly_find_a_ADFS_Connection_by_its_name.yaml | 24 ++-- ...ully_find_a_AD_Connection_by_its_name.yaml | 30 ++--- ...y_find_a_Apple_Connection_by_its_name.yaml | 30 ++--- ...y_find_a_Auth0_Connection_by_its_name.yaml | 24 ++-- ...ind_a_Azure-AD_Connection_by_its_name.yaml | 24 ++-- ...d_a_Custom_SMS_Connection_by_its_name.yaml | 24 ++-- ...y_find_a_Email_Connection_by_its_name.yaml | 24 ++-- ...ind_a_Facebook_Connection_by_its_name.yaml | 24 ++-- ..._find_a_GitHub_Connection_by_its_name.yaml | 30 ++--- ...d_a_GoogleApps_Connection_by_its_name.yaml | 30 ++--- ...a_GoogleOAuth2_Connection_by_its_name.yaml | 30 ++--- ...ind_a_LinkedIn_Connection_by_its_name.yaml | 30 ++--- ...ly_find_a_OIDC_Connection_by_its_name.yaml | 30 ++--- ...ly_find_a_Okta_Connection_by_its_name.yaml | 24 ++-- ..._Ping_Federate_Connection_by_its_name.yaml | 24 ++-- ...ly_find_a_SAML_Connection_by_its_name.yaml | 24 ++-- ...lly_find_a_SMS_Connection_by_its_name.yaml | 30 ++--- ...d_a_SalesForce_Connection_by_its_name.yaml | 30 ++--- ..._a_WindowsLive_Connection_by_its_name.yaml | 24 ++-- ...nd_a_Wordpress_Connection_by_its_name.yaml | 30 ++--- ...nnectionManager_ReadSCIMConfiguration.yaml | 28 ++--- ...nManager_ReadSCIMDefaultConfiguration.yaml | 26 ++--- ...trategy_version_for_a_ADFS_Connection.yaml | 109 ------------------ ..._strategy_version_for_a_AD_Connection.yaml | 109 ------------------ ...rategy_version_for_a_Auth0_Connection.yaml | 109 ------------------ ...egy_version_for_a_Azure-AD_Connection.yaml | 109 ------------------ ...trategy_version_for_a_SAML_Connection.yaml | 109 ------------------ ..._version_for_a_WindowsLive_Connection.yaml | 109 ------------------ ...gy_version_for_a_Wordpress_Connection.yaml | 109 ------------------ 50 files changed, 587 insertions(+), 1365 deletions(-) delete mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml delete mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml delete mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml delete mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml delete mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml delete mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml delete mode 100644 test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml diff --git a/management/connection_test.go b/management/connection_test.go index 5f0c92c6..a3ba4853 100644 --- a/management/connection_test.go +++ b/management/connection_test.go @@ -778,6 +778,10 @@ func TestConnectionManager_Read(t *testing.T) { assert.Equal(t, expectedConnection.GetName(), actualConnection.GetName()) assert.Equal(t, expectedConnection.GetStrategy(), actualConnection.GetStrategy()) assert.IsType(t, testCase.options, actualConnection.Options) + switch testCase.connection.GetStrategy() { + case "ad", "adfs", "auth0", "samlp", "waad", "windowslive", "wordpress": + assert.ObjectsAreEqualValues(getStrategyVersion(testCase.connection.GetStrategy(), testCase.options), getStrategyVersion(actualConnection.GetStrategy(), actualConnection.Options)) + } t.Cleanup(func() { cleanupConnection(t, expectedConnection.GetID()) @@ -786,6 +790,27 @@ func TestConnectionManager_Read(t *testing.T) { } } +func getStrategyVersion(strategy string, options interface{}) int { + switch strategy { + case "ad": + return options.(*ConnectionOptionsAD).GetStrategyVersion() + case "adfs": + return options.(*ConnectionOptionsADFS).GetStrategyVersion() + case "auth0": + return options.(*ConnectionOptions).GetStrategyVersion() + case "samlp": + return options.(*ConnectionOptionsSAML).GetStrategyVersion() + case "waad": + return options.(*ConnectionOptionsAzureAD).GetStrategyVersion() + case "windowslive": + return options.(*ConnectionOptionsWindowsLive).GetStrategyVersion() + case "wordpress": + return options.(*ConnectionOptionsOAuth2).GetStrategyVersion() + default: + return -1 + } +} + func TestConnectionManager_ReadByName(t *testing.T) { for _, testCase := range connectionTestCases { t.Run("It can successfully find a "+testCase.name+" by its name", func(t *testing.T) { @@ -815,46 +840,6 @@ func TestConnectionManager_ReadByName(t *testing.T) { }) } -func TestConnectionManager_ReadStrategyVersion(t *testing.T) { - for _, testCase := range connectionTestCases { - t.Run("It can successfully read the strategy_version for a "+testCase.name, func(t *testing.T) { - switch testCase.connection.GetStrategy() { - case "ad", "adfs", "auth0", "samlp", "waad", "windowslive", "wordpress": - configureHTTPTestRecordings(t) - - connection := givenAConnection(t, testCase) - - actualConnection, err := api.Connection.Read(context.Background(), connection.GetID()) - assert.NoError(t, err) - assert.ObjectsAreEqualValues(getStrategyVersion(testCase.connection.GetStrategy(), testCase.options), getStrategyVersion(actualConnection.GetStrategy(), actualConnection.Options)) - default: - t.Skip("Skipping for connections which don't support strategy_version") - } - }) - } -} - -func getStrategyVersion(strategy string, options interface{}) int { - switch strategy { - case "ad": - return options.(*ConnectionOptionsAD).GetStrategyVersion() - case "adfs": - return options.(*ConnectionOptionsADFS).GetStrategyVersion() - case "auth0": - return options.(*ConnectionOptions).GetStrategyVersion() - case "samlp": - return options.(*ConnectionOptionsSAML).GetStrategyVersion() - case "waad": - return options.(*ConnectionOptionsAzureAD).GetStrategyVersion() - case "windowslive": - return options.(*ConnectionOptionsWindowsLive).GetStrategyVersion() - case "wordpress": - return options.(*ConnectionOptionsOAuth2).GetStrategyVersion() - default: - return -1 - } -} - func TestConnectionManager_Update(t *testing.T) { for _, testCase := range connectionTestCases { t.Run("It can successfully update a "+testCase.name, func(t *testing.T) { 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 6453aa1a..e600daaf 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-1726595088","strategy":"adfs","options":{"strategy_version":2,"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-1726668924","strategy":"adfs","options":{"strategy_version":2,"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_07x6SZgphwv2j3P5","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/JEvTZjow","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' + body: '{"id":"con_NBlQqO6zGv8WDNpq","options":{"strategy_version":2,"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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/mjLGojar","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 176.340792ms + duration: 182.109ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_07x6SZgphwv2j3P5 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_NBlQqO6zGv8WDNpq method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_07x6SZgphwv2j3P5","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/JEvTZjow","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' + body: '{"id":"con_NBlQqO6zGv8WDNpq","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/mjLGojar","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 138.060042ms + duration: 148.32925ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_07x6SZgphwv2j3P5 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_NBlQqO6zGv8WDNpq method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:41.995Z"}' + body: '{"deleted_at":"2024-09-18T14:15:43.863Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 144.732958ms + duration: 145.144625ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_07x6SZgphwv2j3P5 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_NBlQqO6zGv8WDNpq method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 136.692667ms + duration: 6.284564125s 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 c41c4749..d23d5e23 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-1726595088","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1726668924","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 428 uncompressed: false - body: '{"id":"con_zjcdz5hb6eAnzgCi","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/AjqyByhxHmSAz7WEtEWzk383w84vPe2L","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' + body: '{"id":"con_la4gn6Ja7rpqB6Oq","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/4sTEmV84eqvqf6qLRqbmJ6fA2quYZzSu","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.319112s + duration: 187.763625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zjcdz5hb6eAnzgCi + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_la4gn6Ja7rpqB6Oq method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_zjcdz5hb6eAnzgCi","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/AjqyByhxHmSAz7WEtEWzk383w84vPe2L","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' + body: '{"id":"con_la4gn6Ja7rpqB6Oq","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/4sTEmV84eqvqf6qLRqbmJ6fA2quYZzSu","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 139.777ms + duration: 160.629125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zjcdz5hb6eAnzgCi + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_la4gn6Ja7rpqB6Oq method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:41.390Z"}' + body: '{"deleted_at":"2024-09-18T14:15:43.243Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 141.95625ms + duration: 156.621458ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zjcdz5hb6eAnzgCi + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_la4gn6Ja7rpqB6Oq 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-09-18T14:15:43.243Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 142.232584ms + status: 202 Accepted + code: 202 + duration: 140.676375ms 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 2c6c8f55..00776d8e 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-1726595088","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1726668924","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_JC09FdDYi9XIdU91","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' + body: '{"id":"con_19ppiLi06mJiACx6","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 168.791041ms + duration: 182.440875ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JC09FdDYi9XIdU91 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_19ppiLi06mJiACx6 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_JC09FdDYi9XIdU91","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' + body: '{"id":"con_19ppiLi06mJiACx6","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 5.321977208s + duration: 177.280875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JC09FdDYi9XIdU91 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_19ppiLi06mJiACx6 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:48.387Z"}' + body: '{"deleted_at":"2024-09-18T14:15:51.336Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 159.566917ms + duration: 150.500125ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JC09FdDYi9XIdU91 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_19ppiLi06mJiACx6 method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:48.387Z"}' + body: '{"deleted_at":"2024-09-18T14:15:51.336Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 149.891667ms + duration: 133.95275ms 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 69b7ab22..c8c63c48 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-1726595088","strategy":"auth0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1726668924","strategy":"auth0","options":{"strategy_version":2,"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_JpZYPZ2TYvCpBKLW","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' + body: '{"id":"con_npKrwR83EMGz74fb","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 164.498667ms + duration: 502.978417ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JpZYPZ2TYvCpBKLW + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_npKrwR83EMGz74fb method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_JpZYPZ2TYvCpBKLW","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' + body: '{"id":"con_npKrwR83EMGz74fb","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 154.157625ms + duration: 166.683292ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JpZYPZ2TYvCpBKLW + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_npKrwR83EMGz74fb method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:17.798Z"}' + body: '{"deleted_at":"2024-09-18T14:15:25.637Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 150.803416ms + duration: 194.578583ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JpZYPZ2TYvCpBKLW + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_npKrwR83EMGz74fb method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:17.798Z"}' + body: '{"deleted_at":"2024-09-18T14:15:25.637Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 139.194ms + duration: 157.442916ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml index a0fff5a3..235c37a8 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Azure-AD_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AzureAD-Connection-1726595088","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AzureAD-Connection-1726668924","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","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_eRuFxWWXo0YUX8vt","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/d2FV6Nyl","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + body: '{"id":"con_D4ETguSKpmG0dLcP","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/1fXc36cU","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726668924","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 417.393875ms + duration: 345.565083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRuFxWWXo0YUX8vt + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_D4ETguSKpmG0dLcP method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_eRuFxWWXo0YUX8vt","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/d2FV6Nyl","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + body: '{"id":"con_D4ETguSKpmG0dLcP","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/1fXc36cU","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726668924","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 141.457041ms + duration: 153.714041ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRuFxWWXo0YUX8vt + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_D4ETguSKpmG0dLcP method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:34.618Z"}' + body: '{"deleted_at":"2024-09-18T14:15:42.587Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 183.401916ms + duration: 162.590334ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRuFxWWXo0YUX8vt + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_D4ETguSKpmG0dLcP 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-09-17T17:45:34.618Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 148.242292ms + status: 204 No Content + code: 204 + duration: 137.986541ms 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 b49ce51e..7d5d18ef 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-1726595088","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-1726668924","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_5wGYm7sW63Jcn4Q8","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' + body: '{"id":"con_2eRZMqr3pecWOxjU","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 180.87925ms + duration: 177.598709ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5wGYm7sW63Jcn4Q8 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2eRZMqr3pecWOxjU method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_5wGYm7sW63Jcn4Q8","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' + body: '{"id":"con_2eRZMqr3pecWOxjU","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 149.415084ms + duration: 174.499667ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5wGYm7sW63Jcn4Q8 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2eRZMqr3pecWOxjU method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:33.100Z"}' + body: '{"deleted_at":"2024-09-18T14:15:35.844Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 152.399583ms + duration: 169.837917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5wGYm7sW63Jcn4Q8 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2eRZMqr3pecWOxjU method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:33.100Z"}' + body: '{"deleted_at":"2024-09-18T14:15:35.844Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 135.48ms + duration: 136.507584ms 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 17bd90fe..c988e6e9 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-1726595088","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-1726668924","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_eebaQLA9rRlaJFcK","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' + body: '{"id":"con_Ad2SWGopdAqRrNUt","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 168.982875ms + duration: 206.586417ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eebaQLA9rRlaJFcK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Ad2SWGopdAqRrNUt method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_eebaQLA9rRlaJFcK","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' + body: '{"id":"con_Ad2SWGopdAqRrNUt","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 151.100291ms + duration: 140.097ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eebaQLA9rRlaJFcK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Ad2SWGopdAqRrNUt method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:26.712Z"}' + body: '{"deleted_at":"2024-09-18T14:15:34.519Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 149.306708ms + duration: 162.130583ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eebaQLA9rRlaJFcK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Ad2SWGopdAqRrNUt 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-09-17T17:45:26.712Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 134.977333ms + status: 204 No Content + code: 204 + duration: 153.520834ms 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 621348d1..7ac099f7 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-1726595088","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1726668924","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_VrluQQq6uPePJUGx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' + body: '{"id":"con_4MLCIckNPVhK7ZZj","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 158.394417ms + duration: 199.471375ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VrluQQq6uPePJUGx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4MLCIckNPVhK7ZZj method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_VrluQQq6uPePJUGx","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' + body: '{"id":"con_4MLCIckNPVhK7ZZj","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 139.765125ms + duration: 163.898ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VrluQQq6uPePJUGx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4MLCIckNPVhK7ZZj method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:42.588Z"}' + body: '{"deleted_at":"2024-09-18T14:15:50.673Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 151.526667ms + duration: 159.386208ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VrluQQq6uPePJUGx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4MLCIckNPVhK7ZZj 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-09-17T17:45:42.588Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 144.102875ms + status: 204 No Content + code: 204 + duration: 134.974167ms 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 75ad8c25..8cd1ea19 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-1726595088","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1726668924","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_9mkJUcH1IhwtYcX3","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' + body: '{"id":"con_MGJmTeEcEUyrBnPc","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 160.640667ms + duration: 174.055875ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9mkJUcH1IhwtYcX3 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MGJmTeEcEUyrBnPc method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_9mkJUcH1IhwtYcX3","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' + body: '{"id":"con_MGJmTeEcEUyrBnPc","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 144.361667ms + duration: 6.316825459s - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9mkJUcH1IhwtYcX3 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MGJmTeEcEUyrBnPc method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:49.616Z"}' + body: '{"deleted_at":"2024-09-18T14:15:58.758Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 153.612958ms + duration: 153.937958ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9mkJUcH1IhwtYcX3 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MGJmTeEcEUyrBnPc method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 138.470333ms + duration: 143.506416ms 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 44d67dd5..0be8e520 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-1726595088","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-1726668924","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_k0j4iRUEmKf26whF","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/YeMWaaPR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' + body: '{"id":"con_ENXr7lqRHaN8oVhI","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-1726668924","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/dUxjUE7D","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 199.84ms + duration: 236.504792ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k0j4iRUEmKf26whF + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ENXr7lqRHaN8oVhI method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_k0j4iRUEmKf26whF","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/YeMWaaPR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' + body: '{"id":"con_ENXr7lqRHaN8oVhI","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-1726668924","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/dUxjUE7D","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 148.9545ms + duration: 165.954459ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k0j4iRUEmKf26whF + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ENXr7lqRHaN8oVhI method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:26.084Z"}' + body: '{"deleted_at":"2024-09-18T14:15:33.844Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 164.187167ms + duration: 6.310488667s - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k0j4iRUEmKf26whF + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ENXr7lqRHaN8oVhI method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:26.084Z"}' + body: '{"deleted_at":"2024-09-18T14:15:33.844Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 144.6655ms + duration: 154.540084ms 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 07a805e0..8249f1bc 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-1726595088","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-1726668924","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_LohR1kRtXn887Bub","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' + body: '{"id":"con_tm6iXoupTEVNhePQ","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.327143875s + duration: 166.204ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LohR1kRtXn887Bub + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tm6iXoupTEVNhePQ method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_LohR1kRtXn887Bub","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' + body: '{"id":"con_tm6iXoupTEVNhePQ","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 153.609458ms + duration: 168.92ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LohR1kRtXn887Bub + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tm6iXoupTEVNhePQ method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:25.426Z"}' + body: '{"deleted_at":"2024-09-18T14:15:26.984Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 346.151084ms + duration: 166.966083ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LohR1kRtXn887Bub + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tm6iXoupTEVNhePQ method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:25.426Z"}' + body: '{"deleted_at":"2024-09-18T14:15:26.984Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 138.589666ms + duration: 141.954333ms 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 eecbb287..b85cc643 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-1726595088","strategy":"linkedin","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1726668924","strategy":"linkedin","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 326 uncompressed: false - body: '{"id":"con_Vt6Lqon2PcGWzFdb","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' + body: '{"id":"con_WhpVcwgs0GetZQeV","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 164.77075ms + duration: 164.137ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Vt6Lqon2PcGWzFdb + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_WhpVcwgs0GetZQeV method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Vt6Lqon2PcGWzFdb","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' + body: '{"id":"con_WhpVcwgs0GetZQeV","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.779667ms + duration: 161.367292ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Vt6Lqon2PcGWzFdb + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_WhpVcwgs0GetZQeV method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:49.009Z"}' + body: '{"deleted_at":"2024-09-18T14:15:51.968Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 152.93775ms + duration: 175.8705ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Vt6Lqon2PcGWzFdb + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_WhpVcwgs0GetZQeV 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-09-18T14:15:51.968Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 148.688875ms + status: 202 Accepted + code: 202 + duration: 136.774583ms 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 e731c065..06d67c1d 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-1726595088","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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-1726668924","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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: -1 uncompressed: false - body: '{"id":"con_8Vmyd1y12dwouhKa","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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":"https://api.paypal.com/v1/oauth2/token/userinfo","token_endpoint":"https://api.paypal.com/v1/oauth2/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://www.paypal.com","authorization_endpoint":"https://www.paypal.com/signin/authorize","registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","token_endpoint":"https://api.paypal.com/v1/oauth2/token","userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","token_endpoint_auth_methods_supported":["client_secret_basic"],"response_types_supported":["code","code id_token"],"response_modes_supported":["query","form_post"],"grant_types_supported":["authorization_code","refresh_token"],"subject_types_supported":["pairwise"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"id_token_signing_alg_values_supported":["HS256","RS256"],"claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"code_challenge_methods_supported":["RS256","ES256","S256"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","attribute_map":{"mapping_mode":"bind_all"},"connection_settings":{"pkce":"auto"}},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","enabled_clients":[],"realms":["Test-OIDC-Connection-1726595088"]}' + body: '{"id":"con_v1kpo9XXXlBvATlQ","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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":"https://api.paypal.com/v1/oauth2/token/userinfo","token_endpoint":"https://api.paypal.com/v1/oauth2/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://www.paypal.com","authorization_endpoint":"https://www.paypal.com/signin/authorize","registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","token_endpoint":"https://api.paypal.com/v1/oauth2/token","userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","token_endpoint_auth_methods_supported":["client_secret_basic"],"response_types_supported":["code","code id_token"],"response_modes_supported":["query","form_post"],"grant_types_supported":["authorization_code","refresh_token"],"subject_types_supported":["pairwise"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"id_token_signing_alg_values_supported":["HS256","RS256"],"claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"code_challenge_methods_supported":["RS256","ES256","S256"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","attribute_map":{"mapping_mode":"bind_all"},"connection_settings":{"pkce":"auto"}},"strategy":"oidc","name":"Test-OIDC-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726668924","enabled_clients":[],"realms":["Test-OIDC-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 326.883208ms + duration: 351.345583ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8Vmyd1y12dwouhKa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_v1kpo9XXXlBvATlQ method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_8Vmyd1y12dwouhKa","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"bind_all"},"discovery_url":"https://www.paypalobjects.com/.well-known/openid-configuration","oidc_metadata":{"issuer":"https://www.paypal.com","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","token_endpoint":"https://api.paypal.com/v1/oauth2/token","claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","grant_types_supported":["authorization_code","refresh_token"],"registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","authorization_endpoint":"https://www.paypal.com/signin/authorize","subject_types_supported":["pairwise"],"response_modes_supported":["query","form_post"],"response_types_supported":["code","code id_token"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"code_challenge_methods_supported":["RS256","ES256","S256"],"require_request_uri_registration":false,"id_token_signing_alg_values_supported":["HS256","RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic"]},"schema_version":"oidc-V4","token_endpoint":"https://api.paypal.com/v1/oauth2/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","enabled_clients":[],"realms":["Test-OIDC-Connection-1726595088"]}' + body: '{"id":"con_v1kpo9XXXlBvATlQ","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"bind_all"},"discovery_url":"https://www.paypalobjects.com/.well-known/openid-configuration","oidc_metadata":{"issuer":"https://www.paypal.com","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","token_endpoint":"https://api.paypal.com/v1/oauth2/token","claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","grant_types_supported":["authorization_code","refresh_token"],"registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","authorization_endpoint":"https://www.paypal.com/signin/authorize","subject_types_supported":["pairwise"],"response_modes_supported":["query","form_post"],"response_types_supported":["code","code id_token"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"code_challenge_methods_supported":["RS256","ES256","S256"],"require_request_uri_registration":false,"id_token_signing_alg_values_supported":["HS256","RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic"]},"schema_version":"oidc-V4","token_endpoint":"https://api.paypal.com/v1/oauth2/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726668924","enabled_clients":[],"realms":["Test-OIDC-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 150.11725ms + duration: 205.946917ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8Vmyd1y12dwouhKa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_v1kpo9XXXlBvATlQ method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:57.804Z"}' + body: '{"deleted_at":"2024-09-18T14:16:00.969Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 154.449417ms + duration: 156.317708ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8Vmyd1y12dwouhKa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_v1kpo9XXXlBvATlQ method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:57.804Z"}' + body: '{"deleted_at":"2024-09-18T14:16:00.969Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 130.289708ms + duration: 134.368125ms 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 07a55462..e768ab96 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-1726595088","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-1726668924","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_eRq8Qk1yoyUYnOdS","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","enabled_clients":[],"realms":["Test-Okta-Connection-1726595088"]}' + body: '{"id":"con_QvXxLJPoU2FDvQSI","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726668924","enabled_clients":[],"realms":["Test-Okta-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 855.144709ms + duration: 7.073561875s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRq8Qk1yoyUYnOdS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QvXxLJPoU2FDvQSI method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_eRq8Qk1yoyUYnOdS","options":{"type":"back_channel","scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"basic_profile"},"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"],"claims_parameter_supported":false,"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","request_uri_parameter_supported":false,"code_challenge_methods_supported":["S256"],"require_request_uri_registration":false,"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"]},"schema_version":"oidc-V4","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","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","enabled_clients":[],"realms":["Test-Okta-Connection-1726595088"]}' + body: '{"id":"con_QvXxLJPoU2FDvQSI","options":{"type":"back_channel","scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"basic_profile"},"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"],"claims_parameter_supported":false,"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","request_uri_parameter_supported":false,"code_challenge_methods_supported":["S256"],"require_request_uri_registration":false,"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"]},"schema_version":"oidc-V4","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","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"okta","name":"Test-Okta-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726668924","enabled_clients":[],"realms":["Test-Okta-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 157.999875ms + duration: 161.174666ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRq8Qk1yoyUYnOdS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QvXxLJPoU2FDvQSI method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:59.112Z"}' + body: '{"deleted_at":"2024-09-18T14:16:08.510Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 158.579583ms + duration: 163.056791ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eRq8Qk1yoyUYnOdS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QvXxLJPoU2FDvQSI 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-09-17T17:45:59.112Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 139.144167ms + status: 204 No Content + code: 204 + duration: 470.692292ms 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 b42b8b2a..977f85c2 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-1726595088","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-1726668924","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_cg1DkiRpzVEHII2g","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/f5o4v6lc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726595088"]}' + body: '{"id":"con_KegzRhejT1IdqHsq","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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/BZyAAQrO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 170.590334ms + duration: 202.018583ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cg1DkiRpzVEHII2g + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_KegzRhejT1IdqHsq method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_cg1DkiRpzVEHII2g","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/f5o4v6lc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726595088"]}' + body: '{"id":"con_KegzRhejT1IdqHsq","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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/BZyAAQrO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 145.736583ms + duration: 152.56825ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cg1DkiRpzVEHII2g + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_KegzRhejT1IdqHsq method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:59.739Z"}' + body: '{"deleted_at":"2024-09-18T14:16:09.661Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 169.099125ms + duration: 314.012292ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cg1DkiRpzVEHII2g + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_KegzRhejT1IdqHsq 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-09-18T14:16:09.661Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 6.303446292s + status: 202 Accepted + code: 202 + duration: 147.408334ms 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 26e19b86..229d9f57 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-1726595088","strategy":"samlp","options":{"strategy_version":2,"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-1726668924","strategy":"samlp","options":{"strategy_version":2,"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_Xw9VEvn4EohnCwlD","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/wd2TGfzx","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' + body: '{"id":"con_3CglGgXXMnRsNoah","options":{"strategy_version":2,"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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/fyPyD1RJ","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 186.579334ms + duration: 5.465127875s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Xw9VEvn4EohnCwlD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3CglGgXXMnRsNoah method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Xw9VEvn4EohnCwlD","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/wd2TGfzx","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' + body: '{"id":"con_3CglGgXXMnRsNoah","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/fyPyD1RJ","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 152.406ms + duration: 160.54625ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Xw9VEvn4EohnCwlD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3CglGgXXMnRsNoah method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:33.745Z"}' + body: '{"deleted_at":"2024-09-18T14:15:41.779Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 163.3985ms + duration: 162.622667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Xw9VEvn4EohnCwlD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3CglGgXXMnRsNoah method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:33.745Z"}' + body: '{"deleted_at":"2024-09-18T14:15:41.779Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 137.274583ms + duration: 143.658916ms 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 1c13ad6e..98fd356f 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-1726595088","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-1726668924","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_2deo60CCiPa5s8w4","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' + body: '{"id":"con_5ydI7CNqrcBSYLXw","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 170.098375ms + duration: 183.513ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2deo60CCiPa5s8w4 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5ydI7CNqrcBSYLXw method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_2deo60CCiPa5s8w4","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' + body: '{"id":"con_5ydI7CNqrcBSYLXw","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 146.433042ms + duration: 155.868125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2deo60CCiPa5s8w4 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5ydI7CNqrcBSYLXw method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:32.469Z"}' + body: '{"deleted_at":"2024-09-18T14:15:35.167Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 5.301385583s + duration: 160.341458ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2deo60CCiPa5s8w4 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5ydI7CNqrcBSYLXw method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:32.469Z"}' + body: '{"deleted_at":"2024-09-18T14:15:35.167Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 142.987083ms + duration: 142.156291ms 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 1f1707be..4efa9220 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-1726595088","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1726668924","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_LFCgJmzLHyJv1IPV","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' + body: '{"id":"con_HHgWYkHzR03oxFNj","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 181.994583ms + duration: 199.537458ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LFCgJmzLHyJv1IPV + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HHgWYkHzR03oxFNj method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_LFCgJmzLHyJv1IPV","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' + body: '{"id":"con_HHgWYkHzR03oxFNj","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 150.955917ms + duration: 145.227167ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LFCgJmzLHyJv1IPV + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HHgWYkHzR03oxFNj method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:57.006Z"}' + body: '{"deleted_at":"2024-09-18T14:16:00.094Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 150.148417ms + duration: 169.270334ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LFCgJmzLHyJv1IPV + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HHgWYkHzR03oxFNj method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:57.006Z"}' + body: '{"deleted_at":"2024-09-18T14:16:00.094Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 163.283084ms + duration: 157.030792ms 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 aac62543..39fdd91b 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-1726595088","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1726668924","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 319 uncompressed: false - body: '{"id":"con_HkJ9DxIeJkbFVHoW","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' + body: '{"id":"con_Zmhux7qaZxz4vUq6","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 160.777917ms + duration: 182.592542ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HkJ9DxIeJkbFVHoW + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Zmhux7qaZxz4vUq6 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_HkJ9DxIeJkbFVHoW","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' + body: '{"id":"con_Zmhux7qaZxz4vUq6","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 155.33775ms + duration: 150.564542ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HkJ9DxIeJkbFVHoW + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Zmhux7qaZxz4vUq6 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:50.229Z"}' + body: '{"deleted_at":"2024-09-18T14:15:59.402Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 156.157334ms + duration: 178.805292ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HkJ9DxIeJkbFVHoW + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Zmhux7qaZxz4vUq6 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-09-18T14:15:59.402Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 6.27975625s + status: 202 Accepted + code: 202 + duration: 151.124959ms 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 index d45f72a4..fb30ce81 100644 --- 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 @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + {"name":"Test-Wordpress-Connection-1726668924","strategy":"wordpress","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 363 uncompressed: false - body: '{"id":"con_rCizJmNH106qXDlJ","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' + body: '{"id":"con_20rnZcn6nHysB8LC","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 212.060125ms + duration: 178.224166ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rCizJmNH106qXDlJ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_20rnZcn6nHysB8LC method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_rCizJmNH106qXDlJ","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' + body: '{"id":"con_20rnZcn6nHysB8LC","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 148.000167ms + duration: 153.711ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rCizJmNH106qXDlJ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_20rnZcn6nHysB8LC method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:45:18.454Z"}' + body: '{"deleted_at":"2024-09-18T14:15:26.306Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 156.883791ms + duration: 178.305416ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rCizJmNH106qXDlJ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_20rnZcn6nHysB8LC 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-09-17T17:45:18.454Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 137.6775ms + status: 204 No Content + code: 204 + duration: 150.819542ms 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 b083534b..60a1f303 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-1726595088","strategy":"adfs","options":{"strategy_version":2,"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-1726668924","strategy":"adfs","options":{"strategy_version":2,"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_6SCXo3Z9rql64JaQ","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/1Whixihz","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' + body: '{"id":"con_GDEg2ecFgZbEjWxN","options":{"strategy_version":2,"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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/pYWuHCNb","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 180.064375ms + duration: 197.360625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1726668924&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_6SCXo3Z9rql64JaQ","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/1Whixihz","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_GDEg2ecFgZbEjWxN","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/pYWuHCNb","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.285877542s + duration: 163.020167ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6SCXo3Z9rql64JaQ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GDEg2ecFgZbEjWxN method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:30.595Z"}' + body: '{"deleted_at":"2024-09-18T14:16:34.841Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 152.257625ms + duration: 160.746666ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6SCXo3Z9rql64JaQ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GDEg2ecFgZbEjWxN method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:30.595Z"}' + body: '{"deleted_at":"2024-09-18T14:16:34.841Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 140.227958ms + duration: 141.197458ms 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 53f496e3..e68a5bd3 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-1726595088","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1726668924","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 428 uncompressed: false - body: '{"id":"con_CGqAhhxQiqKchSUx","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/5YVEBxEsKw6b5Equ42fXdkk1JjyeNYip","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' + body: '{"id":"con_LLzKWuJD5Ft0QHDn","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/cybDryXd8WWz1Sc7qikNSyPswSi0F66c","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 167.777875ms + duration: 220.15075ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1726668924&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_CGqAhhxQiqKchSUx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/5YVEBxEsKw6b5Equ42fXdkk1JjyeNYip","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_LLzKWuJD5Ft0QHDn","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/cybDryXd8WWz1Sc7qikNSyPswSi0F66c","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 175.441666ms + duration: 6.306271584s - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CGqAhhxQiqKchSUx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LLzKWuJD5Ft0QHDn method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:23.844Z"}' + body: '{"deleted_at":"2024-09-18T14:16:34.145Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 151.678ms + duration: 157.357167ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CGqAhhxQiqKchSUx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LLzKWuJD5Ft0QHDn 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-09-17T17:46:23.844Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 132.2265ms + status: 204 No Content + code: 204 + duration: 165.501375ms 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 e2006d1c..00613abb 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-1726595088","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1726668924","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_GPOeAwqqJzKa8BUa","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726595088"]}' + body: '{"id":"con_VYcxhpXTKEfvvhVb","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 163.388292ms + duration: 154.95775ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1726668924&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_GPOeAwqqJzKa8BUa","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726595088","is_domain_connection":false,"realms":["Test-Apple-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_VYcxhpXTKEfvvhVb","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726668924","is_domain_connection":false,"realms":["Test-Apple-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 145.738542ms + duration: 145.029875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GPOeAwqqJzKa8BUa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VYcxhpXTKEfvvhVb method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:31.800Z"}' + body: '{"deleted_at":"2024-09-18T14:16:36.090Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 157.205291ms + duration: 167.318334ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GPOeAwqqJzKa8BUa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_VYcxhpXTKEfvvhVb 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-09-17T17:46:31.800Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 139.742041ms + status: 204 No Content + code: 204 + duration: 5.290976625s 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 c3681b8e..21870003 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-1726595088","strategy":"auth0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1726668924","strategy":"auth0","options":{"strategy_version":2,"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_IfI1jib3tr22cBFT","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' + body: '{"id":"con_o7ouCTJ2yUZaDiJ2","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 168.16875ms + duration: 174.3695ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1726668924&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_IfI1jib3tr22cBFT","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-1726595088","is_domain_connection":false,"realms":["Test-Auth0-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_o7ouCTJ2yUZaDiJ2","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-1726668924","is_domain_connection":false,"realms":["Test-Auth0-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 142.7465ms + duration: 146.903541ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IfI1jib3tr22cBFT + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o7ouCTJ2yUZaDiJ2 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:06.523Z"}' + body: '{"deleted_at":"2024-09-18T14:16:10.297Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 163.715ms + duration: 173.452125ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IfI1jib3tr22cBFT + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o7ouCTJ2yUZaDiJ2 method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:06.523Z"}' + body: '{"deleted_at":"2024-09-18T14:16:10.297Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 145.243916ms + duration: 156.225417ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_Connection_by_its_name.yaml index 2de16522..37a4440c 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Azure-AD_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AzureAD-Connection-1726595088","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AzureAD-Connection-1726668924","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","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_vj5vKqLCgFP4lrLn","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/AEUYQhyQ","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' + body: '{"id":"con_6zy03GICqmEAL9Sa","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/GRFmVac6","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726668924","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.06775ms + duration: 457.632334ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AzureAD-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AzureAD-Connection-1726668924&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_vj5vKqLCgFP4lrLn","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/AEUYQhyQ","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","realms":["Test-AzureAD-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_6zy03GICqmEAL9Sa","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/GRFmVac6","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726668924","realms":["Test-AzureAD-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 153.261042ms + duration: 188.510375ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vj5vKqLCgFP4lrLn + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6zy03GICqmEAL9Sa method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:23.203Z"}' + body: '{"deleted_at":"2024-09-18T14:16:27.311Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 159.098375ms + duration: 161.768084ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vj5vKqLCgFP4lrLn + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6zy03GICqmEAL9Sa method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:23.203Z"}' + body: '{"deleted_at":"2024-09-18T14:16:27.311Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 136.084417ms + duration: 145.500042ms 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 b1c00b06..ed1d3b5f 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-1726595088","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-1726668924","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_jzngEOcIQRdnMS7v","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726595088"]}' + body: '{"id":"con_Rb6xset47fLv5Y7d","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 160.544459ms + duration: 169.876708ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1726668924&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_jzngEOcIQRdnMS7v","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-1726595088","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Rb6xset47fLv5Y7d","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-1726668924","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 141.42975ms + duration: 160.837959ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jzngEOcIQRdnMS7v + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Rb6xset47fLv5Y7d method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:21.584Z"}' + body: '{"deleted_at":"2024-09-18T14:16:25.691Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 5.329642666s + duration: 172.697917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jzngEOcIQRdnMS7v + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Rb6xset47fLv5Y7d method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:21.584Z"}' + body: '{"deleted_at":"2024-09-18T14:16:25.691Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 139.481958ms + duration: 149.478792ms 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 48dfe53e..3b2d8625 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-1726595088","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-1726668924","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_tH61hFPxUz7XlYHk","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726595088"]}' + body: '{"id":"con_DVi4tjLoWlPZqFYY","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 164.354542ms + duration: 163.215583ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1726668924&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_tH61hFPxUz7XlYHk","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-1726595088","is_domain_connection":false,"realms":["Test-Email-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_DVi4tjLoWlPZqFYY","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-1726668924","is_domain_connection":false,"realms":["Test-Email-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.405ms + duration: 148.03025ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tH61hFPxUz7XlYHk + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DVi4tjLoWlPZqFYY method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:15.213Z"}' + body: '{"deleted_at":"2024-09-18T14:16:18.231Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 158.937042ms + duration: 339.95175ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tH61hFPxUz7XlYHk + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DVi4tjLoWlPZqFYY method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:15.213Z"}' + body: '{"deleted_at":"2024-09-18T14:16:18.231Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 141.214292ms + duration: 130.368542ms 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 c6849a28..044fc0b1 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-1726595088","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1726668924","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_v6SDsA5mSnusmUVT","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726595088"]}' + body: '{"id":"con_YKDPhKhWM1Yr02Cu","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 155.520208ms + duration: 166.558917ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1726668924&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_v6SDsA5mSnusmUVT","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726595088","is_domain_connection":false,"realms":["Test-Facebook-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_YKDPhKhWM1Yr02Cu","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726668924","is_domain_connection":false,"realms":["Test-Facebook-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 140.234333ms + duration: 176.078458ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_v6SDsA5mSnusmUVT + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YKDPhKhWM1Yr02Cu method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:31.196Z"}' + body: '{"deleted_at":"2024-09-18T14:16:35.499Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 154.31475ms + duration: 169.485541ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_v6SDsA5mSnusmUVT + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YKDPhKhWM1Yr02Cu method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:31.196Z"}' + body: '{"deleted_at":"2024-09-18T14:16:35.499Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 134.743625ms + duration: 132.732292ms 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 e2cd913b..c08742cf 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-1726595088","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1726668924","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_9HBCOUoDAYsnrjkc","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726595088"]}' + body: '{"id":"con_WycO2RMmXnj87vPU","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 159.416292ms + duration: 149.185541ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1726668924&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_9HBCOUoDAYsnrjkc","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726595088","is_domain_connection":false,"realms":["Test-GitHub-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_WycO2RMmXnj87vPU","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726668924","is_domain_connection":false,"realms":["Test-GitHub-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 159.403292ms + duration: 150.934291ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9HBCOUoDAYsnrjkc + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_WycO2RMmXnj87vPU method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:38.176Z"}' + body: '{"deleted_at":"2024-09-18T14:16:42.554Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 153.736125ms + duration: 164.135375ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9HBCOUoDAYsnrjkc + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_WycO2RMmXnj87vPU 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-09-18T14:16:42.554Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 149.886083ms + status: 202 Accepted + code: 202 + duration: 136.062459ms 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 5e1db711..e2863332 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-1726595088","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-1726668924","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_UG06mjdZI4wplGOc","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/QuZUBWkA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726595088"]}' + body: '{"id":"con_386so3Baaaz2wBCD","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-1726668924","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/FdGPre5Y","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 201.185042ms + duration: 199.716875ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1726668924&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_UG06mjdZI4wplGOc","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-1726595088","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/QuZUBWkA","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_386so3Baaaz2wBCD","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-1726668924","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/FdGPre5Y","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.292589083s + duration: 160.716667ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UG06mjdZI4wplGOc + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_386so3Baaaz2wBCD method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:14.603Z"}' + body: '{"deleted_at":"2024-09-18T14:16:17.421Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 161.24575ms + duration: 148.246042ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UG06mjdZI4wplGOc + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_386so3Baaaz2wBCD 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-09-17T17:46:14.603Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 133.115334ms + status: 204 No Content + code: 204 + duration: 155.948084ms 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 8078a9a0..9f9511d9 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-1726595088","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-1726668924","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_XmVyXsxNOnGgfWzV","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726595088"]}' + body: '{"id":"con_qYiW9XIcqNhOZBlj","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 170.641125ms + duration: 5.346989292s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1726668924&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_XmVyXsxNOnGgfWzV","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-1726595088","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_qYiW9XIcqNhOZBlj","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-1726668924","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 157.35925ms + duration: 154.604833ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XmVyXsxNOnGgfWzV + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qYiW9XIcqNhOZBlj method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:07.786Z"}' + body: '{"deleted_at":"2024-09-18T14:16:16.763Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 148.824459ms + duration: 161.5565ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XmVyXsxNOnGgfWzV + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_qYiW9XIcqNhOZBlj 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-09-18T14:16:16.763Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 157.251291ms + status: 202 Accepted + code: 202 + duration: 133.101916ms 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 f08dc176..364b10f1 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-1726595088","strategy":"linkedin","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1726668924","strategy":"linkedin","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 326 uncompressed: false - body: '{"id":"con_tlz55k3v1aSq4y6h","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726595088"]}' + body: '{"id":"con_0sMfLmx3LmvmyFL0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 156.6895ms + duration: 195.353709ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1726668924&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_tlz55k3v1aSq4y6h","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726595088","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_0sMfLmx3LmvmyFL0","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726668924","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.595209ms + duration: 151.482917ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlz55k3v1aSq4y6h + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0sMfLmx3LmvmyFL0 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:37.548Z"}' + body: '{"deleted_at":"2024-09-18T14:16:41.944Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 5.302044916s + duration: 202.347042ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlz55k3v1aSq4y6h + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0sMfLmx3LmvmyFL0 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-09-18T14:16:41.944Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 147.558625ms + status: 202 Accepted + code: 202 + duration: 140.195542ms 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 81baa0d7..31aaa27f 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-1726595088","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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-1726668924","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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: -1 uncompressed: false - body: '{"id":"con_yT4gZ2YgwUCD7Mo2","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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":"https://api.paypal.com/v1/oauth2/token/userinfo","token_endpoint":"https://api.paypal.com/v1/oauth2/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://www.paypal.com","authorization_endpoint":"https://www.paypal.com/signin/authorize","registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","token_endpoint":"https://api.paypal.com/v1/oauth2/token","userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","token_endpoint_auth_methods_supported":["client_secret_basic"],"response_types_supported":["code","code id_token"],"response_modes_supported":["query","form_post"],"grant_types_supported":["authorization_code","refresh_token"],"subject_types_supported":["pairwise"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"id_token_signing_alg_values_supported":["HS256","RS256"],"claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"code_challenge_methods_supported":["RS256","ES256","S256"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","attribute_map":{"mapping_mode":"bind_all"},"connection_settings":{"pkce":"auto"}},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","enabled_clients":[],"realms":["Test-OIDC-Connection-1726595088"]}' + body: '{"id":"con_vungBlaiFIzTNAFs","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://www.paypalobjects.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":"https://api.paypal.com/v1/oauth2/token/userinfo","token_endpoint":"https://api.paypal.com/v1/oauth2/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://www.paypal.com","authorization_endpoint":"https://www.paypal.com/signin/authorize","registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","token_endpoint":"https://api.paypal.com/v1/oauth2/token","userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","token_endpoint_auth_methods_supported":["client_secret_basic"],"response_types_supported":["code","code id_token"],"response_modes_supported":["query","form_post"],"grant_types_supported":["authorization_code","refresh_token"],"subject_types_supported":["pairwise"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"id_token_signing_alg_values_supported":["HS256","RS256"],"claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"code_challenge_methods_supported":["RS256","ES256","S256"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","attribute_map":{"mapping_mode":"bind_all"},"connection_settings":{"pkce":"auto"}},"strategy":"oidc","name":"Test-OIDC-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726668924","enabled_clients":[],"realms":["Test-OIDC-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.473072709s + duration: 420.237333ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1726668924&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_yT4gZ2YgwUCD7Mo2","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"bind_all"},"discovery_url":"https://www.paypalobjects.com/.well-known/openid-configuration","oidc_metadata":{"issuer":"https://www.paypal.com","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","token_endpoint":"https://api.paypal.com/v1/oauth2/token","claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","grant_types_supported":["authorization_code","refresh_token"],"registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","authorization_endpoint":"https://www.paypal.com/signin/authorize","subject_types_supported":["pairwise"],"response_modes_supported":["query","form_post"],"response_types_supported":["code","code id_token"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"code_challenge_methods_supported":["RS256","ES256","S256"],"require_request_uri_registration":false,"id_token_signing_alg_values_supported":["HS256","RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic"]},"schema_version":"oidc-V4","token_endpoint":"https://api.paypal.com/v1/oauth2/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726595088","realms":["Test-OIDC-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_vungBlaiFIzTNAFs","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"bind_all"},"discovery_url":"https://www.paypalobjects.com/.well-known/openid-configuration","oidc_metadata":{"issuer":"https://www.paypal.com","jwks_uri":"https://api.paypal.com/v1/oauth2/certs","token_endpoint":"https://api.paypal.com/v1/oauth2/token","claims_supported":["aud","iss","iat","exp","auth_time","nonce","sessionIndex","user_id"],"scopes_supported":["email","address","phone","openid","profile","https://uri.paypal.com/services/wallet/sendmoney","https://uri.paypal.com/services/payments/futurepayments","https://uri.paypal.com/services/expresscheckout"],"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","revocation_endpoint":"https://api.paypal.com/v1/oauth2/revoke","grant_types_supported":["authorization_code","refresh_token"],"registration_endpoint":"https://api.paypal.com/v1/oauth2/applications","authorization_endpoint":"https://www.paypal.com/signin/authorize","subject_types_supported":["pairwise"],"response_modes_supported":["query","form_post"],"response_types_supported":["code","code id_token"],"claims_parameter_supported":false,"request_parameter_supported":false,"request_uri_parameter_supported":false,"code_challenge_methods_supported":["RS256","ES256","S256"],"require_request_uri_registration":false,"id_token_signing_alg_values_supported":["HS256","RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic"]},"schema_version":"oidc-V4","token_endpoint":"https://api.paypal.com/v1/oauth2/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://api.paypal.com/v1/oauth2/token/userinfo","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726668924","realms":["Test-OIDC-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 148.361292ms + duration: 155.568208ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yT4gZ2YgwUCD7Mo2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vungBlaiFIzTNAFs method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:46.346Z"}' + body: '{"deleted_at":"2024-09-18T14:16:50.810Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 183.530791ms + duration: 186.11625ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yT4gZ2YgwUCD7Mo2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vungBlaiFIzTNAFs 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-09-17T17:46:46.346Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 136.8825ms + status: 204 No Content + code: 204 + duration: 364.945583ms 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 1a68be52..29e9fa16 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-1726595088","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-1726668924","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_bMMx2iY5mhtmtvjc","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","enabled_clients":[],"realms":["Test-Okta-Connection-1726595088"]}' + body: '{"id":"con_5iLiibQz3toPvUw9","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726668924","enabled_clients":[],"realms":["Test-Okta-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 771.094ms + duration: 711.464959ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1726668924&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_bMMx2iY5mhtmtvjc","options":{"type":"back_channel","scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"basic_profile"},"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"],"claims_parameter_supported":false,"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","request_uri_parameter_supported":false,"code_challenge_methods_supported":["S256"],"require_request_uri_registration":false,"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"]},"schema_version":"oidc-V4","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","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"okta","name":"Test-Okta-Connection-1726595088","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595088","realms":["Test-Okta-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_5iLiibQz3toPvUw9","options":{"type":"back_channel","scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","attribute_map":{"mapping_mode":"basic_profile"},"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"],"claims_parameter_supported":false,"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","request_uri_parameter_supported":false,"code_challenge_methods_supported":["S256"],"require_request_uri_registration":false,"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"]},"schema_version":"oidc-V4","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","connection_settings":{"pkce":"auto"},"authorization_endpoint":"https://example.com"},"strategy":"okta","name":"Test-Okta-Connection-1726668924","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726668924","realms":["Test-Okta-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 158.120375ms + duration: 142.611459ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bMMx2iY5mhtmtvjc + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5iLiibQz3toPvUw9 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:47.579Z"}' + body: '{"deleted_at":"2024-09-18T14:16:52.204Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 158.032875ms + duration: 149.317625ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bMMx2iY5mhtmtvjc + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5iLiibQz3toPvUw9 method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:47.579Z"}' + body: '{"deleted_at":"2024-09-18T14:16:52.204Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 130.5035ms + duration: 140.198291ms 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 2cf35c09..189c06aa 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-1726595088","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-1726668924","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_Q7oSxIrMulRHIZBE","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/RsOC1tgZ","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726595088"]}' + body: '{"id":"con_PGjHNgg1ionGutio","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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/s8eDJ3k0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 157.007459ms + duration: 182.70275ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1726668924&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_Q7oSxIrMulRHIZBE","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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/RsOC1tgZ","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_PGjHNgg1ionGutio","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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/s8eDJ3k0","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 142.655459ms + duration: 152.567458ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q7oSxIrMulRHIZBE + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PGjHNgg1ionGutio method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:48.165Z"}' + body: '{"deleted_at":"2024-09-18T14:16:52.840Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 157.992958ms + duration: 162.844ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q7oSxIrMulRHIZBE + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PGjHNgg1ionGutio method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:48.165Z"}' + body: '{"deleted_at":"2024-09-18T14:16:52.840Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 146.522875ms + duration: 141.300583ms 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 2ffb7d4e..3822d393 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-1726595088","strategy":"samlp","options":{"strategy_version":2,"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-1726668924","strategy":"samlp","options":{"strategy_version":2,"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_TvZPXMFWnI2pTPbw","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/b4vYk3gS","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' + body: '{"id":"con_oghOlE2P8EJO5UH2","options":{"strategy_version":2,"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-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/eF7VzsvW","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 193.56075ms + duration: 179.819833ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1726668924&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_TvZPXMFWnI2pTPbw","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/b4vYk3gS","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_oghOlE2P8EJO5UH2","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726668924","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/eF7VzsvW","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 242.759666ms + duration: 149.631375ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TvZPXMFWnI2pTPbw + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oghOlE2P8EJO5UH2 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:22.339Z"}' + body: '{"deleted_at":"2024-09-18T14:16:26.344Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 164.451917ms + duration: 161.299666ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TvZPXMFWnI2pTPbw + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oghOlE2P8EJO5UH2 method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:22.339Z"}' + body: '{"deleted_at":"2024-09-18T14:16:26.344Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 140.350084ms + duration: 150.223542ms 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 8a08a46f..1b52b546 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-1726595088","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-1726668924","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_PrpGyVtjGpoIVpFb","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726595088"]}' + body: '{"id":"con_nZXo5sNuyQL235qL","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-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 170.985416ms + duration: 184.940083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1726668924&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_PrpGyVtjGpoIVpFb","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-1726595088","is_domain_connection":false,"realms":["Test-SMS-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_nZXo5sNuyQL235qL","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-1726668924","is_domain_connection":false,"realms":["Test-SMS-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 134.779167ms + duration: 164.614875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PrpGyVtjGpoIVpFb + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nZXo5sNuyQL235qL method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:15.818Z"}' + body: '{"deleted_at":"2024-09-18T14:16:25.051Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 150.020792ms + duration: 6.335031125s - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PrpGyVtjGpoIVpFb + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nZXo5sNuyQL235qL 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-09-17T17:46:15.818Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 136.641125ms + status: 204 No Content + code: 204 + duration: 138.188875ms 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 b550453d..2bb210e2 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-1726595088","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1726668924","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_3J38oBEu9ijRq2R9","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726595088"]}' + body: '{"id":"con_DJuoHtjGzUhOfijn","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 158.507917ms + duration: 156.174208ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1726668924&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_3J38oBEu9ijRq2R9","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726595088","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_DJuoHtjGzUhOfijn","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726668924","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 156.269875ms + duration: 6.295643834s - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3J38oBEu9ijRq2R9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DJuoHtjGzUhOfijn method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:39.394Z"}' + body: '{"deleted_at":"2024-09-18T14:16:49.914Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 167.825834ms + duration: 165.884667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3J38oBEu9ijRq2R9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DJuoHtjGzUhOfijn 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-09-17T17:46:39.394Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 130.355667ms + status: 204 No Content + code: 204 + duration: 140.426833ms 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 5c71a209..b48d5f74 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-1726595088","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1726668924","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 319 uncompressed: false - body: '{"id":"con_ObeYskOaQSwZL4lV","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' + body: '{"id":"con_cQn2uzb24dc6Ras5","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 159.507208ms + duration: 170.549334ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1726668924&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_ObeYskOaQSwZL4lV","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_cQn2uzb24dc6Ras5","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726668924","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.120042ms + duration: 145.017042ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ObeYskOaQSwZL4lV + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cQn2uzb24dc6Ras5 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:38.788Z"}' + body: '{"deleted_at":"2024-09-18T14:16:43.160Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 162.478625ms + duration: 145.198166ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ObeYskOaQSwZL4lV + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cQn2uzb24dc6Ras5 method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:38.788Z"}' + body: '{"deleted_at":"2024-09-18T14:16:43.160Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 131.431375ms + duration: 132.946209ms 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 index 5aa5c045..3bd8ac34 100644 --- 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 @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + {"name":"Test-Wordpress-Connection-1726668924","strategy":"wordpress","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 363 uncompressed: false - body: '{"id":"con_lRQBaKLt7RsodOS6","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' + body: '{"id":"con_GR6iNXg9QRaeGJV3","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726668924","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726668924"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 165.814792ms + duration: 168.928958ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Wordpress-Connection-1726595088&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Wordpress-Connection-1726668924&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_lRQBaKLt7RsodOS6","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"realms":["Test-Wordpress-Connection-1726595088"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_GR6iNXg9QRaeGJV3","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726668924","is_domain_connection":false,"realms":["Test-Wordpress-Connection-1726668924"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 148.105542ms + duration: 166.985584ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lRQBaKLt7RsodOS6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GR6iNXg9QRaeGJV3 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:46:07.160Z"}' + body: '{"deleted_at":"2024-09-18T14:16:10.954Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 164.656416ms + duration: 144.678959ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lRQBaKLt7RsodOS6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GR6iNXg9QRaeGJV3 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-09-17T17:46:07.160Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 140.617625ms + status: 204 No Content + code: 204 + duration: 150.359917ms diff --git a/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml index c4722a4e..9cf3bd2e 100644 --- a/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml +++ b/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1726595268","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-1726669012","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_HmM2kAbnqOgiuOEK","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595268","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595268","enabled_clients":[],"realms":["Test-Okta-Connection-1726595268"]}' + body: '{"id":"con_DBpIx7NsDzE4y6Wt","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726669012","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726669012","enabled_clients":[],"realms":["Test-Okta-Connection-1726669012"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 821.881ms + duration: 863.616125ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK/scim-configuration + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DBpIx7NsDzE4y6Wt/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: 331 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_HmM2kAbnqOgiuOEK","connection_name":"Test-Okta-Connection-1726595268","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:49.687Z","created_at":"2024-09-17T17:47:49.687Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_DBpIx7NsDzE4y6Wt","connection_name":"Test-Okta-Connection-1726669012","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-18T14:16:54.029Z","created_at":"2024-09-18T14:16:54.029Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 167.272459ms + duration: 171.41725ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK/scim-configuration + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DBpIx7NsDzE4y6Wt/scim-configuration method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_HmM2kAbnqOgiuOEK","connection_name":"Test-Okta-Connection-1726595268","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-17T17:47:49.687Z","created_at":"2024-09-17T17:47:49.687Z","user_id_attribute":"userName"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_DBpIx7NsDzE4y6Wt","connection_name":"Test-Okta-Connection-1726669012","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-18T14:16:54.029Z","created_at":"2024-09-18T14:16:54.029Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 175.06125ms + duration: 339.697791ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK/scim-configuration + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DBpIx7NsDzE4y6Wt/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -142,7 +142,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 161.214084ms + duration: 157.353083ms - id: 4 request: proto: HTTP/1.1 @@ -161,7 +161,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HmM2kAbnqOgiuOEK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DBpIx7NsDzE4y6Wt method: DELETE response: proto: HTTP/2.0 @@ -171,10 +171,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:47:50.181Z"}' + body: '{"deleted_at":"2024-09-18T14:17:00.830Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 153.662958ms + duration: 6.304297625s diff --git a/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml b/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml index 9cc09721..447c70eb 100644 --- a/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml +++ b/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1726595270","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-1726669020","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_dyIIbRP9oUBz8rG8","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726595270","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726595270","enabled_clients":[],"realms":["Test-Okta-Connection-1726595270"]}' + body: '{"id":"con_9xrsUyM1DnhbJi3f","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":"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"],"claims_parameter_supported":false,"request_uri_parameter_supported":false,"require_request_uri_registration":false},"schema_version":"oidc-V4","type":"back_channel","attribute_map":{"mapping_mode":"basic_profile"},"connection_settings":{"pkce":"auto"}},"strategy":"okta","name":"Test-Okta-Connection-1726669020","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726669020","enabled_clients":[],"realms":["Test-Okta-Connection-1726669020"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.097959292s + duration: 908.906209ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8/scim-configuration + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9xrsUyM1DnhbJi3f/scim-configuration method: POST response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_dyIIbRP9oUBz8rG8","connection_name":"Test-Okta-Connection-1726595270","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-17T17:47:56.466Z","created_at":"2024-09-17T17:47:56.466Z","user_id_attribute":"externalId"}' + body: '{"tenant_name":"go-auth0-dev.eu.auth0.com","connection_id":"con_9xrsUyM1DnhbJi3f","connection_name":"Test-Okta-Connection-1726669020","strategy":"okta","mapping":[{"scim":"userName","auth0":"preferred_username"},{"scim":"emails[primary eq true].value","auth0":"email"},{"scim":"externalId","auth0":"app_metadata.external_id"},{"scim":"active","auth0":"blocked"},{"scim":"displayName","auth0":"name"},{"scim":"name.givenName","auth0":"given_name"},{"scim":"name.familyName","auth0":"family_name"},{"scim":"name.middleName","auth0":"app_metadata.middle_name"},{"scim":"name.honorificPrefix","auth0":"app_metadata.honorific_prefix"},{"scim":"name.honorificSuffix","auth0":"app_metadata.honorific_suffix"},{"scim":"nickName","auth0":"nickname"},{"scim":"photos[type eq \"photo\"].value","auth0":"picture"},{"scim":"phoneNumbers[primary eq true].value","auth0":"app_metadata.primary_phone_number"},{"scim":"phoneNumbers[type eq \"mobile\"].value","auth0":"app_metadata.mobile_phone_number"},{"scim":"addresses[type eq \"work\"].streetAddress","auth0":"app_metadata.street_address"},{"scim":"addresses[type eq \"work\"].locality","auth0":"app_metadata.city"},{"scim":"addresses[type eq \"work\"].region","auth0":"app_metadata.state"},{"scim":"addresses[type eq \"work\"].postalCode","auth0":"app_metadata.postal_code"},{"scim":"addresses[type eq \"work\"].formatted","auth0":"app_metadata.postal_address"},{"scim":"addresses[type eq \"work\"].country","auth0":"app_metadata.country"},{"scim":"profileUrl","auth0":"app_metadata.profile_url"},{"scim":"userType","auth0":"app_metadata.user_type"},{"scim":"title","auth0":"app_metadata.title"},{"scim":"preferredLanguage","auth0":"app_metadata.language"},{"scim":"locale","auth0":"app_metadata.locale"},{"scim":"timezone","auth0":"app_metadata.timezone"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumber","auth0":"app_metadata.employee_id"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.costCenter","auth0":"app_metadata.cost_center"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.organization","auth0":"app_metadata.organization"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.division","auth0":"app_metadata.division"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department","auth0":"app_metadata.department"},{"scim":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager","auth0":"app_metadata.manager"}],"updated_on":"2024-09-18T14:17:01.933Z","created_at":"2024-09-18T14:17:01.933Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 178.338334ms + duration: 190.309125ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8/scim-configuration/default-mapping + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9xrsUyM1DnhbJi3f/scim-configuration/default-mapping method: GET response: proto: HTTP/2.0 @@ -107,7 +107,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 180.756375ms + duration: 192.997084ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8/scim-configuration + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9xrsUyM1DnhbJi3f/scim-configuration method: DELETE response: proto: HTTP/2.0 @@ -142,7 +142,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 153.692459ms + duration: 154.059625ms - id: 4 request: proto: HTTP/1.1 @@ -161,7 +161,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_dyIIbRP9oUBz8rG8 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9xrsUyM1DnhbJi3f method: DELETE response: proto: HTTP/2.0 @@ -171,10 +171,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-09-17T17:47:56.950Z"}' + body: '{"deleted_at":"2024-09-18T14:17:02.430Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 167.385333ms + duration: 148.230417ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml deleted file mode 100644 index fae07906..00000000 --- a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_ADFS_Connection.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 2242 - transfer_encoding: [] - trailer: {} - host: go-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test-ADFS-Connection-1726595088","strategy":"adfs","options":{"strategy_version":2,"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: - - application/json - User-Agent: - - Go-Auth0/1.10.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: -1 - uncompressed: false - body: '{"id":"con_h3NFoUAslKTXXuvL","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/4aiz5zlT","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 174.077209ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h3NFoUAslKTXXuvL - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_h3NFoUAslKTXXuvL","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"}},"strategy_version":2,"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/4aiz5zlT","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 147.678625ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h3NFoUAslKTXXuvL - 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-09-17T17:46:56.780Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 148.356666ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml deleted file mode 100644 index 21b9888c..00000000 --- a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_AD_Connection.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 147 - transfer_encoding: [] - trailer: {} - host: go-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test-AD-Connection-1726595088","strategy":"ad","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0/1.10.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: 428 - uncompressed: false - body: '{"id":"con_hLVQsS4CXvWI7cC3","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/Um5kadL1OGvOsIrsBVHJupeLGJV0Eck8","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 161.09825ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hLVQsS4CXvWI7cC3 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_hLVQsS4CXvWI7cC3","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/Um5kadL1OGvOsIrsBVHJupeLGJV0Eck8","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 145.719917ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hLVQsS4CXvWI7cC3 - 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-09-17T17:46:56.305Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 146.978041ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml deleted file mode 100644 index 817502ee..00000000 --- a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Auth0_Connection.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 153 - transfer_encoding: [] - trailer: {} - host: go-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test-Auth0-Connection-1726595088","strategy":"auth0","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0/1.10.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: 577 - uncompressed: false - body: '{"id":"con_rlXZRYOJvQfDINpE","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 159.833792ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rlXZRYOJvQfDINpE - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_rlXZRYOJvQfDINpE","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-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 148.078625ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rlXZRYOJvQfDINpE - 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-09-17T17:46:48.790Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 157.674625ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml deleted file mode 100644 index d16e984e..00000000 --- a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Azure-AD_Connection.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 277 - transfer_encoding: [] - trailer: {} - host: go-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test-AzureAD-Connection-1726595088","strategy":"waad","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}}}} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0/1.10.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: -1 - uncompressed: false - body: '{"id":"con_4LzNEVYBZbT2XF4u","options":{"client_id":"123456","client_secret":"123456","strategy_version":2,"tenant_domain":"example.onmicrosoft.com","domain":"example.onmicrosoft.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","identity_api":"microsoft-identity-platform-v2.0","useCommonEndpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified","waad_common_endpoint":false,"use_wsfed":false,"waad_protocol":"openid-connect","userid_attribute":"oid"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/LvjGUWVG","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 379.116958ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4LzNEVYBZbT2XF4u - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_4LzNEVYBZbT2XF4u","options":{"domain":"example.onmicrosoft.com","client_id":"123456","use_wsfed":false,"app_domain":"go-auth0-dev.eu.auth0.com.eu.auth0.com","thumbprints":["4a3138b6fcc0c00a28e86077dbe83540076021c9","1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","2743ae2dd284d5280f768e2f77eb145f1bb6751b","824f47a0658299810b52ad51110d0290783e46c6"],"identity_api":"microsoft-identity-platform-v2.0","client_secret":"123456","tenant_domain":"example.onmicrosoft.com","waad_protocol":"openid-connect","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"userid_attribute":"oid","useCommonEndpoint":false,"waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/LvjGUWVG","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726595088","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 142.486542ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4LzNEVYBZbT2XF4u - 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-09-17T17:46:55.796Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 230.650083ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml deleted file mode 100644 index 178cd9d6..00000000 --- a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_SAML_Connection.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1987 - transfer_encoding: [] - trailer: {} - host: go-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test-SAML-Connection-1726595088","strategy":"samlp","options":{"strategy_version":2,"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: - - application/json - User-Agent: - - Go-Auth0/1.10.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: -1 - uncompressed: false - body: '{"id":"con_OEZQPorl8TRaHgvq","options":{"strategy_version":2,"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-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/dzgbj6jy","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 188.586625ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OEZQPorl8TRaHgvq - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_OEZQPorl8TRaHgvq","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_version":2},"strategy":"samlp","name":"Test-SAML-Connection-1726595088","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/dzgbj6jy","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 149.288584ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OEZQPorl8TRaHgvq - 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-09-17T17:46:55.087Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 154.420167ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml deleted file mode 100644 index c16d3193..00000000 --- a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_WindowsLive_Connection.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 165 - transfer_encoding: [] - trailer: {} - host: go-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test-WindowsLive-Connection-1726595088","strategy":"windowslive","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0/1.10.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: 319 - uncompressed: false - body: '{"id":"con_Q956LHcmOwWDtjLo","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 166.85825ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q956LHcmOwWDtjLo - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_Q956LHcmOwWDtjLo","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 5.289320084s - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q956LHcmOwWDtjLo - 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-09-17T17:47:02.393Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 150.689417ms diff --git a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml deleted file mode 100644 index 34839132..00000000 --- a/test/data/recordings/TestConnectionManager_ReadStrategyVersion/It_can_successfully_read_the_strategy_version_for_a_Wordpress_Connection.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 238 - transfer_encoding: [] - trailer: {} - host: go-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test-Wordpress-Connection-1726595088","strategy":"wordpress","options":{"strategy_version":2,"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.10.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: 363 - uncompressed: false - body: '{"id":"con_5YX5x8kpVhK9eHZp","options":{"strategy_version":2,"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 172.113209ms - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5YX5x8kpVhK9eHZp - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_5YX5x8kpVhK9eHZp","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726595088","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726595088"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 5.462482292s - - 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.10.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5YX5x8kpVhK9eHZp - 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-09-17T17:46:54.588Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 157.114375ms From c1dcb982b903d28ea35d88188eb990521f8f2430 Mon Sep 17 00:00:00 2001 From: "A. Craig West" Date: Thu, 19 Sep 2024 10:23:55 -0400 Subject: [PATCH 4/4] Reorganise methods --- management/connection_test.go | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/management/connection_test.go b/management/connection_test.go index a3ba4853..17a4c487 100644 --- a/management/connection_test.go +++ b/management/connection_test.go @@ -790,27 +790,6 @@ func TestConnectionManager_Read(t *testing.T) { } } -func getStrategyVersion(strategy string, options interface{}) int { - switch strategy { - case "ad": - return options.(*ConnectionOptionsAD).GetStrategyVersion() - case "adfs": - return options.(*ConnectionOptionsADFS).GetStrategyVersion() - case "auth0": - return options.(*ConnectionOptions).GetStrategyVersion() - case "samlp": - return options.(*ConnectionOptionsSAML).GetStrategyVersion() - case "waad": - return options.(*ConnectionOptionsAzureAD).GetStrategyVersion() - case "windowslive": - return options.(*ConnectionOptionsWindowsLive).GetStrategyVersion() - case "wordpress": - return options.(*ConnectionOptionsOAuth2).GetStrategyVersion() - default: - return -1 - } -} - func TestConnectionManager_ReadByName(t *testing.T) { for _, testCase := range connectionTestCases { t.Run("It can successfully find a "+testCase.name+" by its name", func(t *testing.T) { @@ -1305,3 +1284,24 @@ func givenAOktaConnection(t *testing.T) *Connection { }, }) } + +func getStrategyVersion(strategy string, options interface{}) int { + switch strategy { + case "ad": + return options.(*ConnectionOptionsAD).GetStrategyVersion() + case "adfs": + return options.(*ConnectionOptionsADFS).GetStrategyVersion() + case "auth0": + return options.(*ConnectionOptions).GetStrategyVersion() + case "samlp": + return options.(*ConnectionOptionsSAML).GetStrategyVersion() + case "waad": + return options.(*ConnectionOptionsAzureAD).GetStrategyVersion() + case "windowslive": + return options.(*ConnectionOptionsWindowsLive).GetStrategyVersion() + case "wordpress": + return options.(*ConnectionOptionsOAuth2).GetStrategyVersion() + default: + return -1 + } +}