diff --git a/management/management.gen.go b/management/management.gen.go index fc2efe75..c74c66a4 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -7747,6 +7747,14 @@ func (o *OrganizationConnection) GetConnectionID() string { return *o.ConnectionID } +// GetShowAsButton returns the ShowAsButton field if it's non-nil, zero value otherwise. +func (o *OrganizationConnection) GetShowAsButton() bool { + if o == nil || o.ShowAsButton == nil { + return false + } + return *o.ShowAsButton +} + // String returns a string representation of OrganizationConnection. func (o *OrganizationConnection) String() string { return Stringify(o) diff --git a/management/management.gen_test.go b/management/management.gen_test.go index 10a07d77..4e58a080 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -9709,6 +9709,16 @@ func TestOrganizationConnection_GetConnectionID(tt *testing.T) { o.GetConnectionID() } +func TestOrganizationConnection_GetShowAsButton(tt *testing.T) { + var zeroValue bool + o := &OrganizationConnection{ShowAsButton: &zeroValue} + o.GetShowAsButton() + o = &OrganizationConnection{} + o.GetShowAsButton() + o = nil + o.GetShowAsButton() +} + func TestOrganizationConnection_String(t *testing.T) { var rawJSON json.RawMessage v := &OrganizationConnection{} diff --git a/management/organization.go b/management/organization.go index 92e0d546..9b0617df 100644 --- a/management/organization.go +++ b/management/organization.go @@ -68,6 +68,10 @@ type OrganizationConnection struct { // Connection details Connection *OrganizationConnectionDetails `json:"connection,omitempty"` + + // Determines whether a connection should be displayed on this organization’s login prompt. + // Only applicable for enterprise connections. Default: true. + ShowAsButton *bool `json:"show_as_button,omitempty"` } // OrganizationConnectionDetails holds connection details for an Organization. diff --git a/management/organization_test.go b/management/organization_test.go index d7c42d81..0295b1e9 100644 --- a/management/organization_test.go +++ b/management/organization_test.go @@ -120,7 +120,7 @@ func TestOrganizationManager_AddConnection(t *testing.T) { conn := givenAConnection(t, connectionTestCase{connection: Connection{ Name: auth0.String(fmt.Sprintf("test-conn%v", rand.Intn(999))), DisplayName: auth0.String(fmt.Sprintf("Test Connection %v", rand.Intn(999))), - Strategy: auth0.String(ConnectionStrategyAuth0), + Strategy: auth0.String(ConnectionStrategyAD), EnabledClients: &[]string{ os.Getenv("AUTH0_CLIENT_ID"), client.GetClientID(), @@ -129,6 +129,7 @@ func TestOrganizationManager_AddConnection(t *testing.T) { orgConn := &OrganizationConnection{ ConnectionID: conn.ID, AssignMembershipOnLogin: auth0.Bool(true), + ShowAsButton: auth0.Bool(true), } err := api.Organization.AddConnection(context.Background(), org.GetID(), orgConn) @@ -159,6 +160,7 @@ func TestOrganizationManager_UpdateConnection(t *testing.T) { orgConn.GetConnectionID(), &OrganizationConnection{ AssignMembershipOnLogin: auth0.Bool(false), + ShowAsButton: auth0.Bool(false), }, ) assert.NoError(t, err) @@ -166,6 +168,7 @@ func TestOrganizationManager_UpdateConnection(t *testing.T) { actualOrgConn, err := api.Organization.Connection(context.Background(), org.GetID(), orgConn.GetConnectionID()) assert.NoError(t, err) assert.Equal(t, false, actualOrgConn.GetAssignMembershipOnLogin()) + assert.Equal(t, false, actualOrgConn.GetShowAsButton()) } func TestOrganizationManager_DeleteConnection(t *testing.T) { @@ -413,7 +416,7 @@ func givenAnOrganizationConnection(t *testing.T, orgID string) *OrganizationConn connection: Connection{ Name: auth0.String(fmt.Sprintf("test-conn%v", rand.Intn(999))), DisplayName: auth0.String(fmt.Sprintf("Test Connection %v", rand.Intn(999))), - Strategy: auth0.String(ConnectionStrategyAuth0), + Strategy: auth0.String(ConnectionStrategyAD), EnabledClients: &[]string{ os.Getenv("AUTH0_CLIENT_ID"), client.GetClientID(), @@ -423,6 +426,7 @@ func givenAnOrganizationConnection(t *testing.T, orgID string) *OrganizationConn orgConn := &OrganizationConnection{ ConnectionID: conn.ID, AssignMembershipOnLogin: auth0.Bool(true), + ShowAsButton: auth0.Bool(true), } err := api.Organization.AddConnection(context.Background(), orgID, orgConn) diff --git a/test/data/recordings/TestOrganizationManager_AddConnection.yaml b/test/data/recordings/TestOrganizationManager_AddConnection.yaml index 909ba47d..a6075792 100644 --- a/test/data/recordings/TestOrganizationManager_AddConnection.yaml +++ b/test/data/recordings/TestOrganizationManager_AddConnection.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 122 + content_length: 121 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-organization135","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} + {"name":"test-organization84","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations method: POST response: @@ -28,34 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 149 + content_length: 148 uncompressed: false - body: '{"name":"test-organization135","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_Q7iOAmBVkznO9qKC"}' + body: '{"name":"test-organization84","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_4qZ1E6dOgoRf4jUi"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 115.199042ms + duration: 921.481167ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 118 + content_length: 1125 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test Client (Jan 25 18:49:19.325)","description":"This is just a test client.","organization_usage":"allow"} + {"name":"Test Client (Apr 15 15:34:07.237)","description":"This is just a test client.","jwt_configuration":{"alg":"RS256"},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"name":"Test Credential (Apr 15 15:34:07.237)","credential_type":"public_key","pem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAua6LXMfgDE/tDdkOL1Oe\n3oWUwg1r4dSTg9L7RCcI5hItUzmkVofHtWN0H4CH2lm2ANmaJUsnhzctYowYW2+R\ntHvU9afTmtbdhpy993972hUqZSYLsE3iGziphYkOKVsqq38+VRH3TNg93zSLoRao\nJnTTkMXseVqiyqYRmFN8+gQQoEclHSGPUWQG5XMZ+hhuXeFyo+Yw/qbZWca/6/2I\n3rsca9jXR1alhxhHrXrg8N4Dm3gBgGbmiht6YYYT2Tyl1OqB9+iOI/9D7dfoCF6X\nAWJXRE454cmC8k8oucpjZVpflA+ocKshwPDR6YTLQYbXYiaWxEoaz0QGUErNQBnG\nI+sr9jDY3ua/s6HF6h0qyi/HVZH4wx+m4CtOfJoYTjrGBbaRszzUxhtSN2/MhXDu\n+a35q9/2zcu/3fjkkfVvGUt+NyyiYOKQ9vsJC1g/xxdUWtowjNwjfZE2zcG4usi8\nr38Bp0lmiipAsMLduZM/D5dFXkRdWCBNDfULmmg/4nv2wwjbjQuLemAMh7mmrztW\ni/85WMnjKQZT8NqS43pmgyIzg1gK1neMqdS90YmQ/PvJ36qALxCs245w1JpN9BAL\nJbwxCg/dbmKT7PalfWrksx9hGcJxtGqebldaOpw+5GVIPxxtC1C0gVr9BKeiDS3f\naibASY5pIRiKENmbZELDtucCAwEAAQ==\n-----END PUBLIC KEY-----"}]}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -66,32 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:49:19.325)","description":"This is just a test client.","client_id":"OflO6yT8umZN1YaR6B0nNuRXFs29ZoE6","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow"}' + body: '{"name":"Test Client (Apr 15 15:34:07.237)","description":"This is just a test client.","client_id":"QSzR53mpRPYLuZdrcb5EhKH4D900wd9o","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"id":"cred_mSP13LXRPRNqGt7pu6aucR","name":"Test Credential (Apr 15 15:34:07.237)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-15T10:04:07.562Z","updated_at":"2024-04-15T10:04:07.562Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 277.429167ms + duration: 556.251125ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 169 + content_length: 167 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-conn565","display_name":"Test Connection 43","strategy":"auth0","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","OflO6yT8umZN1YaR6B0nNuRXFs29ZoE6"]} + {"name":"test-conn758","display_name":"Test Connection 877","strategy":"ad","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","QSzR53mpRPYLuZdrcb5EhKH4D900wd9o"]} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -100,35 +100,35 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 390 + content_length: 422 uncompressed: false - body: '{"id":"con_C8S03WlnbPUvnIIK","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"test-conn565","is_domain_connection":false,"display_name":"Test Connection 43","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","OflO6yT8umZN1YaR6B0nNuRXFs29ZoE6"],"realms":["test-conn565"]}' + body: '{"id":"con_wmWO6ebGIGecPs04","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"test-conn758","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/STuLnVKze0coWD7XkGFEtAPIy30aFgbD","is_domain_connection":false,"show_as_button":false,"display_name":"Test Connection 877","enabled_clients":["QSzR53mpRPYLuZdrcb5EhKH4D900wd9o","T2QUXhLciH0CSlDCICirlExjNDIrsHJQ"],"realms":["test-conn758"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 142.779625ms + duration: 388.592875ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 75 + content_length: 97 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection_id":"con_C8S03WlnbPUvnIIK","assign_membership_on_login":true} + {"connection_id":"con_wmWO6ebGIGecPs04","assign_membership_on_login":true,"show_as_button":true} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_Q7iOAmBVkznO9qKC/enabled_connections + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_4qZ1E6dOgoRf4jUi/enabled_connections method: POST response: proto: HTTP/2.0 @@ -136,15 +136,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 130 + content_length: 149 uncompressed: false - body: '{"connection_id":"con_C8S03WlnbPUvnIIK","assign_membership_on_login":true,"connection":{"name":"test-conn565","strategy":"auth0"}}' + body: '{"connection_id":"con_wmWO6ebGIGecPs04","assign_membership_on_login":true,"show_as_button":true,"connection":{"name":"test-conn758","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 111.124041ms + duration: 351.179917ms - id: 4 request: proto: HTTP/1.1 @@ -162,8 +162,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_C8S03WlnbPUvnIIK + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wmWO6ebGIGecPs04 method: DELETE response: proto: HTTP/2.0 @@ -173,13 +173,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:49:20.073Z"}' + body: '{"deleted_at":"2024-04-15T10:04:08.822Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 172.283375ms + duration: 375.211416ms - id: 5 request: proto: HTTP/1.1 @@ -197,8 +197,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/OflO6yT8umZN1YaR6B0nNuRXFs29ZoE6 + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/QSzR53mpRPYLuZdrcb5EhKH4D900wd9o method: DELETE response: proto: HTTP/2.0 @@ -214,7 +214,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 182.829542ms + duration: 387.498125ms - id: 6 request: proto: HTTP/1.1 @@ -232,8 +232,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_Q7iOAmBVkznO9qKC + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_4qZ1E6dOgoRf4jUi method: DELETE response: proto: HTTP/2.0 @@ -249,4 +249,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 156.511625ms + duration: 351.149833ms diff --git a/test/data/recordings/TestOrganizationManager_Connection.yaml b/test/data/recordings/TestOrganizationManager_Connection.yaml index 3d22a064..95ca3f40 100644 --- a/test/data/recordings/TestOrganizationManager_Connection.yaml +++ b/test/data/recordings/TestOrganizationManager_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"test-organization964","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} + {"name":"test-organization721","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations method: POST response: @@ -30,32 +30,32 @@ interactions: trailer: {} content_length: 149 uncompressed: false - body: '{"name":"test-organization964","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_4QgqNll3Xtdbzb59"}' + body: '{"name":"test-organization721","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_cLwmwXZztvRUZQvY"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 195.643542ms + duration: 954.379375ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 118 + content_length: 1125 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test Client (Jan 25 18:49:20.569)","description":"This is just a test client.","organization_usage":"allow"} + {"name":"Test Client (Apr 15 15:36:26.491)","description":"This is just a test client.","jwt_configuration":{"alg":"RS256"},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"name":"Test Credential (Apr 15 15:36:26.491)","credential_type":"public_key","pem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAua6LXMfgDE/tDdkOL1Oe\n3oWUwg1r4dSTg9L7RCcI5hItUzmkVofHtWN0H4CH2lm2ANmaJUsnhzctYowYW2+R\ntHvU9afTmtbdhpy993972hUqZSYLsE3iGziphYkOKVsqq38+VRH3TNg93zSLoRao\nJnTTkMXseVqiyqYRmFN8+gQQoEclHSGPUWQG5XMZ+hhuXeFyo+Yw/qbZWca/6/2I\n3rsca9jXR1alhxhHrXrg8N4Dm3gBgGbmiht6YYYT2Tyl1OqB9+iOI/9D7dfoCF6X\nAWJXRE454cmC8k8oucpjZVpflA+ocKshwPDR6YTLQYbXYiaWxEoaz0QGUErNQBnG\nI+sr9jDY3ua/s6HF6h0qyi/HVZH4wx+m4CtOfJoYTjrGBbaRszzUxhtSN2/MhXDu\n+a35q9/2zcu/3fjkkfVvGUt+NyyiYOKQ9vsJC1g/xxdUWtowjNwjfZE2zcG4usi8\nr38Bp0lmiipAsMLduZM/D5dFXkRdWCBNDfULmmg/4nv2wwjbjQuLemAMh7mmrztW\ni/85WMnjKQZT8NqS43pmgyIzg1gK1neMqdS90YmQ/PvJ36qALxCs245w1JpN9BAL\nJbwxCg/dbmKT7PalfWrksx9hGcJxtGqebldaOpw+5GVIPxxtC1C0gVr9BKeiDS3f\naibASY5pIRiKENmbZELDtucCAwEAAQ==\n-----END PUBLIC KEY-----"}]}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -66,32 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:49:20.569)","description":"This is just a test client.","client_id":"tgshMHjbrYPEaPFG4qn4WLnkMFRVdw7Q","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow"}' + body: '{"name":"Test Client (Apr 15 15:36:26.491)","description":"This is just a test client.","client_id":"LZiSwDYwtYS6ceju5bc1MUrPjGev8Fyt","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"id":"cred_crapnviyMW3mK85LCiAYg9","name":"Test Credential (Apr 15 15:36:26.491)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-15T10:06:26.852Z","updated_at":"2024-04-15T10:06:26.852Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 439.738875ms + duration: 691.188ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 170 + content_length: 166 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-conn942","display_name":"Test Connection 705","strategy":"auth0","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","tgshMHjbrYPEaPFG4qn4WLnkMFRVdw7Q"]} + {"name":"test-conn84","display_name":"Test Connection 118","strategy":"ad","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","LZiSwDYwtYS6ceju5bc1MUrPjGev8Fyt"]} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -100,35 +100,35 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 391 + content_length: 420 uncompressed: false - body: '{"id":"con_ejbBKJC8i6QmviTS","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"test-conn942","is_domain_connection":false,"display_name":"Test Connection 705","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","tgshMHjbrYPEaPFG4qn4WLnkMFRVdw7Q"],"realms":["test-conn942"]}' + body: '{"id":"con_8vltfmSkOUXA8Ojf","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"test-conn84","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/rjv8DgP8RGsFUkt6DZQ7hGAIngmskf1Z","is_domain_connection":false,"show_as_button":false,"display_name":"Test Connection 118","enabled_clients":["LZiSwDYwtYS6ceju5bc1MUrPjGev8Fyt","T2QUXhLciH0CSlDCICirlExjNDIrsHJQ"],"realms":["test-conn84"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 112.588416ms + duration: 472.937375ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 75 + content_length: 97 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection_id":"con_ejbBKJC8i6QmviTS","assign_membership_on_login":true} + {"connection_id":"con_8vltfmSkOUXA8Ojf","assign_membership_on_login":true,"show_as_button":true} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_4QgqNll3Xtdbzb59/enabled_connections + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_cLwmwXZztvRUZQvY/enabled_connections method: POST response: proto: HTTP/2.0 @@ -136,15 +136,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 130 + content_length: 148 uncompressed: false - body: '{"connection_id":"con_ejbBKJC8i6QmviTS","assign_membership_on_login":true,"connection":{"name":"test-conn942","strategy":"auth0"}}' + body: '{"connection_id":"con_8vltfmSkOUXA8Ojf","assign_membership_on_login":true,"show_as_button":true,"connection":{"name":"test-conn84","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 114.7655ms + duration: 469.617334ms - id: 4 request: proto: HTTP/1.1 @@ -163,8 +163,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_4QgqNll3Xtdbzb59/enabled_connections/con_ejbBKJC8i6QmviTS + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_cLwmwXZztvRUZQvY/enabled_connections/con_8vltfmSkOUXA8Ojf method: GET response: proto: HTTP/2.0 @@ -174,13 +174,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"connection_id":"con_ejbBKJC8i6QmviTS","assign_membership_on_login":true,"connection":{"name":"test-conn942","strategy":"auth0"}}' + body: '{"connection_id":"con_8vltfmSkOUXA8Ojf","assign_membership_on_login":true,"show_as_button":true,"connection":{"name":"test-conn84","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.783458ms + duration: 374.944333ms - id: 5 request: proto: HTTP/1.1 @@ -198,8 +198,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ejbBKJC8i6QmviTS + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8vltfmSkOUXA8Ojf method: DELETE response: proto: HTTP/2.0 @@ -209,13 +209,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:49:21.759Z"}' + body: '{"deleted_at":"2024-04-15T10:06:28.744Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 344.734333ms + duration: 381.363ms - id: 6 request: proto: HTTP/1.1 @@ -233,8 +233,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/tgshMHjbrYPEaPFG4qn4WLnkMFRVdw7Q + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/LZiSwDYwtYS6ceju5bc1MUrPjGev8Fyt method: DELETE response: proto: HTTP/2.0 @@ -250,7 +250,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 139.524417ms + duration: 373.254583ms - id: 7 request: proto: HTTP/1.1 @@ -268,8 +268,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_4QgqNll3Xtdbzb59 + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_cLwmwXZztvRUZQvY method: DELETE response: proto: HTTP/2.0 @@ -285,4 +285,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 100.026333ms + duration: 330.088875ms diff --git a/test/data/recordings/TestOrganizationManager_Connections.yaml b/test/data/recordings/TestOrganizationManager_Connections.yaml index 75ede455..8e864f12 100644 --- a/test/data/recordings/TestOrganizationManager_Connections.yaml +++ b/test/data/recordings/TestOrganizationManager_Connections.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"test-organization357","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} + {"name":"test-organization822","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations method: POST response: @@ -30,32 +30,32 @@ interactions: trailer: {} content_length: 149 uncompressed: false - body: '{"name":"test-organization357","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_fU9xC78TKtgemYt6"}' + body: '{"name":"test-organization822","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_DQCKVHAJMWuMAsKd"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 110.145459ms + duration: 834.663375ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 118 + content_length: 1125 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test Client (Jan 25 18:49:24.811)","description":"This is just a test client.","organization_usage":"allow"} + {"name":"Test Client (Apr 15 15:37:10.466)","description":"This is just a test client.","jwt_configuration":{"alg":"RS256"},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"name":"Test Credential (Apr 15 15:37:10.466)","credential_type":"public_key","pem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAua6LXMfgDE/tDdkOL1Oe\n3oWUwg1r4dSTg9L7RCcI5hItUzmkVofHtWN0H4CH2lm2ANmaJUsnhzctYowYW2+R\ntHvU9afTmtbdhpy993972hUqZSYLsE3iGziphYkOKVsqq38+VRH3TNg93zSLoRao\nJnTTkMXseVqiyqYRmFN8+gQQoEclHSGPUWQG5XMZ+hhuXeFyo+Yw/qbZWca/6/2I\n3rsca9jXR1alhxhHrXrg8N4Dm3gBgGbmiht6YYYT2Tyl1OqB9+iOI/9D7dfoCF6X\nAWJXRE454cmC8k8oucpjZVpflA+ocKshwPDR6YTLQYbXYiaWxEoaz0QGUErNQBnG\nI+sr9jDY3ua/s6HF6h0qyi/HVZH4wx+m4CtOfJoYTjrGBbaRszzUxhtSN2/MhXDu\n+a35q9/2zcu/3fjkkfVvGUt+NyyiYOKQ9vsJC1g/xxdUWtowjNwjfZE2zcG4usi8\nr38Bp0lmiipAsMLduZM/D5dFXkRdWCBNDfULmmg/4nv2wwjbjQuLemAMh7mmrztW\ni/85WMnjKQZT8NqS43pmgyIzg1gK1neMqdS90YmQ/PvJ36qALxCs245w1JpN9BAL\nJbwxCg/dbmKT7PalfWrksx9hGcJxtGqebldaOpw+5GVIPxxtC1C0gVr9BKeiDS3f\naibASY5pIRiKENmbZELDtucCAwEAAQ==\n-----END PUBLIC KEY-----"}]}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -66,32 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:49:24.811)","description":"This is just a test client.","client_id":"mYBHLh1ry8mPOWJXJH0hzCEFQQvwi17M","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow"}' + body: '{"name":"Test Client (Apr 15 15:37:10.466)","description":"This is just a test client.","client_id":"wQURROJVkj9PY86OVVJCRtRwY0libUhW","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"id":"cred_mNhVpG7x6TyF6XHLrjNia4","name":"Test Credential (Apr 15 15:37:10.466)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-15T10:07:10.758Z","updated_at":"2024-04-15T10:07:10.758Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 215.105625ms + duration: 840.345792ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 169 + content_length: 167 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-conn718","display_name":"Test Connection 84","strategy":"auth0","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","mYBHLh1ry8mPOWJXJH0hzCEFQQvwi17M"]} + {"name":"test-conn654","display_name":"Test Connection 843","strategy":"ad","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","wQURROJVkj9PY86OVVJCRtRwY0libUhW"]} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -100,35 +100,35 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 390 + content_length: 422 uncompressed: false - body: '{"id":"con_z8CENUAj6wlc69jN","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"test-conn718","is_domain_connection":false,"display_name":"Test Connection 84","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","mYBHLh1ry8mPOWJXJH0hzCEFQQvwi17M"],"realms":["test-conn718"]}' + body: '{"id":"con_wBht67ufY2EmkB7K","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"test-conn654","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/gilUeE3nDsqhN1Vnvo0lgB2fouRstCIJ","is_domain_connection":false,"show_as_button":false,"display_name":"Test Connection 843","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","wQURROJVkj9PY86OVVJCRtRwY0libUhW"],"realms":["test-conn654"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.249078458s + duration: 483.944083ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 75 + content_length: 97 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection_id":"con_z8CENUAj6wlc69jN","assign_membership_on_login":true} + {"connection_id":"con_wBht67ufY2EmkB7K","assign_membership_on_login":true,"show_as_button":true} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_fU9xC78TKtgemYt6/enabled_connections + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_DQCKVHAJMWuMAsKd/enabled_connections method: POST response: proto: HTTP/2.0 @@ -136,15 +136,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 130 + content_length: 149 uncompressed: false - body: '{"connection_id":"con_z8CENUAj6wlc69jN","assign_membership_on_login":true,"connection":{"name":"test-conn718","strategy":"auth0"}}' + body: '{"connection_id":"con_wBht67ufY2EmkB7K","assign_membership_on_login":true,"show_as_button":true,"connection":{"name":"test-conn654","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 101.839667ms + duration: 357.131042ms - id: 4 request: proto: HTTP/1.1 @@ -163,8 +163,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_fU9xC78TKtgemYt6/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_DQCKVHAJMWuMAsKd/enabled_connections?include_totals=true&per_page=50 method: GET response: proto: HTTP/2.0 @@ -174,13 +174,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_z8CENUAj6wlc69jN","assign_membership_on_login":true,"connection":{"name":"test-conn718","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"enabled_connections":[{"connection_id":"con_wBht67ufY2EmkB7K","assign_membership_on_login":true,"show_as_button":true,"connection":{"name":"test-conn654","strategy":"ad"}}],"start":0,"limit":1,"total":1}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 106.961292ms + duration: 395.403583ms - id: 5 request: proto: HTTP/1.1 @@ -198,8 +198,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_z8CENUAj6wlc69jN + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wBht67ufY2EmkB7K method: DELETE response: proto: HTTP/2.0 @@ -209,13 +209,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:49:31.711Z"}' + body: '{"deleted_at":"2024-04-15T10:07:12.799Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 179.559542ms + duration: 371.515041ms - id: 6 request: proto: HTTP/1.1 @@ -233,8 +233,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/mYBHLh1ry8mPOWJXJH0hzCEFQQvwi17M + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/wQURROJVkj9PY86OVVJCRtRwY0libUhW method: DELETE response: proto: HTTP/2.0 @@ -250,7 +250,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 140.189125ms + duration: 409.419334ms - id: 7 request: proto: HTTP/1.1 @@ -268,8 +268,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_fU9xC78TKtgemYt6 + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_DQCKVHAJMWuMAsKd method: DELETE response: proto: HTTP/2.0 @@ -285,4 +285,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 147.910584ms + duration: 329.405542ms diff --git a/test/data/recordings/TestOrganizationManager_DeleteConnection.yaml b/test/data/recordings/TestOrganizationManager_DeleteConnection.yaml index 96354f34..22048c61 100644 --- a/test/data/recordings/TestOrganizationManager_DeleteConnection.yaml +++ b/test/data/recordings/TestOrganizationManager_DeleteConnection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"test-organization203","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} + {"name":"test-organization869","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations method: POST response: @@ -30,32 +30,32 @@ interactions: trailer: {} content_length: 149 uncompressed: false - body: '{"name":"test-organization203","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_2gwnZgeUmJlTtC9p"}' + body: '{"name":"test-organization869","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_7QbbZfpVBq0bnX3W"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 127.565875ms + duration: 941.749708ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 118 + content_length: 1125 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test Client (Jan 25 18:49:23.473)","description":"This is just a test client.","organization_usage":"allow"} + {"name":"Test Client (Apr 15 15:35:01.455)","description":"This is just a test client.","jwt_configuration":{"alg":"RS256"},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"name":"Test Credential (Apr 15 15:35:01.455)","credential_type":"public_key","pem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAua6LXMfgDE/tDdkOL1Oe\n3oWUwg1r4dSTg9L7RCcI5hItUzmkVofHtWN0H4CH2lm2ANmaJUsnhzctYowYW2+R\ntHvU9afTmtbdhpy993972hUqZSYLsE3iGziphYkOKVsqq38+VRH3TNg93zSLoRao\nJnTTkMXseVqiyqYRmFN8+gQQoEclHSGPUWQG5XMZ+hhuXeFyo+Yw/qbZWca/6/2I\n3rsca9jXR1alhxhHrXrg8N4Dm3gBgGbmiht6YYYT2Tyl1OqB9+iOI/9D7dfoCF6X\nAWJXRE454cmC8k8oucpjZVpflA+ocKshwPDR6YTLQYbXYiaWxEoaz0QGUErNQBnG\nI+sr9jDY3ua/s6HF6h0qyi/HVZH4wx+m4CtOfJoYTjrGBbaRszzUxhtSN2/MhXDu\n+a35q9/2zcu/3fjkkfVvGUt+NyyiYOKQ9vsJC1g/xxdUWtowjNwjfZE2zcG4usi8\nr38Bp0lmiipAsMLduZM/D5dFXkRdWCBNDfULmmg/4nv2wwjbjQuLemAMh7mmrztW\ni/85WMnjKQZT8NqS43pmgyIzg1gK1neMqdS90YmQ/PvJ36qALxCs245w1JpN9BAL\nJbwxCg/dbmKT7PalfWrksx9hGcJxtGqebldaOpw+5GVIPxxtC1C0gVr9BKeiDS3f\naibASY5pIRiKENmbZELDtucCAwEAAQ==\n-----END PUBLIC KEY-----"}]}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -66,32 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:49:23.473)","description":"This is just a test client.","client_id":"Lb7xTSPTTCDzJLsfrIonUWM3E9EFJ5DH","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow"}' + body: '{"name":"Test Client (Apr 15 15:35:01.455)","description":"This is just a test client.","client_id":"jycsbb3BHWY5YGpfV0Z76CULlKRezzZL","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"id":"cred_2QvDWdbDjjPvkAaBnXSnvy","name":"Test Credential (Apr 15 15:35:01.455)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-15T10:05:01.792Z","updated_at":"2024-04-15T10:05:01.792Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 327.031791ms + duration: 748.034708ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 170 + content_length: 167 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-conn840","display_name":"Test Connection 152","strategy":"auth0","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","Lb7xTSPTTCDzJLsfrIonUWM3E9EFJ5DH"]} + {"name":"test-conn232","display_name":"Test Connection 434","strategy":"ad","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","jycsbb3BHWY5YGpfV0Z76CULlKRezzZL"]} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -100,35 +100,35 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 391 + content_length: 422 uncompressed: false - body: '{"id":"con_eH1T9i9J6Of37vOE","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"test-conn840","is_domain_connection":false,"display_name":"Test Connection 152","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","Lb7xTSPTTCDzJLsfrIonUWM3E9EFJ5DH"],"realms":["test-conn840"]}' + body: '{"id":"con_Y4KtjuNLZPmYBrOS","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"test-conn232","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cWGojxcejsWX3nkvhrzYKQfRS0PuwMxy","is_domain_connection":false,"show_as_button":false,"display_name":"Test Connection 434","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","jycsbb3BHWY5YGpfV0Z76CULlKRezzZL"],"realms":["test-conn232"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 141.062333ms + duration: 388.230375ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 75 + content_length: 97 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection_id":"con_eH1T9i9J6Of37vOE","assign_membership_on_login":true} + {"connection_id":"con_Y4KtjuNLZPmYBrOS","assign_membership_on_login":true,"show_as_button":true} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_2gwnZgeUmJlTtC9p/enabled_connections + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_7QbbZfpVBq0bnX3W/enabled_connections method: POST response: proto: HTTP/2.0 @@ -136,15 +136,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 130 + content_length: 149 uncompressed: false - body: '{"connection_id":"con_eH1T9i9J6Of37vOE","assign_membership_on_login":true,"connection":{"name":"test-conn840","strategy":"auth0"}}' + body: '{"connection_id":"con_Y4KtjuNLZPmYBrOS","assign_membership_on_login":true,"show_as_button":true,"connection":{"name":"test-conn232","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 106.13625ms + duration: 377.613708ms - id: 4 request: proto: HTTP/1.1 @@ -162,8 +162,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_2gwnZgeUmJlTtC9p/enabled_connections/con_eH1T9i9J6Of37vOE + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_7QbbZfpVBq0bnX3W/enabled_connections/con_Y4KtjuNLZPmYBrOS method: DELETE response: proto: HTTP/2.0 @@ -179,7 +179,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 117.607042ms + duration: 343.740542ms - id: 5 request: proto: HTTP/1.1 @@ -198,8 +198,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_2gwnZgeUmJlTtC9p/enabled_connections/con_eH1T9i9J6Of37vOE + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_7QbbZfpVBq0bnX3W/enabled_connections/con_Y4KtjuNLZPmYBrOS method: GET response: proto: HTTP/2.0 @@ -215,7 +215,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 96.079916ms + duration: 348.886167ms - id: 6 request: proto: HTTP/1.1 @@ -233,8 +233,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eH1T9i9J6Of37vOE + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y4KtjuNLZPmYBrOS method: DELETE response: proto: HTTP/2.0 @@ -244,13 +244,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:49:24.460Z"}' + body: '{"deleted_at":"2024-04-15T10:05:03.920Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 119.501125ms + duration: 347.533333ms - id: 7 request: proto: HTTP/1.1 @@ -268,8 +268,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/Lb7xTSPTTCDzJLsfrIonUWM3E9EFJ5DH + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/jycsbb3BHWY5YGpfV0Z76CULlKRezzZL method: DELETE response: proto: HTTP/2.0 @@ -285,7 +285,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 183.242209ms + duration: 388.174875ms - id: 8 request: proto: HTTP/1.1 @@ -303,8 +303,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_2gwnZgeUmJlTtC9p + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_7QbbZfpVBq0bnX3W method: DELETE response: proto: HTTP/2.0 @@ -320,4 +320,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 126.745875ms + duration: 359.114834ms diff --git a/test/data/recordings/TestOrganizationManager_UpdateConnection.yaml b/test/data/recordings/TestOrganizationManager_UpdateConnection.yaml index 0ab6774c..7f8d5613 100644 --- a/test/data/recordings/TestOrganizationManager_UpdateConnection.yaml +++ b/test/data/recordings/TestOrganizationManager_UpdateConnection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"test-organization562","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} + {"name":"test-organization796","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations method: POST response: @@ -30,32 +30,32 @@ interactions: trailer: {} content_length: 149 uncompressed: false - body: '{"name":"test-organization562","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_ecGFaaKfxNFpN1Gj"}' + body: '{"name":"test-organization796","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_kf237VMZc1hgVSWx"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 102.522375ms + duration: 816.7655ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 118 + content_length: 1125 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test Client (Jan 25 18:49:22.049)","description":"This is just a test client.","organization_usage":"allow"} + {"name":"Test Client (Apr 15 15:34:52.844)","description":"This is just a test client.","jwt_configuration":{"alg":"RS256"},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"name":"Test Credential (Apr 15 15:34:52.844)","credential_type":"public_key","pem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAua6LXMfgDE/tDdkOL1Oe\n3oWUwg1r4dSTg9L7RCcI5hItUzmkVofHtWN0H4CH2lm2ANmaJUsnhzctYowYW2+R\ntHvU9afTmtbdhpy993972hUqZSYLsE3iGziphYkOKVsqq38+VRH3TNg93zSLoRao\nJnTTkMXseVqiyqYRmFN8+gQQoEclHSGPUWQG5XMZ+hhuXeFyo+Yw/qbZWca/6/2I\n3rsca9jXR1alhxhHrXrg8N4Dm3gBgGbmiht6YYYT2Tyl1OqB9+iOI/9D7dfoCF6X\nAWJXRE454cmC8k8oucpjZVpflA+ocKshwPDR6YTLQYbXYiaWxEoaz0QGUErNQBnG\nI+sr9jDY3ua/s6HF6h0qyi/HVZH4wx+m4CtOfJoYTjrGBbaRszzUxhtSN2/MhXDu\n+a35q9/2zcu/3fjkkfVvGUt+NyyiYOKQ9vsJC1g/xxdUWtowjNwjfZE2zcG4usi8\nr38Bp0lmiipAsMLduZM/D5dFXkRdWCBNDfULmmg/4nv2wwjbjQuLemAMh7mmrztW\ni/85WMnjKQZT8NqS43pmgyIzg1gK1neMqdS90YmQ/PvJ36qALxCs245w1JpN9BAL\nJbwxCg/dbmKT7PalfWrksx9hGcJxtGqebldaOpw+5GVIPxxtC1C0gVr9BKeiDS3f\naibASY5pIRiKENmbZELDtucCAwEAAQ==\n-----END PUBLIC KEY-----"}]}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -66,32 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:49:22.049)","description":"This is just a test client.","client_id":"p8AEF5zAuxDOQ5TFFHFIVF8LuqL5gTVb","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow"}' + body: '{"name":"Test Client (Apr 15 15:34:52.844)","description":"This is just a test client.","client_id":"tAIl2uwt3YMhKuD9a0XFQOBzCaOcYEnc","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"allow","client_authentication_methods":{"private_key_jwt":{"credentials":[{"id":"cred_vLbt9rHZ4qZVSd6V1zEHfc","name":"Test Credential (Apr 15 15:34:52.844)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-15T10:04:53.145Z","updated_at":"2024-04-15T10:04:53.145Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 369.166ms + duration: 717.283625ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 170 + content_length: 166 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-conn249","display_name":"Test Connection 734","strategy":"auth0","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","p8AEF5zAuxDOQ5TFFHFIVF8LuqL5gTVb"]} + {"name":"test-conn873","display_name":"Test Connection 71","strategy":"ad","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","tAIl2uwt3YMhKuD9a0XFQOBzCaOcYEnc"]} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.4.1 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -100,35 +100,35 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 391 + content_length: 421 uncompressed: false - body: '{"id":"con_z6XKqGCFsFmiPQBg","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"test-conn249","is_domain_connection":false,"display_name":"Test Connection 734","enabled_clients":["3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","p8AEF5zAuxDOQ5TFFHFIVF8LuqL5gTVb"],"realms":["test-conn249"]}' + body: '{"id":"con_m41MYchNZ82x3X0Z","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"test-conn873","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/I8epeUZ2SVWdTAaGqSPczd4NffPLWNtd","is_domain_connection":false,"show_as_button":false,"display_name":"Test Connection 71","enabled_clients":["T2QUXhLciH0CSlDCICirlExjNDIrsHJQ","tAIl2uwt3YMhKuD9a0XFQOBzCaOcYEnc"],"realms":["test-conn873"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 130.282083ms + duration: 367.242583ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 75 + content_length: 97 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection_id":"con_z6XKqGCFsFmiPQBg","assign_membership_on_login":true} + {"connection_id":"con_m41MYchNZ82x3X0Z","assign_membership_on_login":true,"show_as_button":true} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_ecGFaaKfxNFpN1Gj/enabled_connections + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_kf237VMZc1hgVSWx/enabled_connections method: POST response: proto: HTTP/2.0 @@ -136,35 +136,35 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 130 + content_length: 149 uncompressed: false - body: '{"connection_id":"con_z6XKqGCFsFmiPQBg","assign_membership_on_login":true,"connection":{"name":"test-conn249","strategy":"auth0"}}' + body: '{"connection_id":"con_m41MYchNZ82x3X0Z","assign_membership_on_login":true,"show_as_button":true,"connection":{"name":"test-conn873","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 136.570917ms + duration: 388.936417ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 37 + content_length: 60 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"assign_membership_on_login":false} + {"assign_membership_on_login":false,"show_as_button":false} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_ecGFaaKfxNFpN1Gj/enabled_connections/con_z6XKqGCFsFmiPQBg + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_kf237VMZc1hgVSWx/enabled_connections/con_m41MYchNZ82x3X0Z method: PATCH response: proto: HTTP/2.0 @@ -174,13 +174,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"connection_id":"con_z6XKqGCFsFmiPQBg","assign_membership_on_login":false,"connection":{"name":"test-conn249","strategy":"auth0"}}' + body: '{"connection_id":"con_m41MYchNZ82x3X0Z","assign_membership_on_login":false,"show_as_button":false,"connection":{"name":"test-conn873","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.4425ms + duration: 457.703416ms - id: 5 request: proto: HTTP/1.1 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_ecGFaaKfxNFpN1Gj/enabled_connections/con_z6XKqGCFsFmiPQBg + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_kf237VMZc1hgVSWx/enabled_connections/con_m41MYchNZ82x3X0Z method: GET response: proto: HTTP/2.0 @@ -210,13 +210,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"connection_id":"con_z6XKqGCFsFmiPQBg","assign_membership_on_login":false,"connection":{"name":"test-conn249","strategy":"auth0"}}' + body: '{"connection_id":"con_m41MYchNZ82x3X0Z","assign_membership_on_login":false,"show_as_button":false,"connection":{"name":"test-conn873","strategy":"ad"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.111125ms + duration: 330.929ms - id: 6 request: proto: HTTP/1.1 @@ -234,8 +234,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_z6XKqGCFsFmiPQBg + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_m41MYchNZ82x3X0Z method: DELETE response: proto: HTTP/2.0 @@ -245,13 +245,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:49:23.112Z"}' + body: '{"deleted_at":"2024-04-15T10:04:55.361Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 165.883375ms + duration: 345.639792ms - id: 7 request: proto: HTTP/1.1 @@ -269,8 +269,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/p8AEF5zAuxDOQ5TFFHFIVF8LuqL5gTVb + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/tAIl2uwt3YMhKuD9a0XFQOBzCaOcYEnc method: DELETE response: proto: HTTP/2.0 @@ -286,7 +286,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 161.027292ms + duration: 361.713167ms - id: 8 request: proto: HTTP/1.1 @@ -304,8 +304,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_ecGFaaKfxNFpN1Gj + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_kf237VMZc1hgVSWx method: DELETE response: proto: HTTP/2.0 @@ -321,4 +321,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 117.55175ms + duration: 319.443583ms