diff --git a/management/connection.go b/management/connection.go index a4b58ace..58d82c5f 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"` @@ -1269,6 +1277,7 @@ type ConnectionOptionsAzureAD struct { CertRolloverNotification *string `json:"cert_rollover_notification,omitempty"` Granted *bool `json:"granted,omitempty"` TenantID *string `json:"tenantId,omitempty"` + UserIDAttribute *string `json:"user_id_attribute,omitempty"` } // Scopes returns the scopes for ConnectionOptionsAzureAD. @@ -1283,6 +1292,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 +1374,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/connection_test.go b/management/connection_test.go index e4875fc3..e31658cb 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,26 @@ 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"), + UserIDAttribute: auth0.String("userName"), + UpstreamParams: map[string]interface{}{ + "screen_name": map[string]interface{}{ + "alias": "login_hint", + }, + }, + }, + }, { name: "AD Connection", connection: Connection{ @@ -233,6 +256,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 +271,7 @@ ZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g Strategy: auth0.String("adfs"), }, options: &ConnectionOptionsADFS{ + StrategyVersion: auth0.Int(2), FedMetadataXML: auth0.String(` @@ -320,6 +345,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 +374,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", @@ -752,6 +779,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()) @@ -796,8 +827,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) @@ -1253,3 +1285,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 + } +} diff --git a/management/management.gen.go b/management/management.gen.go index 999246aa..9125f4e4 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 { @@ -3157,6 +3181,14 @@ func (c *ConnectionOptionsAzureAD) GetUseCommonEndpoint() bool { return *c.UseCommonEndpoint } +// GetUserIDAttribute returns the UserIDAttribute field if it's non-nil, zero value otherwise. +func (c *ConnectionOptionsAzureAD) GetUserIDAttribute() string { + if c == nil || c.UserIDAttribute == nil { + return "" + } + return *c.UserIDAttribute +} + // GetUseWSFederation returns the UseWSFederation field if it's non-nil, zero value otherwise. func (c *ConnectionOptionsAzureAD) GetUseWSFederation() bool { if c == nil || c.UseWSFederation == nil { @@ -4522,6 +4554,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 +5559,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 5964202a..253b58f6 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} @@ -3874,6 +3904,16 @@ func TestConnectionOptionsAzureAD_GetUseCommonEndpoint(tt *testing.T) { c.GetUseCommonEndpoint() } +func TestConnectionOptionsAzureAD_GetUserIDAttribute(tt *testing.T) { + var zeroValue string + c := &ConnectionOptionsAzureAD{UserIDAttribute: &zeroValue} + c.GetUserIDAttribute() + c = &ConnectionOptionsAzureAD{} + c.GetUserIDAttribute() + c = nil + c.GetUserIDAttribute() +} + func TestConnectionOptionsAzureAD_GetUseWSFederation(tt *testing.T) { var zeroValue bool c := &ConnectionOptionsAzureAD{UseWSFederation: &zeroValue} @@ -5584,6 +5624,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 +6860,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} 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..6b23b7a3 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-1726765770","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_Y7LemdCR6UEa0qGA","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/L5ofK2fE","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 383.956ms + duration: 177.838916ms - 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_Y7LemdCR6UEa0qGA 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-19T17:09:40.572Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 366.961792ms + duration: 175.825958ms 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..19b3f1d8 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-1726765770","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_XCw6yNNo2liNyEYU","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/Eb8B4R7OrRTL0jYHFrtWoUBq8X1JNE8s","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.856083ms + duration: 187.741875ms - 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_XCw6yNNo2liNyEYU 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-19T17:09:40.222Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 329.858125ms + duration: 172.200125ms 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..c0fc8866 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-1726765770","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_KAhLtRNvDbAcZMBj","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 363.491583ms + duration: 163.526125ms - 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_KAhLtRNvDbAcZMBj 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-19T17:09:41.293Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 358.612958ms + duration: 207.708875ms 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..2461ae74 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-1726765770","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_zMu8RDPcczLUT7LZ","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.161378458s + duration: 527.935709ms - 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_zMu8RDPcczLUT7LZ 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-19T17:09:31.501Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 372.204459ms + duration: 167.63275ms 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..07a9dc81 --- /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: 308 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AzureAD-Connection-1726765770","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"}},"user_id_attribute":"userName"}} + 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_i15x4wejYHrPK4uj","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"}},"user_id_attribute":"userName","thumbprints":["1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/eNNGNndi","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726765770","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726765770"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 422.7585ms + - 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_i15x4wejYHrPK4uj + 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-19T17:09:39.864Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 175.485292ms 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..a2a2c76a 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-1726765770","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_WeCg7AKOhhCJAIcC","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 355.267625ms + duration: 177.051959ms - 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_WeCg7AKOhhCJAIcC 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-19T17:09:33.747Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 346.820666ms + duration: 153.3435ms 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..5479d1c8 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-1726765770","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_nHsPBwCIIonDBNvA","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 328.45525ms + duration: 198.888625ms - 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_nHsPBwCIIonDBNvA 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-19T17:09:33.061Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 357.016541ms + duration: 206.226833ms 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..37aaab0b 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-1726765770","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_pi7vrwApQ04y0Rwi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 329.907792ms + duration: 164.670208ms - 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_pi7vrwApQ04y0Rwi 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-19T17:09:40.905Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 353.038375ms + duration: 163.21525ms 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..ac54c6b3 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-1726765770","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_7cAIeYfLmp47GxJQ","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 388.00275ms + duration: 162.698458ms - 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_7cAIeYfLmp47GxJQ 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-19T17:09:41.962Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 352.389834ms + duration: 173.282917ms 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..c1f6cf6f 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-1726765770","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_CxbRCp7UYmZkvnoK","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/rIrNDlqR","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 494.386625ms + duration: 238.665291ms - 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_CxbRCp7UYmZkvnoK 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-19T17:09:32.635Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 367.900041ms + duration: 183.932084ms 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..880d2cbd 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-1726765770","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_uWYUGyhNNWhHd1qG","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 364.11275ms + duration: 180.836125ms - 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_uWYUGyhNNWhHd1qG 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-19T17:09:32.219Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 372.373292ms + duration: 169.107167ms 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..3161e929 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-1726765770","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_TLI9uA2u8pROtPh7","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.244083ms + duration: 164.903875ms - 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_TLI9uA2u8pROtPh7 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-19T17:09:41.622Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 353.9405ms + duration: 159.336875ms 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..3b146df8 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-1726765770","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_MwVrWHxIrR9mQaXn","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726765770","enabled_clients":[],"realms":["Test-OIDC-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 495.284625ms + duration: 334.184375ms - 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_MwVrWHxIrR9mQaXn 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-19T17:09:48.357Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 466.204667ms + duration: 190.750375ms 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..595e8395 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-1726765770","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_mPOe2xiQX4xRJuik","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765770","enabled_clients":[],"realms":["Test-Okta-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 617.88775ms + duration: 798.86725ms - 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_mPOe2xiQX4xRJuik 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-19T17:09:49.325Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 332.492834ms + duration: 164.630458ms 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..0e823c26 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-1726765770","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_GqJn691IWrjvGHYO","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/wM07pUrE","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 435.125292ms + duration: 177.298458ms - 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_GqJn691IWrjvGHYO 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-19T17:09:49.671Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 436.62025ms + duration: 158.646417ms 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..7a51d016 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-1726765770","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_A3aoAXu5X066hUSF","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/C3ZDjpIc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 350.210375ms + duration: 183.071459ms - 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_A3aoAXu5X066hUSF 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-19T17:09:39.248Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 344.824041ms + duration: 5.322288959s 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..760db9de 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-1726765770","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_aHbTLFC4FMpxfNQP","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 340.851792ms + duration: 173.921541ms - 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_aHbTLFC4FMpxfNQP 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-19T17:09:33.410Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 344.044ms + duration: 176.224542ms 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..04670a9f 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-1726765770","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_o49TUNzOCzhMEMVO","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 377.860708ms + duration: 189.226333ms - 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_o49TUNzOCzhMEMVO 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-19T17:09:47.822Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 333.829875ms + duration: 177.253208ms 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..a1e0d540 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-1726765770","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_w7b5jTS3SbM9TxlT","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 363.12475ms + duration: 5.326614875s - 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_w7b5jTS3SbM9TxlT 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-19T17:09:47.461Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 364.028125ms + duration: 162.667959ms 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..22d5d3c7 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-1726765770","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_tsRmXpZ3kEpt6m0g","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 389.720583ms + duration: 175.2535ms - 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_tsRmXpZ3kEpt6m0g 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-19T17:09:31.855Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 376.670125ms + duration: 181.236208ms 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..5df1b6be 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-1726765770","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: 148.043875ms 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..5273e312 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-1726765770","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: 141.286791ms 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..889ba81d 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-1726765770","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: 160.728458ms 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..773f472a 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-1726765770","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: 163.301209ms 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..3ab0563d 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-1726765770","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_L9nqq8k2SRN2RXc8","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-RequireUsername-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 902.643167ms + duration: 175.217166ms - 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_L9nqq8k2SRN2RXc8 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-19T17:09:50.018Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 288.051167ms + duration: 160.562542ms 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..902d9307 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-1726765770","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_95gUwVDGjqdmvA20","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Email-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 269.858042ms + duration: 174.712458ms - 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_95gUwVDGjqdmvA20 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-19T17:09:50.726Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.755625ms + duration: 162.245708ms 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..41bb69d5 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-1726765770","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_JNJt2mC6XwGh3E4B","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Phone-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 271.787583ms + duration: 178.885167ms - 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_JNJt2mC6XwGh3E4B 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-19T17:09:50.372Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 256.782333ms + duration: 191.737208ms 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..f1bc28fa 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-1726765770","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_9ssqQUyj5QVWcd3m","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-Username-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 263.157833ms + duration: 181.124208ms - 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_9ssqQUyj5QVWcd3m 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-19T17:09:56.227Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 247.652208ms + duration: 5.334650125s diff --git a/test/data/recordings/TestConnectionManager_CreateSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_CreateSCIMConfiguration.yaml index a159e889..a1603d48 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-1726765923","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_OTwCGS8H0jCmqiJF","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-1726765923","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765923","enabled_clients":[],"realms":["Test-Okta-Connection-1726765923"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.968358292s + duration: 876.739917ms - 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_OTwCGS8H0jCmqiJF/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_OTwCGS8H0jCmqiJF","connection_name":"Test-Okta-Connection-1726765923","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-19T17:12:05.000Z","created_at":"2024-09-19T17:12:05.000Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 382.687208ms + duration: 170.263333ms - 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_OTwCGS8H0jCmqiJF/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_OTwCGS8H0jCmqiJF","connection_name":"Test-Okta-Connection-1726765923","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-19T17:12:05.000Z","created_at":"2024-09-19T17:12:05.000Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 450.482666ms + duration: 167.02575ms - 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_OTwCGS8H0jCmqiJF/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: 151.682875ms - 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_OTwCGS8H0jCmqiJF 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-19T17:12:05.474Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 376.519916ms + duration: 165.139333ms diff --git a/test/data/recordings/TestConnectionManager_CreateSCIMConfigurationWithoutBody.yaml b/test/data/recordings/TestConnectionManager_CreateSCIMConfigurationWithoutBody.yaml index 3068d337..206fde38 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-1726765925","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_yvWkb7NbQXEW9liE","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-1726765925","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765925","enabled_clients":[],"realms":["Test-Okta-Connection-1726765925"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 577.468458ms + duration: 666.802ms - 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_yvWkb7NbQXEW9liE/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_yvWkb7NbQXEW9liE","connection_name":"Test-Okta-Connection-1726765925","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-19T17:12:06.326Z","created_at":"2024-09-19T17:12:06.326Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 393.328ms + duration: 173.547209ms - 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_yvWkb7NbQXEW9liE/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_yvWkb7NbQXEW9liE","connection_name":"Test-Okta-Connection-1726765925","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-19T17:12:06.326Z","created_at":"2024-09-19T17:12:06.326Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 518.013375ms + duration: 151.605584ms - 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_yvWkb7NbQXEW9liE/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: 6.327208541s - 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_yvWkb7NbQXEW9liE 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-19T17:12:12.970Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 715.005417ms + duration: 164.790791ms diff --git a/test/data/recordings/TestConnectionManager_CreateSCIMToken.yaml b/test/data/recordings/TestConnectionManager_CreateSCIMToken.yaml index bc6fcec3..ec896767 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-1726765945","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_NvfqAVfWUv9xPYHz","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-1726765945","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765945","enabled_clients":[],"realms":["Test-Okta-Connection-1726765945"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.157456s + duration: 811.035542ms - 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_NvfqAVfWUv9xPYHz/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_NvfqAVfWUv9xPYHz","connection_name":"Test-Okta-Connection-1726765945","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-19T17:12:26.493Z","created_at":"2024-09-19T17:12:26.493Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 458.371833ms + duration: 183.47725ms - 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_NvfqAVfWUv9xPYHz/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_drWtRofv7rNsUNFk","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-09-19T17:12:26.674Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 360.190209ms + duration: 179.312708ms - 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_NvfqAVfWUv9xPYHz/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: 180.721542ms - 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_NvfqAVfWUv9xPYHz/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: 150.627ms - 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_NvfqAVfWUv9xPYHz 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-19T17:12:27.165Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 370.102583ms + duration: 151.501375ms diff --git a/test/data/recordings/TestConnectionManager_Delete.yaml b/test/data/recordings/TestConnectionManager_Delete.yaml index 400d0c6f..d585f6a4 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-1726765922","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_BigyJHWrJt11Jaf9","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-1726765922","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765922"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 828.671875ms + duration: 163.174958ms - 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_BigyJHWrJt11Jaf9 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-19T17:12:03.156Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 329.139917ms + duration: 158.991208ms - 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_BigyJHWrJt11Jaf9 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: 152.655334ms - 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_BigyJHWrJt11Jaf9 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-19T17:12:03.156Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 353.659875ms + status: 202 Accepted + code: 202 + duration: 144.429125ms diff --git a/test/data/recordings/TestConnectionManager_DeleteSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_DeleteSCIMConfiguration.yaml index 86033483..06fb9ea9 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-1726765934","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_jokCQ6pn24DERKCb","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-1726765934","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765934","enabled_clients":[],"realms":["Test-Okta-Connection-1726765934"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.121226709s + duration: 655.590833ms - 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_jokCQ6pn24DERKCb/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_jokCQ6pn24DERKCb","connection_name":"Test-Okta-Connection-1726765934","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-19T17:12:15.674Z","created_at":"2024-09-19T17:12:15.674Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 400.415959ms + duration: 179.552ms - 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_jokCQ6pn24DERKCb/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: 149.194959ms - 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_jokCQ6pn24DERKCb/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: 163.971458ms - 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_jokCQ6pn24DERKCb/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.855291ms - 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_jokCQ6pn24DERKCb 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-19T17:12:16.301Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 356.440833ms + duration: 157.621833ms diff --git a/test/data/recordings/TestConnectionManager_DeleteSCIMToken.yaml b/test/data/recordings/TestConnectionManager_DeleteSCIMToken.yaml index 21991bbf..27c82b23 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-1726765948","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_cKJyYTrGh9NknUZn","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-1726765948","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765948","enabled_clients":[],"realms":["Test-Okta-Connection-1726765948"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.347513083s + duration: 965.5835ms - 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_cKJyYTrGh9NknUZn/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_cKJyYTrGh9NknUZn","connection_name":"Test-Okta-Connection-1726765948","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-19T17:12:30.084Z","created_at":"2024-09-19T17:12:30.084Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 425.627375ms + duration: 180.362167ms - 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_cKJyYTrGh9NknUZn/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_yiYaL0h4hlOJHK81","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-09-19T17:12:30.239Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 402.489083ms + duration: 163.038208ms - 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_cKJyYTrGh9NknUZn/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_yiYaL0h4hlOJHK81","created_at":"2024-09-19T17:12:30.239Z","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: 5.314500625s - 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_cKJyYTrGh9NknUZn/scim-configuration/tokens/tok_yiYaL0h4hlOJHK81 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: 167.483291ms - 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_cKJyYTrGh9NknUZn/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: 159.248875ms - 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_cKJyYTrGh9NknUZn/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: 171.418542ms - 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_cKJyYTrGh9NknUZn/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: 144.884333ms - 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_cKJyYTrGh9NknUZn 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-19T17:12:36.359Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 409.206125ms + duration: 156.884ms diff --git a/test/data/recordings/TestConnectionManager_List.yaml b/test/data/recordings/TestConnectionManager_List.yaml index 7ce71ac5..c6eeb2d6 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-1726765923","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_do0osRrVR9LiIJTd","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-1726765923","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1726765923"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.072938375s + duration: 164.895958ms - 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_do0osRrVR9LiIJTd","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: 154.371834ms - 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_do0osRrVR9LiIJTd 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-19T17:12:03.942Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 328.540667ms + duration: 161.6505ms diff --git a/test/data/recordings/TestConnectionManager_ListSCIMTokens.yaml b/test/data/recordings/TestConnectionManager_ListSCIMTokens.yaml index fb081f09..c8ba0f29 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-1726765947","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_PfDpbX8EtqhP02MJ","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-1726765947","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765947","enabled_clients":[],"realms":["Test-Okta-Connection-1726765947"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.036779209s + duration: 781.898375ms - 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_PfDpbX8EtqhP02MJ/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_PfDpbX8EtqhP02MJ","connection_name":"Test-Okta-Connection-1726765947","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-19T17:12:28.130Z","created_at":"2024-09-19T17:12:28.130Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 403.237667ms + duration: 178.395333ms - 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_PfDpbX8EtqhP02MJ/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_5jrQgRfr7GQtqdul","token":"[REDACTED]","scopes":["get:users","post:users","put:users","patch:users"],"created_at":"2024-09-19T17:12:28.298Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 441.427ms + duration: 166.28425ms - 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_PfDpbX8EtqhP02MJ/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_5jrQgRfr7GQtqdul","created_at":"2024-09-19T17:12:28.298Z","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: 150.574583ms - 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_PfDpbX8EtqhP02MJ/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: 160.571416ms - 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_PfDpbX8EtqhP02MJ/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: 153.17075ms - 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_PfDpbX8EtqhP02MJ 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-19T17:12:28.927Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 1.611060291s + duration: 164.923375ms 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..c640098e 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-1726765770","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_x0nSZtAboun0Q87A","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/vAdwPwpa","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 350.364ms + duration: 194.08225ms - 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_x0nSZtAboun0Q87A 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_x0nSZtAboun0Q87A","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/vAdwPwpa","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 353.083208ms + duration: 163.432041ms - 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_x0nSZtAboun0Q87A 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-19T17:10:20.972Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 320.5215ms + duration: 154.989917ms - 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_x0nSZtAboun0Q87A 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-19T17:10:20.972Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 394.116541ms + status: 202 Accepted + code: 202 + duration: 143.89275ms 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..2c545b43 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-1726765770","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_ARHQbL0bhOMHCsx1","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/ag0TxWQSbHSSz7FEy2yHWdpBqrL0CLwm","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 338.068584ms + duration: 158.798458ms - 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_ARHQbL0bhOMHCsx1 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_ARHQbL0bhOMHCsx1","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/ag0TxWQSbHSSz7FEy2yHWdpBqrL0CLwm","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 349.556584ms + duration: 166.943708ms - 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_ARHQbL0bhOMHCsx1 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-19T17:10:20.284Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 345.545084ms + duration: 5.309832875s - 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_ARHQbL0bhOMHCsx1 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-19T17:10:20.284Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 6.626678375s + status: 202 Accepted + code: 202 + duration: 157.802333ms 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..3c56a98a 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-1726765770","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_0m0wfXItuZlXKs8J","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.227875ms + duration: 174.81975ms - 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_0m0wfXItuZlXKs8J 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_0m0wfXItuZlXKs8J","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 332.068209ms + duration: 158.988084ms - 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_0m0wfXItuZlXKs8J 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-19T17:10:22.330Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 447.952375ms + duration: 186.405209ms - 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_0m0wfXItuZlXKs8J 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-19T17:10:22.330Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 332.105666ms + status: 202 Accepted + code: 202 + duration: 136.7435ms 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..f248da57 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-1726765770","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_RAzzcHiOpPELefOb","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 797.860334ms + duration: 166.107084ms - 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_RAzzcHiOpPELefOb 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_RAzzcHiOpPELefOb","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 364.919833ms + duration: 151.182083ms - 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_RAzzcHiOpPELefOb 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-19T17:09:57.359Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 327.139792ms + duration: 160.69125ms - 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_RAzzcHiOpPELefOb 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-19T17:09:57.359Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 320.961042ms + status: 202 Accepted + code: 202 + duration: 133.222875ms 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..6d7cfb7b --- /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: 308 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AzureAD-Connection-1726765770","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"}},"user_id_attribute":"userName"}} + 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_bvxwwyeCkZfqwWci","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"}},"user_id_attribute":"userName","thumbprints":["1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/EDZL2DcZ","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726765770","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726765770"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 438.843542ms + - 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_bvxwwyeCkZfqwWci + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_bvxwwyeCkZfqwWci","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","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,"user_id_attribute":"userName","waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/EDZL2DcZ","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726765770","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726765770"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 387.835417ms + - 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_bvxwwyeCkZfqwWci + 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-19T17:10:14.521Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 171.644958ms + - 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_bvxwwyeCkZfqwWci + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 131.480875ms 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..924d4afa 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-1726765770","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_L881tAUtOYazKnMH","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 399.502083ms + duration: 170.551042ms - 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_L881tAUtOYazKnMH 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_L881tAUtOYazKnMH","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.206959ms + duration: 165.978917ms - 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_L881tAUtOYazKnMH 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-19T17:10:12.708Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 478.443875ms + duration: 171.741584ms - 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_L881tAUtOYazKnMH 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-19T17:10:12.708Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 353.65575ms + status: 202 Accepted + code: 202 + duration: 159.238708ms 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..7c580de5 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-1726765770","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_gYjZNugBZkJYGJ4d","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 384.920375ms + duration: 167.187ms - 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_gYjZNugBZkJYGJ4d 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_gYjZNugBZkJYGJ4d","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 338.224791ms + duration: 155.980792ms - 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_gYjZNugBZkJYGJ4d 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-19T17:10:06.228Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 353.717375ms + duration: 172.16525ms - 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_gYjZNugBZkJYGJ4d 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-19T17:10:06.228Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 314.753875ms + duration: 150.275917ms 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..530354d4 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-1726765770","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_wn6SzFbaAdyZQZtD","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.369792ms + duration: 196.859167ms - 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_wn6SzFbaAdyZQZtD 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_wn6SzFbaAdyZQZtD","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.065667ms + duration: 165.039625ms - 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_wn6SzFbaAdyZQZtD 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-19T17:10:21.666Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 409.334334ms + duration: 179.332333ms - 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_wn6SzFbaAdyZQZtD 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-19T17:10:21.666Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 408.962333ms + status: 202 Accepted + code: 202 + duration: 156.397292ms 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..c24293ea 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-1726765770","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_3UXr5Df3PI8X3YYt","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 339.808125ms + duration: 166.2705ms - 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_3UXr5Df3PI8X3YYt 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_3UXr5Df3PI8X3YYt","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 310.81775ms + duration: 164.925333ms - 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_3UXr5Df3PI8X3YYt 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-19T17:10:29.780Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 349.036834ms + duration: 195.325583ms - 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_3UXr5Df3PI8X3YYt 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:45.675Z"}' + body: '{"deleted_at":"2024-09-19T17:10:29.780Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 344.12775ms + duration: 135.034042ms 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..15f21eec 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-1726765770","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_DOR84FfKmBOXBh1d","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/1k0CP70Z","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 468.054584ms + duration: 284.860833ms - 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_DOR84FfKmBOXBh1d 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_DOR84FfKmBOXBh1d","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/1k0CP70Z","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 321.829125ms + duration: 153.65775ms - 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_DOR84FfKmBOXBh1d 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-19T17:10:05.551Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 346.397916ms + duration: 238.45275ms - 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_DOR84FfKmBOXBh1d 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-19T17:10:05.551Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 328.279125ms + duration: 138.968375ms 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..f8729832 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-1726765770","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_Ayk5r9VI9Pu7dmds","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 352.906625ms + duration: 168.46125ms - 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_Ayk5r9VI9Pu7dmds 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_Ayk5r9VI9Pu7dmds","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 363.881125ms + duration: 6.335908584s - 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_Ayk5r9VI9Pu7dmds 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-19T17:10:04.776Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.441166ms + duration: 164.582708ms - 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_Ayk5r9VI9Pu7dmds 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:22.375Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 390.45475ms + status: 204 No Content + code: 204 + duration: 142.967958ms 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..36c9b8d0 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-1726765770","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_HZw8U8ISdMxHMCBu","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 459.667167ms + duration: 6.292208417s - 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_HZw8U8ISdMxHMCBu 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_HZw8U8ISdMxHMCBu","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 577.483292ms + duration: 162.239167ms - 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_HZw8U8ISdMxHMCBu 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-19T17:10:29.106Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 340.815875ms + duration: 177.947583ms - 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_HZw8U8ISdMxHMCBu 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: 126.242583ms 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..aab96a07 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-1726765770","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_zyNY9Nj0ZrTpEucC","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726765770","enabled_clients":[],"realms":["Test-OIDC-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 499.51625ms + duration: 356.742916ms - 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_zyNY9Nj0ZrTpEucC 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_zyNY9Nj0ZrTpEucC","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726765770","enabled_clients":[],"realms":["Test-OIDC-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 345.431167ms + duration: 158.242834ms - 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_zyNY9Nj0ZrTpEucC 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-19T17:10:37.143Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 327.611042ms + duration: 174.078584ms - 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_zyNY9Nj0ZrTpEucC 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-19T17:10:37.143Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 336.887084ms + status: 202 Accepted + code: 202 + duration: 155.071708ms 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..4fa29b10 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-1726765770","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_KhXe8pv1aQaRNoHQ","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765770","enabled_clients":[],"realms":["Test-Okta-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 620.70325ms + duration: 773.088042ms - 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_KhXe8pv1aQaRNoHQ 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_KhXe8pv1aQaRNoHQ","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765770","enabled_clients":[],"realms":["Test-Okta-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 334.3025ms + duration: 156.105417ms - 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_KhXe8pv1aQaRNoHQ 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-19T17:10:38.398Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 704.891917ms + duration: 169.275209ms - 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_KhXe8pv1aQaRNoHQ 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-19T17:10:38.398Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 317.054417ms + duration: 163.129417ms 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..40044659 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-1726765770","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_qBCuS1AaCPkdvmlh","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/Z8SfJF32","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 361.766333ms + duration: 165.648917ms - 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_qBCuS1AaCPkdvmlh 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_qBCuS1AaCPkdvmlh","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/Z8SfJF32","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 340.971667ms + duration: 159.887166ms - 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_qBCuS1AaCPkdvmlh 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-19T17:10:39.055Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 412.491542ms + duration: 145.793125ms - 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_qBCuS1AaCPkdvmlh 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:53.705Z"}' + body: '{"deleted_at":"2024-09-19T17:10:39.055Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 374.138667ms + duration: 156.162291ms 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..7e306d64 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-1726765770","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_2yxdG4yShx7Egeco","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/gMbSQ1Gf","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 398.977708ms + duration: 178.86375ms - 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_2yxdG4yShx7Egeco 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_2yxdG4yShx7Egeco","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/gMbSQ1Gf","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 340.891166ms + duration: 169.231625ms - 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_2yxdG4yShx7Egeco 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-19T17:10:13.392Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 429.279542ms + duration: 148.726542ms - 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_2yxdG4yShx7Egeco 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-19T17:10:13.392Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 346.346875ms + status: 202 Accepted + code: 202 + duration: 131.926125ms 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..cde32c50 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-1726765770","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_okv0b9aozY7IzxYD","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 513.9165ms + duration: 152.918625ms - 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_okv0b9aozY7IzxYD 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_okv0b9aozY7IzxYD","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.678875ms + duration: 158.463417ms - 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_okv0b9aozY7IzxYD 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-19T17:10:06.860Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 410.3715ms + duration: 167.303625ms - 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_okv0b9aozY7IzxYD 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:26.874Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 416.808875ms + status: 204 No Content + code: 204 + duration: 5.335741208s 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..8102125e 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-1726765770","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_CJZlWt8hGp30PNvz","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 326.873834ms + duration: 214.822375ms - 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_CJZlWt8hGp30PNvz 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_CJZlWt8hGp30PNvz","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 313.401875ms + duration: 153.316875ms - 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_CJZlWt8hGp30PNvz 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-19T17:10:36.285Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 381.336083ms + duration: 5.3511535s - 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_CJZlWt8hGp30PNvz 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:48.629Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 511.058333ms + status: 204 No Content + code: 204 + duration: 165.995917ms 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..1d7db051 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-1726765770","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_GxViWYhYZf09K9E5","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 369.866583ms + duration: 177.635125ms - 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_GxViWYhYZf09K9E5 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_GxViWYhYZf09K9E5","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 407.859209ms + duration: 149.418875ms - 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_GxViWYhYZf09K9E5 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-19T17:10:30.420Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 502.293667ms + duration: 168.159208ms - 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_GxViWYhYZf09K9E5 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-19T17:10:30.420Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 316.352125ms + status: 202 Accepted + code: 202 + duration: 141.7885ms 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..2edb64a3 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-1726765770","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_kiCPIfYbgpCSGcih","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 332.632125ms + duration: 149.177459ms - 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_kiCPIfYbgpCSGcih 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_kiCPIfYbgpCSGcih","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 355.966417ms + duration: 139.359875ms - 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_kiCPIfYbgpCSGcih 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-19T17:09:57.953Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 342.890084ms + duration: 154.467916ms - 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_kiCPIfYbgpCSGcih 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-19T17:09:57.953Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 361.824834ms + status: 202 Accepted + code: 202 + duration: 146.306542ms 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..a2bd707b 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-1726765770","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_R7y47rZGm2IrsZ5D","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/m4UVeY7G","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 5.710824125s + duration: 184.963583ms - 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-1726765770&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_R7y47rZGm2IrsZ5D","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/m4UVeY7G","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 403.112334ms + duration: 144.375333ms - 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_R7y47rZGm2IrsZ5D 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-19T17:11:03.884Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 328.764666ms + duration: 148.514875ms - 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_R7y47rZGm2IrsZ5D 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-19T17:11:03.884Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 436.47375ms + duration: 155.917833ms 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..b7dc6165 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-1726765770","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_z0LhFuoIeKvHZ26B","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/imZIwFENRKf3FbKKy175pY1yH0gAf2Uc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 326.753166ms + duration: 172.43625ms - 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-1726765770&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_z0LhFuoIeKvHZ26B","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/imZIwFENRKf3FbKKy175pY1yH0gAf2Uc","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.130083ms + duration: 146.31925ms - 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_z0LhFuoIeKvHZ26B 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-19T17:11:03.237Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 331.01025ms + duration: 189.283917ms - 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_z0LhFuoIeKvHZ26B 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-19T17:11:03.237Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 312.649333ms + status: 202 Accepted + code: 202 + duration: 150.693084ms 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..949493ed 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-1726765770","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_Sf0Z7DcFrU3PMIyd","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 348.066084ms + duration: 168.6015ms - 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-1726765770&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_Sf0Z7DcFrU3PMIyd","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"realms":["Test-Apple-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 316.280125ms + duration: 164.717416ms - 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_Sf0Z7DcFrU3PMIyd 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-19T17:11:11.395Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 340.531958ms + duration: 159.488166ms - 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_Sf0Z7DcFrU3PMIyd 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-19T17:11:11.395Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 307.697292ms + status: 202 Accepted + code: 202 + duration: 134.44725ms 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..08607b42 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-1726765770","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_LpU8ptbF2BB65kAf","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 812.202167ms + duration: 192.294334ms - 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-1726765770&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_LpU8ptbF2BB65kAf","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-1726765770","is_domain_connection":false,"realms":["Test-Auth0-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.410917ms + duration: 151.400167ms - 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_LpU8ptbF2BB65kAf 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-19T17:10:45.864Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 989.603458ms + duration: 6.307406083s - 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_LpU8ptbF2BB65kAf method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 379.8115ms + duration: 147.770458ms 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..e4a98b32 --- /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: 308 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-AzureAD-Connection-1726765770","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"}},"user_id_attribute":"userName"}} + 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_z5HZ54XHpHePay0z","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"}},"user_id_attribute":"userName","thumbprints":["1fd9e3e40392b30329860d52171ee3695fa507dc","8a48f046b8d93d1e7c6bfc10c54ce9cc6b94378b","31cee5dc8cfdde0eeec2035e1269b0fd66063e4a","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/iONUmXtv","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726765770","enabled_clients":[],"realms":["Test-AzureAD-Connection-1726765770"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 455.850958ms + - 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-1726765770&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_z5HZ54XHpHePay0z","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","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,"user_id_attribute":"userName","waad_common_endpoint":false,"should_trust_email_verified_connection":"never_set_emails_as_verified"},"strategy":"waad","name":"Test-AzureAD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/waad/iONUmXtv","is_domain_connection":false,"show_as_button":false,"display_name":"Test-AzureAD-Connection-1726765770","realms":["Test-AzureAD-Connection-1726765770"],"enabled_clients":[]}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 155.298625ms + - 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_z5HZ54XHpHePay0z + 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-19T17:11:02.578Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 170.367083ms + - 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_z5HZ54XHpHePay0z + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 150.745167ms 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..13560279 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-1726765770","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_AXSBqOwKsXAkkuQE","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 404.771542ms + duration: 176.928125ms - 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-1726765770&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_AXSBqOwKsXAkkuQE","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-1726765770","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.61325ms + duration: 146.005375ms - 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_AXSBqOwKsXAkkuQE 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-19T17:10:54.848Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 333.687333ms + duration: 148.565375ms - 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_AXSBqOwKsXAkkuQE 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-19T17:10:54.848Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 373.838708ms + duration: 144.043709ms 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..aa425c09 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-1726765770","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_7GbbUR4HeYuLznYQ","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 343.757667ms + duration: 5.283099292s - 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-1726765770&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_7GbbUR4HeYuLznYQ","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-1726765770","is_domain_connection":false,"realms":["Test-Email-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 374.519708ms + duration: 153.895959ms - 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_7GbbUR4HeYuLznYQ 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-19T17:10:53.576Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 333.051833ms + duration: 160.82975ms - 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_7GbbUR4HeYuLznYQ 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-19T17:10:53.576Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 311.9795ms + duration: 141.115292ms 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..8c5f055c 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-1726765770","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_aaNeOTBMZ9Xedyuv","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 346.242291ms + duration: 163.435292ms - 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-1726765770&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_aaNeOTBMZ9Xedyuv","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"realms":["Test-Facebook-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.32525ms + duration: 6.364271166s - 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_aaNeOTBMZ9Xedyuv 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-19T17:11:10.736Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 325.861667ms + duration: 166.838666ms - 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_aaNeOTBMZ9Xedyuv 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:24.876Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 304.703291ms + status: 204 No Content + code: 204 + duration: 167.03825ms 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..577d2405 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-1726765770","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_9igOYELj5O4nAfIi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 343.616333ms + duration: 165.509292ms - 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-1726765770&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_9igOYELj5O4nAfIi","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"realms":["Test-GitHub-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 336.696875ms + duration: 139.407125ms - 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_9igOYELj5O4nAfIi 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-19T17:11:12.616Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 337.443625ms + duration: 159.351917ms - 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_9igOYELj5O4nAfIi 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: 6.28163475s 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..c3217688 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-1726765770","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_wU0bbOb8QBAoaLjs","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/wv8BWhnX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 477.005917ms + duration: 215.728125ms - 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-1726765770&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_wU0bbOb8QBAoaLjs","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/wv8BWhnX","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 457.007875ms + duration: 162.32675ms - 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_wU0bbOb8QBAoaLjs 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-19T17:10:47.846Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 441.548166ms + duration: 151.6195ms - 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_wU0bbOb8QBAoaLjs 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-19T17:10:47.846Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 314.826458ms + status: 202 Accepted + code: 202 + duration: 132.975ms 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..800aad59 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-1726765770","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_eJRUdxabcxBvjeoF","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 360.493292ms + duration: 167.7905ms - 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-1726765770&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_eJRUdxabcxBvjeoF","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-1726765770","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 319.3915ms + duration: 158.563458ms - 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_eJRUdxabcxBvjeoF 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-19T17:10:47.145Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 358.136041ms + duration: 160.802584ms - 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_eJRUdxabcxBvjeoF 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:07.743Z"}' + body: '{"deleted_at":"2024-09-19T17:10:47.145Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 378.220291ms + duration: 160.77175ms 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..be33c28a 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-1726765770","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_2gBL60BoexGHIpYk","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_liteprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 342.666208ms + duration: 158.6875ms - 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-1726765770&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_2gBL60BoexGHIpYk","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 337.3845ms + duration: 137.84075ms - 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_2gBL60BoexGHIpYk 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-19T17:11:12.002Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 325.439917ms + duration: 161.088958ms - 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_2gBL60BoexGHIpYk 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:27.510Z"}' + body: '{"deleted_at":"2024-09-19T17:11:12.002Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 386.39975ms + duration: 136.205708ms 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..1279c5a6 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-1726765770","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_bbsvRm8ReqCd1R4J","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726765770","enabled_clients":[],"realms":["Test-OIDC-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 603.3885ms + duration: 350.204666ms - 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-1726765770&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_bbsvRm8ReqCd1R4J","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1726765770","realms":["Test-OIDC-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.242375ms + duration: 147.307666ms - 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_bbsvRm8ReqCd1R4J 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-19T17:11:20.915Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.707083ms + duration: 153.95575ms - 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_bbsvRm8ReqCd1R4J method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 362.9335ms + duration: 143.821041ms 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..a9c0ec3f 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-1726765770","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_8FTu1O7iMJ3nB68l","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765770","enabled_clients":[],"realms":["Test-Okta-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.041564875s + duration: 900.191375ms - 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-1726765770&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_8FTu1O7iMJ3nB68l","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-1726765770","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765770","realms":["Test-Okta-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 509.725583ms + duration: 146.826208ms - 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_8FTu1O7iMJ3nB68l 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-19T17:11:22.284Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 339.382667ms + duration: 166.569917ms - 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_8FTu1O7iMJ3nB68l 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-19T17:11:22.284Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 386.975667ms + duration: 149.324208ms 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..13a9bc5d 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-1726765770","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_xDWPMJM2iUDg81O0","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/bHeAECez","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 396.583375ms + duration: 6.51945525s - 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-1726765770&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_xDWPMJM2iUDg81O0","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/bHeAECez","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 408.605083ms + duration: 157.222375ms - 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_xDWPMJM2iUDg81O0 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-19T17:11:29.270Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 410.584125ms + duration: 149.415167ms - 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_xDWPMJM2iUDg81O0 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-19T17:11:29.270Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 335.738875ms + status: 202 Accepted + code: 202 + duration: 142.804709ms 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..8b02d6d3 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-1726765770","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_7K0R6QrdTV5q6Da1","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/Bq0fUzns","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 367.211542ms + duration: 189.948042ms - 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-1726765770&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_7K0R6QrdTV5q6Da1","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-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/Bq0fUzns","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 322.228459ms + duration: 146.51025ms - 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_7K0R6QrdTV5q6Da1 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-19T17:11:01.649Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 331.640917ms + duration: 6.31630375s - 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_7K0R6QrdTV5q6Da1 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:15.287Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 419.533875ms + status: 204 No Content + code: 204 + duration: 144.948584ms 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..3be93a14 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-1726765770","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_BsdCDHpdB6pks0rX","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 338.048708ms + duration: 161.380084ms - 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-1726765770&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_BsdCDHpdB6pks0rX","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-1726765770","is_domain_connection":false,"realms":["Test-SMS-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 400.735542ms + duration: 157.052209ms - 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_BsdCDHpdB6pks0rX 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-19T17:10:54.207Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 408.584042ms + duration: 164.545167ms - 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_BsdCDHpdB6pks0rX 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-19T17:10:54.207Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 409.85725ms + duration: 148.668042ms 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..c6b88b60 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-1726765770","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_2IZR8xq4lgHt4M6y","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 336.914084ms + duration: 185.197084ms - 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-1726765770&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_2IZR8xq4lgHt4M6y","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.87ms + duration: 146.25825ms - 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_2IZR8xq4lgHt4M6y 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-19T17:11:20.025Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 363.419625ms + duration: 161.737791ms - 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_2IZR8xq4lgHt4M6y 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-19T17:11:20.025Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 312.71275ms + status: 202 Accepted + code: 202 + duration: 231.554209ms 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..f1a1f822 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-1726765770","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_hILnv5TkbtuiaR6k","options":{"strategy_version":2,"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":[]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.487042ms + duration: 164.488625ms - 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-1726765770&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_hILnv5TkbtuiaR6k","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 387.395416ms + duration: 158.951166ms - 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_hILnv5TkbtuiaR6k 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-19T17:11:19.390Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 410.282417ms + duration: 165.126333ms - 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_hILnv5TkbtuiaR6k method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 410.982208ms + duration: 140.833916ms 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..ed9bdece 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-1726765770","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_kezoY4chgty95EbV","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.772917ms + duration: 171.863458ms - 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-1726765770&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_kezoY4chgty95EbV","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726765770","is_domain_connection":false,"realms":["Test-Wordpress-Connection-1726765770"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 341.853791ms + duration: 157.623709ms - 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_kezoY4chgty95EbV 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-19T17:10:46.500Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 332.967375ms + duration: 166.93125ms - 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_kezoY4chgty95EbV 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-19T17:10:46.500Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 334.271875ms + status: 202 Accepted + code: 202 + duration: 141.52825ms diff --git a/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_ReadSCIMConfiguration.yaml index 8159ec13..e93259ca 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-1726765936","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_MrHp0auRnt2dhNKo","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-1726765936","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765936","enabled_clients":[],"realms":["Test-Okta-Connection-1726765936"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.331656458s + duration: 802.146417ms - 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_MrHp0auRnt2dhNKo/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_MrHp0auRnt2dhNKo","connection_name":"Test-Okta-Connection-1726765936","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-19T17:12:17.271Z","created_at":"2024-09-19T17:12:17.271Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 389.935959ms + duration: 166.495458ms - 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_MrHp0auRnt2dhNKo/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_MrHp0auRnt2dhNKo","connection_name":"Test-Okta-Connection-1726765936","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-19T17:12:17.271Z","created_at":"2024-09-19T17:12:17.271Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 357.953584ms + duration: 193.289125ms - 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_MrHp0auRnt2dhNKo/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: 164.650917ms - 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_MrHp0auRnt2dhNKo 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-19T17:12:17.794Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 376.916458ms + duration: 156.824625ms diff --git a/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml b/test/data/recordings/TestConnectionManager_ReadSCIMDefaultConfiguration.yaml index b3d7b5ac..367c1209 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-1726765937","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_rzyFrtvxKELVw1ly","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-1726765937","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765937","enabled_clients":[],"realms":["Test-Okta-Connection-1726765937"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 484.547541ms + duration: 6.9887995s - 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_rzyFrtvxKELVw1ly/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_rzyFrtvxKELVw1ly","connection_name":"Test-Okta-Connection-1726765937","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-19T17:12:24.975Z","created_at":"2024-09-19T17:12:24.975Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 816.32725ms + duration: 188.628667ms - 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_rzyFrtvxKELVw1ly/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: 156.9395ms - 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_rzyFrtvxKELVw1ly/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: 193.726333ms - 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_rzyFrtvxKELVw1ly 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-19T17:12:25.485Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 403.962875ms + duration: 168.719209ms 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..892e5ec5 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-1726765770","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_SzxVuWMr49VJ1ccn","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/8g4cP3Gft3w5hWVXzlBE86JamTi0MbWC","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 344.410334ms + duration: 171.083458ms - 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_SzxVuWMr49VJ1ccn 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_SzxVuWMr49VJ1ccn","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/8g4cP3Gft3w5hWVXzlBE86JamTi0MbWC","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 448.570083ms + duration: 171.325ms - 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_SzxVuWMr49VJ1ccn 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_SzxVuWMr49VJ1ccn","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"ad","name":"Test-AD-Connection-1726765770","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/8g4cP3Gft3w5hWVXzlBE86JamTi0MbWC","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 322.231792ms + duration: 153.646208ms - 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_SzxVuWMr49VJ1ccn 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-19T17:11:47.546Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 337.959166ms + duration: 150.605167ms 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..e8b7adbc 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-1726765770","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_HWmxQkKkv3Oetb8p","options":{},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 348.921709ms + duration: 181.269667ms - 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_HWmxQkKkv3Oetb8p 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_HWmxQkKkv3Oetb8p","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 355.444708ms + duration: 182.764625ms - 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_HWmxQkKkv3Oetb8p 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_HWmxQkKkv3Oetb8p","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 529.399083ms + duration: 180.568542ms - 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_HWmxQkKkv3Oetb8p 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-19T17:11:48.922Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 407.669792ms + duration: 236.229584ms 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..c32de312 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-1726765770","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_znGvDutOpvx0KM31","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.054093916s + duration: 334.042458ms - 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_znGvDutOpvx0KM31 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_znGvDutOpvx0KM31","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 368.411333ms + duration: 176.847709ms - 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_znGvDutOpvx0KM31 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_znGvDutOpvx0KM31","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 339.03675ms + duration: 163.227625ms - 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_znGvDutOpvx0KM31 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-19T17:11:30.248Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.445791ms + duration: 165.613417ms 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..e9d7ad50 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-1726765770","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_M1r8cElvUNqcejuZ","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 381.738375ms + duration: 171.9415ms - 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_M1r8cElvUNqcejuZ 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_M1r8cElvUNqcejuZ","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 340.817625ms + duration: 186.376541ms - 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_M1r8cElvUNqcejuZ 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_M1r8cElvUNqcejuZ","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 370.793583ms + duration: 6.300238875s - 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_M1r8cElvUNqcejuZ 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-19T17:11:46.885Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 329.6475ms + duration: 156.346084ms 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..2c135330 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-1726765770","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_kEUpjVsvYY4CyiUq","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 406.44075ms + duration: 168.317333ms - 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_kEUpjVsvYY4CyiUq 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_kEUpjVsvYY4CyiUq","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.085708ms + duration: 168.429584ms - 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_kEUpjVsvYY4CyiUq 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_kEUpjVsvYY4CyiUq","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.385125ms + duration: 165.895833ms - 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_kEUpjVsvYY4CyiUq 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-19T17:11:39.396Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 408.627375ms + duration: 150.472958ms 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..80cfffab 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-1726765770","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_sElBqIAFUrcjGnpm","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 337.285667ms + duration: 163.258333ms - 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_sElBqIAFUrcjGnpm 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_sElBqIAFUrcjGnpm","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 344.148833ms + duration: 181.479084ms - 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_sElBqIAFUrcjGnpm 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_sElBqIAFUrcjGnpm","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 320.207875ms + duration: 160.544875ms - 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_sElBqIAFUrcjGnpm 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-19T17:11:48.207Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 6.617861667s + duration: 152.56025ms 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..26b8e614 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-1726765770","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_BCdeIUCkPNJPlfI6","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 328.446541ms + duration: 161.582625ms - 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_BCdeIUCkPNJPlfI6 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_BCdeIUCkPNJPlfI6","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 365.121542ms + duration: 164.557417ms - 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_BCdeIUCkPNJPlfI6 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_BCdeIUCkPNJPlfI6","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.684084ms + duration: 132.87425ms - 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_BCdeIUCkPNJPlfI6 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-19T17:11:55.419Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 381.227416ms + duration: 160.104417ms 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..9df7341b 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-1726765770","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_IirjCBTAOG86TB3h","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/upZ6mDwt","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 391.310542ms + duration: 255.224542ms - 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_IirjCBTAOG86TB3h 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_IirjCBTAOG86TB3h","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/upZ6mDwt","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 400.50175ms + duration: 234.623125ms - 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_IirjCBTAOG86TB3h 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_IirjCBTAOG86TB3h","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-1726765770","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/upZ6mDwt","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 311.666334ms + duration: 163.747292ms - 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_IirjCBTAOG86TB3h 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-19T17:11:38.721Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 403.222958ms + duration: 160.364542ms 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..da10f1b1 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-1726765770","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_YNsX6TF7tgW4lA7n","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 340.064417ms + duration: 190.408292ms - 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_YNsX6TF7tgW4lA7n 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_YNsX6TF7tgW4lA7n","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 351.209042ms + duration: 164.964833ms - 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_YNsX6TF7tgW4lA7n 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_YNsX6TF7tgW4lA7n","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 315.872458ms + duration: 132.540834ms - 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_YNsX6TF7tgW4lA7n 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-19T17:11:37.901Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 318.002208ms + duration: 6.312887958s 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..4c97b436 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-1726765770","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_49UuMHnwdzCfIcQh","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 325.509792ms + duration: 5.319807209s - 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_49UuMHnwdzCfIcQh 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_49UuMHnwdzCfIcQh","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 388.11225ms + duration: 177.311875ms - 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_49UuMHnwdzCfIcQh 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_49UuMHnwdzCfIcQh","options":{"scope":["r_liteprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 511.497042ms + duration: 145.526625ms - 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_49UuMHnwdzCfIcQh 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-19T17:11:54.798Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 326.123125ms + duration: 149.911834ms 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..62023293 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-1726765770","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_7GZa6uk3Avyk78c6","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 407.244792ms + duration: 182.633167ms - 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_7GZa6uk3Avyk78c6 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_7GZa6uk3Avyk78c6","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 408.142209ms + duration: 161.731583ms - 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_7GZa6uk3Avyk78c6 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_7GZa6uk3Avyk78c6","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.7815ms + duration: 162.940625ms - 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_7GZa6uk3Avyk78c6 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-19T17:11:40.066Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 335.282125ms + duration: 168.591875ms 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..699c6a43 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-1726765770","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_mlWG6HWKeftcIxTL","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 324.308375ms + duration: 158.596125ms - 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_mlWG6HWKeftcIxTL 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_mlWG6HWKeftcIxTL","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 326.621541ms + duration: 168.948083ms - 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_mlWG6HWKeftcIxTL 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_mlWG6HWKeftcIxTL","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 316.0715ms + duration: 6.290843958s - 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_mlWG6HWKeftcIxTL 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-19T17:12:02.834Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 339.649ms + duration: 156.198167ms 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..8901db34 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-1726765770","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_DT7RBBVm5vd4O7K2","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 323.031542ms + duration: 163.122834ms - 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_DT7RBBVm5vd4O7K2 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_DT7RBBVm5vd4O7K2","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 326.617625ms + duration: 165.622333ms - 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_DT7RBBVm5vd4O7K2 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_DT7RBBVm5vd4O7K2","options":{"scope":[],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 400.32ms + duration: 136.682584ms - 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_DT7RBBVm5vd4O7K2 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-19T17:11:56.043Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 324.35775ms + duration: 154.35475ms 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..56a56252 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-1726765770","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_cPRZCuO6ad6Y3rEZ","options":{"profile":true,"scope":["profile"]},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 418.796333ms + duration: 151.118542ms - 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_cPRZCuO6ad6Y3rEZ 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_cPRZCuO6ad6Y3rEZ","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-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 339.303333ms + duration: 343.468583ms - 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_cPRZCuO6ad6Y3rEZ 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_cPRZCuO6ad6Y3rEZ","options":{"scope":["profile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2},"strategy":"wordpress","name":"Test-Wordpress-Connection-1726765770","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1726765770"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 426.611125ms + duration: 169.773208ms - 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_cPRZCuO6ad6Y3rEZ 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-19T17:11:31.094Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 338.965625ms + duration: 174.969625ms diff --git a/test/data/recordings/TestConnectionManager_UpdateSCIMConfiguration.yaml b/test/data/recordings/TestConnectionManager_UpdateSCIMConfiguration.yaml index 87568cdb..dcab908b 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-1726765933","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_UhcvPH20ShdDGE5i","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-1726765933","is_domain_connection":false,"show_as_button":false,"display_name":"Test-Okta-Connection-1726765933","enabled_clients":[],"realms":["Test-Okta-Connection-1726765933"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.10321925s + duration: 877.252166ms - 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_UhcvPH20ShdDGE5i/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_UhcvPH20ShdDGE5i","connection_name":"Test-Okta-Connection-1726765933","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-19T17:12:14.029Z","created_at":"2024-09-19T17:12:14.029Z","user_id_attribute":"externalId"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 403.439583ms + duration: 171.433125ms - 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_UhcvPH20ShdDGE5i/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_UhcvPH20ShdDGE5i","connection_name":"Test-Okta-Connection-1726765933","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-19T17:12:14.208Z","created_at":"2024-09-19T17:12:14.029Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 396.691583ms + duration: 171.784208ms - 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_UhcvPH20ShdDGE5i/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_UhcvPH20ShdDGE5i","connection_name":"Test-Okta-Connection-1726765933","strategy":"okta","mapping":[{"scim":"userName","auth0":"username"},{"scim":"email","auth0":"email"}],"updated_on":"2024-09-19T17:12:14.208Z","created_at":"2024-09-19T17:12:14.029Z","user_id_attribute":"userName"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 679.696292ms + duration: 161.0165ms - 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_UhcvPH20ShdDGE5i/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: 158.31725ms - 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_UhcvPH20ShdDGE5i/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: 163.353041ms - 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_UhcvPH20ShdDGE5i 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-19T17:12:14.838Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 373.156709ms + duration: 154.898875ms