From d270ec92e31868e2a70dd68d2dc5e952ba94c901 Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:17:42 +0530 Subject: [PATCH 01/16] Unified Enviroment Variable Management using godotenv (#378) --- Makefile | 1 + authentication/authentication_test.go | 23 ++++++++++++++++------- management/management_test.go | 20 ++++++++++++++------ 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 923cd54f..77911d5c 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ $(GO_BIN)/golangci-lint: @go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest $(GO_BIN)/govulncheck: + ${call print, "Installing govulncheck"} @go install -v golang.org/x/vuln/cmd/govulncheck@latest #----------------------------------------------------------------------------------------------------------------------- diff --git a/authentication/authentication_test.go b/authentication/authentication_test.go index ff91ecd9..4acd2f8a 100644 --- a/authentication/authentication_test.go +++ b/authentication/authentication_test.go @@ -14,7 +14,7 @@ import ( "testing" "time" - _ "github.com/joho/godotenv/autoload" + "github.com/joho/godotenv" "github.com/lestrrat-go/jwx/v2/jwa" "github.com/lestrrat-go/jwx/v2/jwt" "github.com/stretchr/testify/assert" @@ -28,12 +28,12 @@ import ( ) var ( - domain = os.Getenv("AUTH0_DOMAIN") - clientID = os.Getenv("AUTH0_AUTH_CLIENT_ID") - clientSecret = os.Getenv("AUTH0_AUTH_CLIENT_SECRET") - mgmtClientID = os.Getenv("AUTH0_CLIENT_ID") - mgmtClientSecret = os.Getenv("AUTH0_CLIENT_SECRET") - httpRecordings = os.Getenv("AUTH0_HTTP_RECORDINGS") + domain string + clientID string + clientSecret string + mgmtClientID string + mgmtClientSecret string + httpRecordings string httpRecordingsEnabled = false authAPI = &Authentication{} mgmtAPI = &management.Management{} @@ -81,6 +81,15 @@ func envVarEnabled(envVar string) bool { } func TestMain(m *testing.M) { + _ = godotenv.Load("./../.env", ".env") + + domain = os.Getenv("AUTH0_DOMAIN") + clientID = os.Getenv("AUTH0_AUTH_CLIENT_ID") + clientSecret = os.Getenv("AUTH0_AUTH_CLIENT_SECRET") + mgmtClientID = os.Getenv("AUTH0_CLIENT_ID") + mgmtClientSecret = os.Getenv("AUTH0_CLIENT_SECRET") + httpRecordings = os.Getenv("AUTH0_HTTP_RECORDINGS") + httpRecordingsEnabled = envVarEnabled(httpRecordings) // If we're running in standard `make test` then set a specific clientID and clientSecret diff --git a/management/management_test.go b/management/management_test.go index 49c28dff..22cede6b 100644 --- a/management/management_test.go +++ b/management/management_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - _ "github.com/joho/godotenv/autoload" + "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/auth0/go-auth0" @@ -21,11 +21,11 @@ import ( ) var ( - domain = os.Getenv("AUTH0_DOMAIN") - clientID = os.Getenv("AUTH0_CLIENT_ID") - clientSecret = os.Getenv("AUTH0_CLIENT_SECRET") - debug = os.Getenv("AUTH0_DEBUG") - httpRecordings = os.Getenv("AUTH0_HTTP_RECORDINGS") + domain string + clientID string + clientSecret string + debug string + httpRecordings string httpRecordingsEnabled = false api = &Management{} ) @@ -35,6 +35,14 @@ func envVarEnabled(envVar string) bool { } func TestMain(m *testing.M) { + _ = godotenv.Load("./../.env", ".env") + + domain = os.Getenv("AUTH0_DOMAIN") + clientID = os.Getenv("AUTH0_CLIENT_ID") + clientSecret = os.Getenv("AUTH0_CLIENT_SECRET") + debug = os.Getenv("AUTH0_DEBUG") + httpRecordings = os.Getenv("AUTH0_HTTP_RECORDINGS") + httpRecordingsEnabled = envVarEnabled(httpRecordings) initializeTestClient() From 2a99bf0cd76fd29c3d6773a7f1ba78ed1c0c5b50 Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:20:48 +0530 Subject: [PATCH 02/16] [GH-373] Add support for oidc logout parameters (#384) Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> --- management/client.go | 17 +++++ management/client_test.go | 31 ++++++++ management/management.gen.go | 50 +++++++++++++ management/management.gen_test.go | 60 +++++++++++++++ .../TestClient_CreateWithOIDCLogout.yaml | 74 +++++++++++++++++++ 5 files changed, 232 insertions(+) create mode 100644 test/data/recordings/TestClient_CreateWithOIDCLogout.yaml diff --git a/management/client.go b/management/client.go index a122303d..f4e546c9 100644 --- a/management/client.go +++ b/management/client.go @@ -113,7 +113,11 @@ type Client struct { // URLs that are valid to call back from Auth0 for OIDC backchannel logout. // This feature currently must be enabled for your tenant. + // Deprecated: use OIDCLogout instead of OIDCBackchannelLogout. OIDCBackchannelLogout *OIDCBackchannelLogout `json:"oidc_backchannel_logout,omitempty"` + + // URLs that are valid to call back from Auth0 for OIDC logout. + OIDCLogout *OIDCLogout `json:"oidc_logout,omitempty"` } // ClientJWTConfiguration is used to configure JWT settings for our Client. @@ -224,10 +228,23 @@ type PrivateKeyJWT struct { } // OIDCBackchannelLogout defines the `oidc_backchannel_logout` settings for the client. +// Deprecated: use OIDCLogout instead of OIDCBackchannelLogout. type OIDCBackchannelLogout struct { BackChannelLogoutURLs *[]string `json:"backchannel_logout_urls,omitempty"` } +// OIDCLogout defines the `oidc_logout` settings for the client. +type OIDCLogout struct { + BackChannelLogoutURLs *[]string `json:"backchannel_logout_urls,omitempty"` + BackChannelLogoutInitiators *BackChannelLogoutInitiators `json:"backchannel_logout_initiators,omitempty"` +} + +// BackChannelLogoutInitiators defines the setting for OIDC logout initiators for a Client. +type BackChannelLogoutInitiators struct { + Mode *string `json:"mode,omitempty"` + SelectedInitiators *[]string `json:"selected_initiators,omitempty"` +} + // ClientAddons defines the `addons` settings for a Client. type ClientAddons struct { AWS *AWSClientAddon `json:"aws,omitempty"` diff --git a/management/client_test.go b/management/client_test.go index d9cc7628..73e4dade 100644 --- a/management/client_test.go +++ b/management/client_test.go @@ -126,6 +126,37 @@ func TestClient_CreateWithClientAddons(t *testing.T) { }) } +func TestClient_CreateWithOIDCLogout(t *testing.T) { + configureHTTPTestRecordings(t) + + expectedClient := &Client{ + Name: auth0.Stringf("Test Client OIDC Logout (%s)", time.Now().Format(time.StampMilli)), + OIDCLogout: &OIDCLogout{ + BackChannelLogoutURLs: &[]string{"https://example.com/logout"}, + BackChannelLogoutInitiators: &BackChannelLogoutInitiators{ + Mode: auth0.String("custom"), + SelectedInitiators: &[]string{ + "rp-logout", + "idp-logout", + }, + }, + }, + } + + err := api.Client.Create(context.Background(), expectedClient) + assert.NoError(t, err) + assert.NotEmpty(t, expectedClient.GetClientID()) + + oidcLogout := expectedClient.GetOIDCLogout() + assert.Equal(t, oidcLogout.GetBackChannelLogoutURLs(), []string{"https://example.com/logout"}) + assert.Equal(t, oidcLogout.GetBackChannelLogoutInitiators().GetMode(), "custom") + assert.Equal(t, oidcLogout.GetBackChannelLogoutInitiators().GetSelectedInitiators(), []string{"rp-logout", "idp-logout"}) + + t.Cleanup(func() { + cleanupClient(t, expectedClient.GetClientID()) + }) +} + func TestJWTConfiguration(t *testing.T) { t.Run("MarshalJSON", func(t *testing.T) { for clientJWTConfiguration, expected := range map[*ClientJWTConfiguration]string{ diff --git a/management/management.gen.go b/management/management.gen.go index 89a21a03..fc2efe75 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -856,6 +856,27 @@ func (a *AzureSBClientAddon) String() string { return Stringify(a) } +// GetMode returns the Mode field if it's non-nil, zero value otherwise. +func (b *BackChannelLogoutInitiators) GetMode() string { + if b == nil || b.Mode == nil { + return "" + } + return *b.Mode +} + +// GetSelectedInitiators returns the SelectedInitiators field if it's non-nil, zero value otherwise. +func (b *BackChannelLogoutInitiators) GetSelectedInitiators() []string { + if b == nil || b.SelectedInitiators == nil { + return nil + } + return *b.SelectedInitiators +} + +// String returns a string representation of BackChannelLogoutInitiators. +func (b *BackChannelLogoutInitiators) String() string { + return Stringify(b) +} + // String returns a string representation of BlacklistToken. func (b *BlacklistToken) String() string { return Stringify(b) @@ -1418,6 +1439,14 @@ func (c *Client) GetOIDCConformant() bool { return *c.OIDCConformant } +// GetOIDCLogout returns the OIDCLogout field. +func (c *Client) GetOIDCLogout() *OIDCLogout { + if c == nil { + return nil + } + return c.OIDCLogout +} + // GetOrganizationRequireBehavior returns the OrganizationRequireBehavior field if it's non-nil, zero value otherwise. func (c *Client) GetOrganizationRequireBehavior() string { if c == nil || c.OrganizationRequireBehavior == nil { @@ -7607,6 +7636,27 @@ func (o *OIDCBackchannelLogout) String() string { return Stringify(o) } +// GetBackChannelLogoutInitiators returns the BackChannelLogoutInitiators field. +func (o *OIDCLogout) GetBackChannelLogoutInitiators() *BackChannelLogoutInitiators { + if o == nil { + return nil + } + return o.BackChannelLogoutInitiators +} + +// GetBackChannelLogoutURLs returns the BackChannelLogoutURLs field if it's non-nil, zero value otherwise. +func (o *OIDCLogout) GetBackChannelLogoutURLs() []string { + if o == nil || o.BackChannelLogoutURLs == nil { + return nil + } + return *o.BackChannelLogoutURLs +} + +// String returns a string representation of OIDCLogout. +func (o *OIDCLogout) String() string { + return Stringify(o) +} + // GetBranding returns the Branding field. func (o *Organization) GetBranding() *OrganizationBranding { if o == nil { diff --git a/management/management.gen_test.go b/management/management.gen_test.go index af462fbb..10a07d77 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -1089,6 +1089,34 @@ func TestAzureSBClientAddon_String(t *testing.T) { } } +func TestBackChannelLogoutInitiators_GetMode(tt *testing.T) { + var zeroValue string + b := &BackChannelLogoutInitiators{Mode: &zeroValue} + b.GetMode() + b = &BackChannelLogoutInitiators{} + b.GetMode() + b = nil + b.GetMode() +} + +func TestBackChannelLogoutInitiators_GetSelectedInitiators(tt *testing.T) { + var zeroValue []string + b := &BackChannelLogoutInitiators{SelectedInitiators: &zeroValue} + b.GetSelectedInitiators() + b = &BackChannelLogoutInitiators{} + b.GetSelectedInitiators() + b = nil + b.GetSelectedInitiators() +} + +func TestBackChannelLogoutInitiators_String(t *testing.T) { + var rawJSON json.RawMessage + v := &BackChannelLogoutInitiators{} + if err := json.Unmarshal([]byte(v.String()), &rawJSON); err != nil { + t.Errorf("failed to produce a valid json") + } +} + func TestBlacklistToken_String(t *testing.T) { var rawJSON json.RawMessage v := &BlacklistToken{} @@ -1790,6 +1818,13 @@ func TestClient_GetOIDCConformant(tt *testing.T) { c.GetOIDCConformant() } +func TestClient_GetOIDCLogout(tt *testing.T) { + c := &Client{} + c.GetOIDCLogout() + c = nil + c.GetOIDCLogout() +} + func TestClient_GetOrganizationRequireBehavior(tt *testing.T) { var zeroValue string c := &Client{OrganizationRequireBehavior: &zeroValue} @@ -9539,6 +9574,31 @@ func TestOIDCBackchannelLogout_String(t *testing.T) { } } +func TestOIDCLogout_GetBackChannelLogoutInitiators(tt *testing.T) { + o := &OIDCLogout{} + o.GetBackChannelLogoutInitiators() + o = nil + o.GetBackChannelLogoutInitiators() +} + +func TestOIDCLogout_GetBackChannelLogoutURLs(tt *testing.T) { + var zeroValue []string + o := &OIDCLogout{BackChannelLogoutURLs: &zeroValue} + o.GetBackChannelLogoutURLs() + o = &OIDCLogout{} + o.GetBackChannelLogoutURLs() + o = nil + o.GetBackChannelLogoutURLs() +} + +func TestOIDCLogout_String(t *testing.T) { + var rawJSON json.RawMessage + v := &OIDCLogout{} + if err := json.Unmarshal([]byte(v.String()), &rawJSON); err != nil { + t.Errorf("failed to produce a valid json") + } +} + func TestOrganization_GetBranding(tt *testing.T) { o := &Organization{} o.GetBranding() diff --git a/test/data/recordings/TestClient_CreateWithOIDCLogout.yaml b/test/data/recordings/TestClient_CreateWithOIDCLogout.yaml new file mode 100644 index 00000000..9b63cded --- /dev/null +++ b/test/data/recordings/TestClient_CreateWithOIDCLogout.yaml @@ -0,0 +1,74 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 229 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test Client OIDC Logout (Apr 12 11:48:47.281)","oidc_logout":{"backchannel_logout_urls":["https://example.com/logout"],"backchannel_logout_initiators":{"mode":"custom","selected_initiators":["rp-logout","idp-logout"]}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Test Client OIDC Logout (Apr 12 11:48:47.281)","client_id":"w83ftZO5tsue8g6q1vsmGKYxdQ9mstVF","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"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},"oidc_backchannel_logout":{"backchannel_logout_urls":["https://example.com/logout"]},"oidc_logout":{"backchannel_logout_urls":["https://example.com/logout"],"backchannel_logout_initiators":{"mode":"custom","selected_initiators":["rp-logout","idp-logout"]}}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 829.976416ms + - 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.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/w83ftZO5tsue8g6q1vsmGKYxdQ9mstVF + 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: 196.064625ms From 421b8f7478bb2690ddbc2bc09d0fdaa595b2a3bc Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:32:53 +0530 Subject: [PATCH 03/16] Update Contribution Guidelines (#385) --- CONTRIBUTING.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 60d51c1d..7e7ea4d6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,6 +3,23 @@ We appreciate feedback and contribution to this repo. Before you submit a pull request, there are a couple requirements to satisfy. +## Prerequisites + +Ensure you have the following prerequisites met: + +- **Go Version**: You must have Go version 1.21 or newer installed on your system. You can check your Go version by running `go version` in your terminal. +- **GOPATH Set Up**: Make sure you have set up your GOPATH. +- **Export GOPATH**: Ensure you have exported your GOPATH to your system's environment variables. This allows tools and libraries to locate your Go workspace. +- **Modify bashrc or zshrc**: To automatically set your GOPATH and export it every time you open a terminal, you can add the following lines to your `~/.bashrc` or `~/.zshrc` file on Linux and macOS systems: +- **Enviroment File**: Ensure you have a `.env` file in the root folder of the repository or that the environment variables have been exported. + +```sh +export GOPATH=$HOME/go +export PATH=$PATH:$GOPATH/bin +``` + +After adding these lines, run source `~/.bashrc` or source `~/.zshrc` to apply the changes. + ## Generating the Getters The SDK offers safe getters in order to access pointer fields to avoid panics on nil pointers. @@ -20,6 +37,38 @@ fmt.Printf("Logo URI: %v", client.GetLogoURI()) When adding a new pointer field to a struct, run `make generate` to generate the getter for it. +## Code Quality and Security + +### Linting + +Before submitting your pull request, ensure your code follows the project's coding standards by running the linting task: + +```sh +make lint +``` + +This will run golangci-lint across the codebase, identifying potential stylistic issues and suspicious constructs. + +### Vulnerability Checking + +To check for any known vulnerabilities in the dependencies, run: + +```sh +make check-vuln +``` + +This uses govulncheck to scan the codebase for known security issues in the Go ecosystem. + +### Generating Accessors and Testing for Getters + +Ensure that your changes include any necessary updates to the accessor methods and that all struct field getters are correctly generated by running: + +```sh +make check-getters +``` + +This command will verify that all getters are up to date and generate any missing ones. + ## Running the Tests There are two ways of running the tests: @@ -32,7 +81,7 @@ There are two ways of running the tests: To run the tests against an Auth0 tenant start by creating an M2M app using `auth0 apps create --name go-auth0-mgmt-tests --description "App used for go-auth0 management tests" --type m2m`, then run `auth0 apps open `. Authorize the Management API in the `APIs` tab and enable all permissions. -Then create a local `.env` file in the `management` folder with the following settings: +Then create a `.env` file in the root folder of the repository with the following details : * `AUTH0_DOMAIN`: The **Domain** of the Auth0 tenant * `AUTH0_CLIENT_ID`: The **Client ID** of the M2M app @@ -43,7 +92,7 @@ Then create a local `.env` file in the `management` folder with the following se Now for the Authentication tests create another M2M app using `auth0 apps create --name go-auth0-auth-tests --description "App used for go-auth0 authentication tests" --type m2m`, then run `auth0 apps open `. Ensure all `Grant Types` except `Client Credentials` are enabled in `Advanced Settings`, then set the `Authentication Method` to `None` in the `Credentials` tab. -Then create a local `.env` file in the `authentication` folder with the following settings: +Then create a `.env` file in the root folder of the repository with the following details : * `AUTH0_DOMAIN`: The **Domain** of the Auth0 tenant * `AUTH0_CLIENT_ID`: The **Client ID** of the management M2M app From 8e8ef7f93a4fb41fb07ebca44b2b947647faa7c1 Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:07:06 +0530 Subject: [PATCH 04/16] Add show_as_button field to Organization Enabled Connection (#386) Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> --- management/management.gen.go | 8 ++ management/management.gen_test.go | 10 +++ management/organization.go | 4 + management/organization_test.go | 8 +- ...TestOrganizationManager_AddConnection.yaml | 68 +++++++-------- .../TestOrganizationManager_Connection.yaml | 72 ++++++++-------- .../TestOrganizationManager_Connections.yaml | 72 ++++++++-------- ...tOrganizationManager_DeleteConnection.yaml | 76 ++++++++--------- ...tOrganizationManager_UpdateConnection.yaml | 84 +++++++++---------- 9 files changed, 214 insertions(+), 188 deletions(-) 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 From 3b22216502239ac36a860590eaa585b6ea701edc Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Mon, 22 Apr 2024 19:04:04 +0530 Subject: [PATCH 05/16] [GH-358] Bug Fix sending "null" body in unnecessary requests (#387) --- management/management_request.go | 6 ++ management/management_request_test.go | 110 ++++++++++++++++++++ test/data/recordings/TestClient_Create.yaml | 14 +-- test/data/recordings/TestClient_Delete.yaml | 35 +++---- test/data/recordings/TestClient_Read.yaml | 29 +++--- 5 files changed, 154 insertions(+), 40 deletions(-) create mode 100644 management/management_request_test.go diff --git a/management/management_request.go b/management/management_request.go index 9d284afc..911bd023 100644 --- a/management/management_request.go +++ b/management/management_request.go @@ -45,13 +45,19 @@ func (m *Management) NewRequest( payload interface{}, options ...RequestOption, ) (*http.Request, error) { + const nullBody = "null\n" var body bytes.Buffer + if payload != nil { if err := json.NewEncoder(&body).Encode(payload); err != nil { return nil, fmt.Errorf("encoding request payload failed: %w", err) } } + if body.String() == nullBody { + body.Reset() + } + request, err := http.NewRequestWithContext(ctx, method, uri, &body) if err != nil { return nil, err diff --git a/management/management_request_test.go b/management/management_request_test.go new file mode 100644 index 00000000..196b8a98 --- /dev/null +++ b/management/management_request_test.go @@ -0,0 +1,110 @@ +package management + +import ( + "context" + "io" + "net/http" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/auth0/go-auth0" +) + +func TestNewRequest(t *testing.T) { + testCases := []struct { + name string + method string + endpoint string + payload interface{} + options []RequestOption + expectedError string + expectedBody string + }{ + { + name: "Create client request", + method: http.MethodPost, + endpoint: api.URI("clients"), + payload: &Client{Name: auth0.String("TestClient"), Description: auth0.String("Test description")}, + options: nil, + expectedError: "", + expectedBody: `{"name":"TestClient","description":"Test description"}` + "\n", + }, + { + name: "Read client request", + method: http.MethodGet, + endpoint: api.URI("clients", "c4vFzE4qeMgIEzRryyCmHcxGBZqswlbX"), + payload: nil, + options: nil, + expectedError: "", + expectedBody: "", + }, + { + name: "List clients request", + method: http.MethodGet, + endpoint: api.URI("clients"), + payload: nil, + options: nil, + expectedError: "", + expectedBody: "", + }, + { + name: "Update client request", + method: http.MethodPatch, + endpoint: api.URI("clients", "c4vFzE4qeMgIEzRryyCmHcxGBZqswlbX"), + payload: &Client{Name: auth0.String("UpdatedTestClient")}, + options: nil, + expectedError: "", + expectedBody: `{"name":"UpdatedTestClient"}` + "\n", + }, + { + name: "Delete client request", + method: http.MethodDelete, + endpoint: api.URI("clients", "c4vFzE4qeMgIEzRryyCmHcxGBZqswlbX"), + payload: nil, + options: nil, + expectedError: "", + expectedBody: "", + }, + { + name: "Invalid payload request", + method: http.MethodPost, + endpoint: api.URI("clients"), + payload: make(chan int), + options: nil, + expectedError: "encoding request payload failed: json: unsupported type: chan int", + expectedBody: "", + }, + { + name: "Map payload request", + method: http.MethodPost, + endpoint: api.URI("clients"), + payload: map[string]interface{}{}, + options: nil, + expectedError: "", + expectedBody: "{}" + "\n", + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + request, err := api.NewRequest(context.Background(), testCase.method, testCase.endpoint, testCase.payload, testCase.options...) + + if testCase.expectedError != "" { + assert.EqualError(t, err, testCase.expectedError) + assert.Nil(t, request) + return + } + + require.NoError(t, err) + require.NotNil(t, request) + + requestBody, err := io.ReadAll(request.Body) + require.NoError(t, err) + + assert.Equal(t, testCase.expectedBody, string(requestBody)) + assert.Equal(t, "application/json", request.Header.Get("Content-Type")) + }) + } +} diff --git a/test/data/recordings/TestClient_Create.yaml b/test/data/recordings/TestClient_Create.yaml index ff3c62e8..7cf964a0 100644 --- a/test/data/recordings/TestClient_Create.yaml +++ b/test/data/recordings/TestClient_Create.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test Client (Jan 25 18:43:11.315)","description":"This is just a test client."} + {"name":"Test Client (Apr 18 00:05:11.716)","description":"This is just a test client."} 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: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:43:11.315)","description":"This is just a test client.","client_id":"1zNkIwtV9MiEjalFxNb40N93DzfsVUji","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}}' + body: '{"name":"Test Client (Apr 18 00:05:11.716)","description":"This is just a test client.","client_id":"u8vAYkSbYi9yHyIaB42yFTL8FKDUiY4D","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"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}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 299.144041ms + duration: 853.283916ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/1zNkIwtV9MiEjalFxNb40N93DzfsVUji + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/u8vAYkSbYi9yHyIaB42yFTL8FKDUiY4D method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 177.123709ms + duration: 335.973125ms diff --git a/test/data/recordings/TestClient_Delete.yaml b/test/data/recordings/TestClient_Delete.yaml index 733d345f..c70b7fe4 100644 --- a/test/data/recordings/TestClient_Delete.yaml +++ b/test/data/recordings/TestClient_Delete.yaml @@ -6,20 +6,20 @@ interactions: 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:43:19.136)","description":"This is just a test client.","organization_usage":"allow"} + {"name":"Test Client (Apr 18 00:06:12.873)","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 18 00:06:12.873)","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: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:43:19.136)","description":"This is just a test client.","client_id":"Wc6PMUlSnPV38ybGK8NLI3RzGEpCeWoc","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 18 00:06:12.873)","description":"This is just a test client.","client_id":"TzopGgIWCuI8Awu9Q7mnbxM8LM5eqswH","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_iRyX8vFduftTMTgoisVa4t","name":"Test Credential (Apr 18 00:06:12.873)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-17T18:36:13.418Z","updated_at":"2024-04-17T18:36:13.418Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 338.214542ms + duration: 909.635417ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/Wc6PMUlSnPV38ybGK8NLI3RzGEpCeWoc + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/TzopGgIWCuI8Awu9Q7mnbxM8LM5eqswH method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 196.271333ms + duration: 402.913333ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/Wc6PMUlSnPV38ybGK8NLI3RzGEpCeWoc + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/TzopGgIWCuI8Awu9Q7mnbxM8LM5eqswH method: GET response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{}' + body: '{"client_secret":"[REDACTED]","signing_keys":[{"cert":"[REDACTED]"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 92.551708ms + duration: 302.272167ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/Wc6PMUlSnPV38ybGK8NLI3RzGEpCeWoc + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/TzopGgIWCuI8Awu9Q7mnbxM8LM5eqswH method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 100.669625ms + duration: 287.493125ms diff --git a/test/data/recordings/TestClient_Read.yaml b/test/data/recordings/TestClient_Read.yaml index a2271a6c..66e5c275 100644 --- a/test/data/recordings/TestClient_Read.yaml +++ b/test/data/recordings/TestClient_Read.yaml @@ -6,20 +6,20 @@ interactions: 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:43:11.794)","description":"This is just a test client.","organization_usage":"allow"} + {"name":"Test Client (Apr 18 00:06:00.912)","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 18 00:06:00.912)","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: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Test Client (Jan 25 18:43:11.794)","description":"This is just a test client.","client_id":"yQ5xpyLcYdMQzSqjS4WZNDJLrROHkbzh","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 18 00:06:00.912)","description":"This is just a test client.","client_id":"c4vFzE4qeMgIEzRryyCmHcxGBZqswlbX","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_5QM62z6ppkxXeP1pxNUPvS","name":"Test Credential (Apr 18 00:06:00.912)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-17T18:36:01.563Z","updated_at":"2024-04-17T18:36:01.563Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 290.961625ms + duration: 1.226535958s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/yQ5xpyLcYdMQzSqjS4WZNDJLrROHkbzh + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/c4vFzE4qeMgIEzRryyCmHcxGBZqswlbX method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Test Client (Jan 25 18:43:11.794)","description":"This is just a test client.","client_id":"yQ5xpyLcYdMQzSqjS4WZNDJLrROHkbzh","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 18 00:06:00.912)","description":"This is just a test client.","client_id":"c4vFzE4qeMgIEzRryyCmHcxGBZqswlbX","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_5QM62z6ppkxXeP1pxNUPvS"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.249792583s + duration: 311.131709ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/yQ5xpyLcYdMQzSqjS4WZNDJLrROHkbzh + - Go-Auth0/1.4.1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/c4vFzE4qeMgIEzRryyCmHcxGBZqswlbX method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 151.316333ms + duration: 349.441167ms From c87af6e29f0d3d06b740c513a31d3a5237f3d5c2 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:09:21 +0200 Subject: [PATCH 06/16] Release v1.5.0 (#389) --- .version | 2 +- CHANGELOG.md | 11 +++++++++++ meta.go | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.version b/.version index 9bdb566f..2e7bd910 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v1.4.1 \ No newline at end of file +v1.5.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2431d423..d76a77b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## [v1.5.0](https://github.com/auth0/go-auth0/tree/v1.5.0) (2024-04-23) +[Full Changelog](https://github.com/auth0/go-auth0/compare/v1.4.1...v1.5.0) + +**Added** +- Send extra parameters with client credentials request [\#354](https://github.com/auth0/go-auth0/pull/354) ([weirdian2k3](https://github.com/weirdian2k3)) +- Add support for `oidc_logout` parameters [\#384](https://github.com/auth0/go-auth0/pull/384) ([developerkunal](https://github.com/developerkunal)) +- Add `show_as_button` field to Organization Enabled Connection [\#386](https://github.com/auth0/go-auth0/pull/386) ([developerkunal](https://github.com/developerkunal)) + +**Fixed** +- Fix sending unnecessary `null` body in requests [\#387](https://github.com/auth0/go-auth0/pull/387) ([developerkunal](https://github.com/developerkunal)) + ## [v1.4.1](https://github.com/auth0/go-auth0/tree/v1.4.1) (2024-02-28) [Full Changelog](https://github.com/auth0/go-auth0/compare/v1.4.0...v1.4.1) diff --git a/meta.go b/meta.go index c9460bc3..9e7a32a3 100644 --- a/meta.go +++ b/meta.go @@ -1,4 +1,4 @@ package auth0 // Version is the package version. -var Version = "1.4.1" +var Version = "1.5.0" From 115901de371e9fca80e0c14f30e1a652385d7d44 Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Wed, 24 Apr 2024 16:59:55 +0530 Subject: [PATCH 07/16] Add Token for CodeCov Report --- .github/workflows/e2e-tests.yml | 3 ++- .github/workflows/main.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 3e15ec3b..b2941876 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -30,6 +30,7 @@ jobs: - name: Update codecov report uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@3.1.5 with: + token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.out fail_ci_if_error: false - verbose: true + verbose: true \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 034b66da..85aa47f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,6 +50,7 @@ jobs: - name: Update codecov report uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@3.1.5 with: + token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.out fail_ci_if_error: false verbose: true From f3560ac587e5b113c59122aeb8494a83aceb59b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 19:29:41 +0530 Subject: [PATCH 08/16] Bump codecov/codecov-action from 3.1.5 to 4.3.0 (#382) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/e2e-tests.yml | 2 +- .github/workflows/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index b2941876..40eac2ca 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -28,7 +28,7 @@ jobs: AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }} - name: Update codecov report - uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@3.1.5 + uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@4.3.0 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.out diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 85aa47f7..c95b8f4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,7 @@ jobs: run: make test - name: Update codecov report - uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@3.1.5 + uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@4.3.0 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.out From af854c4840638adcf1a42b97eede39fdc04009bf Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:56:49 +0530 Subject: [PATCH 09/16] Fix OIDC Connection DiscoveryURL TestCase (#392) --- management/connection_test.go | 1 + ...successfully_create_a_ADFS_Connection.yaml | 22 ++++----- ...n_successfully_create_a_AD_Connection.yaml | 18 +++---- ...uccessfully_create_a_Apple_Connection.yaml | 16 +++--- ...uccessfully_create_a_Auth0_Connection.yaml | 18 +++---- ...sfully_create_a_Custom_SMS_Connection.yaml | 20 ++++---- ...uccessfully_create_a_Email_Connection.yaml | 16 +++--- ...essfully_create_a_Facebook_Connection.yaml | 16 +++--- ...ccessfully_create_a_GitHub_Connection.yaml | 16 +++--- ...sfully_create_a_GoogleApps_Connection.yaml | 18 +++---- ...ully_create_a_GoogleOAuth2_Connection.yaml | 16 +++--- ...essfully_create_a_LinkedIn_Connection.yaml | 22 ++++----- ...successfully_create_a_OIDC_Connection.yaml | 20 ++++---- ...successfully_create_a_Okta_Connection.yaml | 18 +++---- ...lly_create_a_Ping_Federate_Connection.yaml | 16 +++--- ...successfully_create_a_SAML_Connection.yaml | 16 +++--- ..._successfully_create_a_SMS_Connection.yaml | 22 ++++----- ...sfully_create_a_SalesForce_Connection.yaml | 22 ++++----- ...fully_create_a_WindowsLive_Connection.yaml | 22 ++++----- .../TestConnectionManager_Delete.yaml | 41 ++++++++-------- .../TestConnectionManager_List.yaml | 35 +++++++------ ...n_successfully_read_a_ADFS_Connection.yaml | 41 ++++++++-------- ...can_successfully_read_a_AD_Connection.yaml | 37 +++++++------- ..._successfully_read_a_Apple_Connection.yaml | 43 ++++++++-------- ..._successfully_read_a_Auth0_Connection.yaml | 37 +++++++------- ...essfully_read_a_Custom_SMS_Connection.yaml | 45 +++++++++-------- ..._successfully_read_a_Email_Connection.yaml | 43 ++++++++-------- ...ccessfully_read_a_Facebook_Connection.yaml | 35 +++++++------ ...successfully_read_a_GitHub_Connection.yaml | 35 +++++++------ ...essfully_read_a_GoogleApps_Connection.yaml | 37 +++++++------- ...sfully_read_a_GoogleOAuth2_Connection.yaml | 35 +++++++------ ...ccessfully_read_a_LinkedIn_Connection.yaml | 35 +++++++------ ...n_successfully_read_a_OIDC_Connection.yaml | 47 +++++++++--------- ...n_successfully_read_a_Okta_Connection.yaml | 37 +++++++------- ...fully_read_a_Ping_Federate_Connection.yaml | 41 ++++++++-------- ...n_successfully_read_a_SAML_Connection.yaml | 43 ++++++++-------- ...an_successfully_read_a_SMS_Connection.yaml | 35 +++++++------ ...essfully_read_a_SalesForce_Connection.yaml | 43 ++++++++-------- ...ssfully_read_a_WindowsLive_Connection.yaml | 35 +++++++------ ...ly_find_a_ADFS_Connection_by_its_name.yaml | 35 +++++++------ ...ully_find_a_AD_Connection_by_its_name.yaml | 37 +++++++------- ...y_find_a_Apple_Connection_by_its_name.yaml | 43 ++++++++-------- ...y_find_a_Auth0_Connection_by_its_name.yaml | 37 +++++++------- ...d_a_Custom_SMS_Connection_by_its_name.yaml | 45 +++++++++-------- ...y_find_a_Email_Connection_by_its_name.yaml | 43 ++++++++-------- ...ind_a_Facebook_Connection_by_its_name.yaml | 35 +++++++------ ..._find_a_GitHub_Connection_by_its_name.yaml | 35 +++++++------ ...d_a_GoogleApps_Connection_by_its_name.yaml | 45 +++++++++-------- ...a_GoogleOAuth2_Connection_by_its_name.yaml | 49 +++++++++---------- ...ind_a_LinkedIn_Connection_by_its_name.yaml | 35 +++++++------ ...ly_find_a_OIDC_Connection_by_its_name.yaml | 45 +++++++++-------- ...ly_find_a_Okta_Connection_by_its_name.yaml | 43 ++++++++-------- ..._Ping_Federate_Connection_by_its_name.yaml | 49 +++++++++---------- ...ly_find_a_SAML_Connection_by_its_name.yaml | 43 ++++++++-------- ...lly_find_a_SMS_Connection_by_its_name.yaml | 35 +++++++------ ...d_a_SalesForce_Connection_by_its_name.yaml | 35 +++++++------ ..._a_WindowsLive_Connection_by_its_name.yaml | 35 +++++++------ ...n_successfully_update_a_AD_Connection.yaml | 39 +++++++-------- ...uccessfully_update_a_Apple_Connection.yaml | 37 +++++++------- ...uccessfully_update_a_Auth0_Connection.yaml | 39 +++++++-------- ...sfully_update_a_Custom_SMS_Connection.yaml | 41 ++++++++-------- ...uccessfully_update_a_Email_Connection.yaml | 43 ++++++++-------- ...essfully_update_a_Facebook_Connection.yaml | 43 ++++++++-------- ...ccessfully_update_a_GitHub_Connection.yaml | 43 ++++++++-------- ...sfully_update_a_GoogleApps_Connection.yaml | 39 +++++++-------- ...ully_update_a_GoogleOAuth2_Connection.yaml | 39 +++++++-------- ...essfully_update_a_LinkedIn_Connection.yaml | 37 +++++++------- ..._successfully_update_a_SMS_Connection.yaml | 37 +++++++------- ...sfully_update_a_SalesForce_Connection.yaml | 43 ++++++++-------- ...fully_update_a_WindowsLive_Connection.yaml | 37 +++++++------- 70 files changed, 1153 insertions(+), 1203 deletions(-) diff --git a/management/connection_test.go b/management/connection_test.go index 4354506a..fe1816d3 100644 --- a/management/connection_test.go +++ b/management/connection_test.go @@ -367,6 +367,7 @@ ZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g AuthorizationEndpoint: auth0.String("https://example.com"), JWKSURI: auth0.String("https://example.com/jwks"), Type: auth0.String("front_channel"), + DiscoveryURL: auth0.String("https://example.com//.well-known/openid-configuration"), UpstreamParams: map[string]interface{}{ "screen_name": map[string]interface{}{ "alias": "login_hint", 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 8ad767a2..6258f9fb 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1675099550","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-1714039090","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_3E5pG3gpHoOgvFIY","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-1675099550","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/UfydMqWU","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1675099550"]}' + body: '{"id":"con_99dCf1MTlQiNP56U","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/8Il6A5Qd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 444.808542ms + duration: 317.085292ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3E5pG3gpHoOgvFIY + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_99dCf1MTlQiNP56U method: DELETE response: proto: HTTP/2.0 @@ -63,12 +63,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:17.762Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 171.074334ms + status: 202 Accepted + code: 202 + duration: 289.661625ms 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 9ec2df1d..3b4dc799 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1674668511","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714039090","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 408 + content_length: 407 uncompressed: false - body: '{"id":"con_jgSwy6no6kdmpvIb","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/8gRJFxSqvVhtgXw5VuOohfaHEVdD2kou","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1674668511"]}' + body: '{"id":"con_HzF4tG8cdHmnnn30","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/ITTPn4ckD4O3R2JUiLJl0h0NjGGlBotS","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.282886458s + duration: 329.268584ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jgSwy6no6kdmpvIb + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HzF4tG8cdHmnnn30 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:35.916Z"}' + body: '{"deleted_at":"2024-04-25T09:58:17.153Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 132.793166ms + duration: 298.261542ms 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 2e92d7d0..5ba8c8b2 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-1674668511","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714039090","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_UwqvaPZt42Z3r8Ch","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1674668511"]}' + body: '{"id":"con_Y8Kj7ui38hZiC8fp","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 163.2495ms + duration: 304.10175ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UwqvaPZt42Z3r8Ch + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y8Kj7ui38hZiC8fp method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:36.504Z"}' + body: '{"deleted_at":"2024-04-25T09:58:19.013Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 141.128875ms + duration: 302.679292ms 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 270729b1..d83161e4 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1674668511","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714039090","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 382 + content_length: 577 uncompressed: false - body: '{"id":"con_c5zI4XDdzzbD0qav","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668511"]}' + body: '{"id":"con_pcnj6AYiMPfhD3Xj","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.24284425s + duration: 1.234447666s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_c5zI4XDdzzbD0qav + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pcnj6AYiMPfhD3Xj method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:27.472Z"}' + body: '{"deleted_at":"2024-04-25T09:58:11.936Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 163.993584ms + duration: 320.527083ms 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 0dba0b25..3d255407 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 610 + content_length: 635 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1674668511","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"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_request_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714039090","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 738 + content_length: 763 uncompressed: false - body: '{"id":"con_P9KDEp0MTOxd00dE","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"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_request_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1674668511"]}' + body: '{"id":"con_4ufaOPCb5X7w3CE3","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 114.816292ms + duration: 498.095167ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_P9KDEp0MTOxd00dE + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4ufaOPCb5X7w3CE3 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:29.061Z"}' + body: '{"deleted_at":"2024-04-25T09:58:15.876Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 180.880125ms + duration: 299.285917ms 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 eefd4252..ea80cd3a 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-1674668511","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-1714039090","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_IF0sUnFMZdHzrjPj","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1674668511"]}' + body: '{"id":"con_bOSN9UAfIz3cbLJ5","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 117.936625ms + duration: 320.399458ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IF0sUnFMZdHzrjPj + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bOSN9UAfIz3cbLJ5 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:28.392Z"}' + body: '{"deleted_at":"2024-04-25T09:58:14.445Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 233.213958ms + duration: 303.483833ms 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 419b577f..01d5985c 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-1674668511","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714039090","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_1gklGXesSxzH2Vg9","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1674668511"]}' + body: '{"id":"con_PgWaMhpWrX8NAyJG","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 116.796833ms + duration: 321.464792ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_1gklGXesSxzH2Vg9 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PgWaMhpWrX8NAyJG method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:36.183Z"}' + body: '{"deleted_at":"2024-04-25T09:58:18.398Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 160.698667ms + duration: 326.34525ms 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 220611f8..1081bd40 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-1674668511","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714039090","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_ojs63B9jVBIB0C9l","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1674668511"]}' + body: '{"id":"con_6R4edWvsVXC1sr4O","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 174.726ms + duration: 1.78463775s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ojs63B9jVBIB0C9l + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6R4edWvsVXC1sr4O method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:37.233Z"}' + body: '{"deleted_at":"2024-04-25T09:58:21.842Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 188.55475ms + duration: 685.960583ms 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 e52a4d9b..1e4929dc 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-1674668511","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-1714039090","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 628 + content_length: 627 uncompressed: false - body: '{"id":"con_TcuZVn6PZjcIKeab","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/0Gzf3l2h","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1674668511"]}' + body: '{"id":"con_iJf7zQKi1LHgzKoM","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039090","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/EGqzsZGc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 148.94875ms + duration: 424.161083ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TcuZVn6PZjcIKeab + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJf7zQKi1LHgzKoM method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:28.069Z"}' + body: '{"deleted_at":"2024-04-25T09:58:13.787Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 193.856042ms + duration: 341.964375ms 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 5daa6a09..78967b96 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-1674668511","strategy":"google-oauth2","options":{"allowed_audiences":["example.com","api.example.com"],"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleOAuth2-Connection-1714039090","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_KFlTdcjrZUE0epFX","options":{"allowed_audiences":["example.com","api.example.com"],"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1674668511"]}' + body: '{"id":"con_Sa4O6pSH5FKgxMr6","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 131.516583ms + duration: 402.828ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_KFlTdcjrZUE0epFX + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Sa4O6pSH5FKgxMr6 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:27.767Z"}' + body: '{"deleted_at":"2024-04-25T09:58:13.042Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 146.21625ms + duration: 700.637958ms 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 7232b88f..bd30a03e 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1674668511","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714039090","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_mOMPbi7TWQtyWndF","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1674668511"]}' + body: '{"id":"con_yU1dsr25pBOE4KoF","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 241.789084ms + duration: 304.820042ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_mOMPbi7TWQtyWndF + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1dsr25pBOE4KoF method: DELETE response: proto: HTTP/2.0 @@ -63,12 +63,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:19.609Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 165.032792ms + status: 202 Accepted + code: 202 + duration: 288.470875ms 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 83dfdefa..26501651 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: 394 + content_length: 456 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1674668511","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":null,"authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":null,"userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714039090","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 599 + content_length: 601 uncompressed: false - body: '{"id":"con_q20iJLSqDmjMGy1D","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":null,"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-1674668511","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1674668511","enabled_clients":[],"realms":["Test-OIDC-Connection-1674668511"]}' + body: '{"id":"con_gwUQcKszoR4YzqJh","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039090","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.237137875s + duration: 466.066583ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_q20iJLSqDmjMGy1D + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gwUQcKszoR4YzqJh method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:44.313Z"}' + body: '{"deleted_at":"2024-04-25T09:58:25.239Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 252.165584ms + duration: 1.0150705s 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 0a5abd8d..d618bcaa 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-1674668511","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-1714039090","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 687 + content_length: -1 uncompressed: false - body: '{"id":"con_xSoqAdBdR6y6ufdN","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://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid profile","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"okta","name":"Test-Okta-Connection-1674668511","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1674668511"]}' + body: '{"id":"con_UNM36xniapct7Fdg","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039090","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 753.129042ms + duration: 2.004119209s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xSoqAdBdR6y6ufdN + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UNM36xniapct7Fdg method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:45.307Z"}' + body: '{"deleted_at":"2024-04-25T09:58:27.774Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 246.875292ms + duration: 294.757417ms 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 115fba94..745ff8f9 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-1678372717","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-1714039090","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_R96acQao7HOUjVnE","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-1678372717","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/mw8OUGSy","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1678372717"]}' + body: '{"id":"con_zb1phW3cVWRcc1Z8","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/Xpsski7H","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 355.842625ms + duration: 309.462875ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_R96acQao7HOUjVnE + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zb1phW3cVWRcc1Z8 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-03-09T14:38:38.467Z"}' + body: '{"deleted_at":"2024-04-25T09:58:28.392Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 142.75ms + duration: 304.251458ms 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 a963ed29..93b78d2d 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1690280896","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-1714039090","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.5.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_ilvCPeyFVv8NrvR0","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-1690280896","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/QjocHwpG","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1690280896"]}' + body: '{"id":"con_Kq4CT6aSuGAE2tmh","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/TYwMKw5u","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 339.948292ms + duration: 338.630541ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ilvCPeyFVv8NrvR0 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Kq4CT6aSuGAE2tmh method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-07-25T10:28:16.521Z"}' + body: '{"deleted_at":"2024-04-25T09:58:16.520Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 144.648208ms + duration: 297.435833ms 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 31913297..833ced20 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-1674668511","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-1714039090","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_D5CYNHkBPXwhcvtu","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1674668511"]}' + body: '{"id":"con_iKq24od5UExzvR6v","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 171.869416ms + duration: 315.465333ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_D5CYNHkBPXwhcvtu + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iKq24od5UExzvR6v method: DELETE response: proto: HTTP/2.0 @@ -63,12 +63,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:15.065Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 143.876542ms + status: 202 Accepted + code: 202 + duration: 319.833583ms 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 e21e0e9d..e76c9358 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-1674668511","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714039090","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_IuEQGpQB7sMM5AOA","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1674668511"]}' + body: '{"id":"con_XcQCQDdgps4WlT0E","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 129.610958ms + duration: 298.047833ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IuEQGpQB7sMM5AOA + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XcQCQDdgps4WlT0E method: DELETE response: proto: HTTP/2.0 @@ -63,12 +63,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:23.986Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 143.272208ms + status: 202 Accepted + code: 202 + duration: 305.483166ms 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 7fd8042d..f0c852e8 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1674668511","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714039090","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_bRCOH9HFf6hTAVjk","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1674668511"]}' + body: '{"id":"con_OJEwRqLoDmRsrQwX","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039090"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 113.309833ms + duration: 996.973917ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bRCOH9HFf6hTAVjk + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OJEwRqLoDmRsrQwX method: DELETE response: proto: HTTP/2.0 @@ -63,12 +63,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:23.380Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 192.135584ms + status: 202 Accepted + code: 202 + duration: 292.195167ms diff --git a/test/data/recordings/TestConnectionManager_Delete.yaml b/test/data/recordings/TestConnectionManager_Delete.yaml index f08be318..6b9fa3c8 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-1674668735","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1714039361","strategy":"auth0"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 325 + content_length: 520 uncompressed: false - body: '{"id":"con_Uh1mK3tMnOvprXGz","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668735","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668735"]}' + body: '{"id":"con_eDAiZ1UPsIUzjZZD","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039361","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039361"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 143.8485ms + duration: 719.911542ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Uh1mK3tMnOvprXGz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD method: DELETE response: proto: HTTP/2.0 @@ -63,35 +63,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:02:42.108Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 190.307125ms + status: 202 Accepted + code: 202 + duration: 307.303583ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Uh1mK3tMnOvprXGz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 92.2415ms + duration: 286.915125ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Uh1mK3tMnOvprXGz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 116.961208ms + duration: 278.150167ms diff --git a/test/data/recordings/TestConnectionManager_List.yaml b/test/data/recordings/TestConnectionManager_List.yaml index b83ddcb1..8a734bb0 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-1674668736","strategy":"auth0"} + {"name":"Test-Auth0-Connection-List-1714039374","strategy":"auth0"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,34 +28,33 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 335 + content_length: 530 uncompressed: false - body: '{"id":"con_uDjgqwHVu4PxYE7U","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-List-1674668736","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1674668736"]}' + body: '{"id":"con_DuRWr9eEHgCRBxh5","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-List-1714039374","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1714039374"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 132.511792ms + duration: 680.305709ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":8,"start":0,"limit":50,"connections":[{"id":"con_HMVQGtsmSqSxkSVh","is_domain_connection":false},{"id":"con_47S3hqmuxbaOvPiB","is_domain_connection":false},{"id":"con_OX3PbtQiHlGEFyjC","is_domain_connection":false},{"id":"con_bj23KQ8QtEd1l4EV","is_domain_connection":false},{"id":"con_AyuS1yvUEQjoFaoX","is_domain_connection":false},{"id":"con_vdBe5gMM9KrNxicl","is_domain_connection":false},{"id":"con_uDjgqwHVu4PxYE7U","is_domain_connection":false},{"id":"con_ftSSLHb0O7rcUGmF","is_domain_connection":false}]}' + body: '{"total":5,"start":0,"limit":50,"connections":[{"id":"con_zKW9Xxoj0tFV5LnK","is_domain_connection":false},{"id":"con_hxpwEaue9vG1Nmah","is_domain_connection":false},{"id":"con_DuRWr9eEHgCRBxh5","is_domain_connection":false},{"id":"con_j2mkms4M0wmxNiSx","is_domain_connection":false},{"id":"con_o1RfqDaIvuekh5T5","is_domain_connection":false}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 94.039292ms + duration: 280.450917ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uDjgqwHVu4PxYE7U + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DuRWr9eEHgCRBxh5 method: DELETE response: proto: HTTP/2.0 @@ -99,12 +98,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:02:56.036Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 150.248708ms + status: 202 Accepted + code: 202 + duration: 300.531209ms 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 51a6876b..39a31625 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1675099558","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-1714039119","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_vfghlk5WOESlXbdR","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-1675099558","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/mjtVfNWe","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1675099558"]}' + body: '{"id":"con_Pf8jZhMH5fUfas7S","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/agYNWXCB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.757118375s + duration: 1.828168125s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vfghlk5WOESlXbdR + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_vfghlk5WOESlXbdR","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-1675099558","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/mjtVfNWe","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1675099558"]}' + body: '{"id":"con_Pf8jZhMH5fUfas7S","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/agYNWXCB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 167.136542ms + duration: 283.031666ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vfghlk5WOESlXbdR + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:57.761Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 225.648125ms + status: 202 Accepted + code: 202 + duration: 359.249042ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vfghlk5WOESlXbdR + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 143.929333ms + duration: 281.2415ms 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 878e96d4..957f34f2 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1674668511","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714039119","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 408 + content_length: 407 uncompressed: false - body: '{"id":"con_wonErjgQhxlKPXzd","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/ydwBxeneYYppAZFd6c6caYZfaUNLxfLd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1674668511"]}' + body: '{"id":"con_liiPTODci0164g0d","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d8yQjHWI7ZmcelIM8QCz7PqVZTPRHS6d","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 125.331417ms + duration: 312.809166ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wonErjgQhxlKPXzd + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_wonErjgQhxlKPXzd","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/ydwBxeneYYppAZFd6c6caYZfaUNLxfLd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1674668511"]}' + body: '{"id":"con_liiPTODci0164g0d","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d8yQjHWI7ZmcelIM8QCz7PqVZTPRHS6d","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 99.9145ms + duration: 287.541791ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wonErjgQhxlKPXzd + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:02.746Z"}' + body: '{"deleted_at":"2024-04-25T09:58:54.400Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 150.491875ms + duration: 287.127875ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wonErjgQhxlKPXzd + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 170.692167ms + duration: 904.360708ms 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 69a4125b..01b2c417 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-1674668511","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714039119","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_XrDF8QYS8W7r8AHT","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1674668511"]}' + body: '{"id":"con_ulUkCQdIpt4Rc35k","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 120.009083ms + duration: 279.609083ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XrDF8QYS8W7r8AHT + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_XrDF8QYS8W7r8AHT","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1674668511"]}' + body: '{"id":"con_ulUkCQdIpt4Rc35k","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.18877125s + duration: 1.008866583s - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XrDF8QYS8W7r8AHT + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:09.871Z"}' + body: '{"deleted_at":"2024-04-25T09:59:01.023Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 552.3715ms + duration: 291.508625ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XrDF8QYS8W7r8AHT + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:01.023Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 108.66775ms + status: 202 Accepted + code: 202 + duration: 286.908542ms 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 8cdcc120..9d1449d0 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1674668511","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714039119","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 382 + content_length: 577 uncompressed: false - body: '{"id":"con_hV9OiBXn2n4MvXJ0","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668511"]}' + body: '{"id":"con_5AsdYqbYZK1UHvJG","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 143.151083ms + duration: 676.395708ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hV9OiBXn2n4MvXJ0 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_hV9OiBXn2n4MvXJ0","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668511"]}' + body: '{"id":"con_5AsdYqbYZK1UHvJG","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 142.432ms + duration: 278.576333ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hV9OiBXn2n4MvXJ0 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:45.771Z"}' + body: '{"deleted_at":"2024-04-25T09:58:40.979Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 128.033084ms + duration: 718.49725ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hV9OiBXn2n4MvXJ0 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 80.385625ms + duration: 296.858084ms 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 42d37f5f..8aaadd99 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 610 + content_length: 635 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1674668511","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"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_request_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 738 + content_length: 763 uncompressed: false - body: '{"id":"con_MJv8NDekDjiQXoZP","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"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_request_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1674668511"]}' + body: '{"id":"con_kg5g3CWVxE01lql9","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 157.739417ms + duration: 533.0365ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MJv8NDekDjiQXoZP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_MJv8NDekDjiQXoZP","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_request_info":true,"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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1674668511"]}' + body: '{"id":"con_kg5g3CWVxE01lql9","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 139.246833ms + duration: 321.263833ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MJv8NDekDjiQXoZP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:50.789Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 148.812792ms + status: 202 Accepted + code: 202 + duration: 532.929208ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MJv8NDekDjiQXoZP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 90.825084ms + duration: 1.111852833s 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 5ea0b9f2..797cb595 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-1674668511","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-1714039119","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_SV8SqIxMb1tu8BZG","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1674668511"]}' + body: '{"id":"con_MWvrzZGqfpZdjojf","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 112.164125ms + duration: 1.83537625s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SV8SqIxMb1tu8BZG + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_SV8SqIxMb1tu8BZG","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1674668511"]}' + body: '{"id":"con_MWvrzZGqfpZdjojf","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.565791ms + duration: 284.650959ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SV8SqIxMb1tu8BZG + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:54.462Z"}' + body: '{"deleted_at":"2024-04-25T09:58:47.235Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 133.117291ms + duration: 303.03975ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SV8SqIxMb1tu8BZG + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:58:47.235Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 96.065375ms + status: 202 Accepted + code: 202 + duration: 296.719333ms 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 bfd332f4..df231f2c 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-1674668511","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714039119","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_Rz8A0PsuLuNTS3wz","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1674668511"]}' + body: '{"id":"con_rEOcYHfO6hayZeVf","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 136.696834ms + duration: 290.859541ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Rz8A0PsuLuNTS3wz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Rz8A0PsuLuNTS3wz","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1674668511"]}' + body: '{"id":"con_rEOcYHfO6hayZeVf","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 93.340416ms + duration: 270.879958ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Rz8A0PsuLuNTS3wz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:03.307Z"}' + body: '{"deleted_at":"2024-04-25T09:58:58.910Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 146.4925ms + duration: 538.240583ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Rz8A0PsuLuNTS3wz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 104.534792ms + duration: 277.320666ms 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 ab69e8ee..6c26eeef 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-1674668511","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714039119","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_6fRy9MnOD9HBc5vB","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1674668511"]}' + body: '{"id":"con_pKErIJOvmCDBHDmu","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 254.175208ms + duration: 6.770864333s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6fRy9MnOD9HBc5vB + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_6fRy9MnOD9HBc5vB","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1674668511"]}' + body: '{"id":"con_pKErIJOvmCDBHDmu","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.10375ms + duration: 290.357042ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6fRy9MnOD9HBc5vB + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:11.742Z"}' + body: '{"deleted_at":"2024-04-25T09:59:10.517Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 128.74125ms + duration: 940.935583ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6fRy9MnOD9HBc5vB + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 96.535416ms + duration: 291.931083ms 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 23cccf1d..a2a37364 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-1674668511","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-1714039119","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 628 + content_length: 627 uncompressed: false - body: '{"id":"con_akAPxlcT6vPHgYiM","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/GRMzTunm","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1674668511"]}' + body: '{"id":"con_i0BNiwITSWk1tFSh","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/8zC73qIN","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 201.711375ms + duration: 373.794375ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_akAPxlcT6vPHgYiM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_akAPxlcT6vPHgYiM","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/GRMzTunm","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1674668511"]}' + body: '{"id":"con_i0BNiwITSWk1tFSh","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/8zC73qIN","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 90.039ms + duration: 940.760291ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_akAPxlcT6vPHgYiM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:46.889Z"}' + body: '{"deleted_at":"2024-04-25T09:58:44.527Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 130.012625ms + duration: 283.51875ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_akAPxlcT6vPHgYiM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 7.203448375s + duration: 281.428125ms 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 2083576b..eff1f045 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-1674668511","strategy":"google-oauth2","options":{"allowed_audiences":["example.com","api.example.com"],"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleOAuth2-Connection-1714039119","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_lFH8MLnnmAHtFxbQ","options":{"allowed_audiences":["example.com","api.example.com"],"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1674668511"]}' + body: '{"id":"con_YuZ7vqMV4QOsZNcf","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 116.931ms + duration: 309.303ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lFH8MLnnmAHtFxbQ + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_lFH8MLnnmAHtFxbQ","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1674668511"]}' + body: '{"id":"con_YuZ7vqMV4QOsZNcf","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.9765ms + duration: 298.592416ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lFH8MLnnmAHtFxbQ + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:46.313Z"}' + body: '{"deleted_at":"2024-04-25T09:58:42.414Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 243.333625ms + duration: 298.447291ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lFH8MLnnmAHtFxbQ + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 146.254083ms + duration: 504.469167ms 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 9291f38c..a3a4c7ab 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1674668511","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714039119","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_mV9KDohTHdQ9ZzEE","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1674668511"]}' + body: '{"id":"con_nfU32kQA3KQ7ihtY","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 376.893584ms + duration: 929.889834ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_mV9KDohTHdQ9ZzEE + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_mV9KDohTHdQ9ZzEE","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1674668511"]}' + body: '{"id":"con_nfU32kQA3KQ7ihtY","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 252.735042ms + duration: 289.014083ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_mV9KDohTHdQ9ZzEE + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:11.151Z"}' + body: '{"deleted_at":"2024-04-25T09:59:02.820Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 132.3565ms + duration: 281.665084ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_mV9KDohTHdQ9ZzEE + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 90.26425ms + duration: 340.3295ms 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 62d7c650..c87f293a 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: 394 + content_length: 456 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1674668511","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":null,"authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":null,"userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714039119","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 599 + content_length: 601 uncompressed: false - body: '{"id":"con_4BuDptdUefqhERBM","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":null,"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-1674668511","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1674668511","enabled_clients":[],"realms":["Test-OIDC-Connection-1674668511"]}' + body: '{"id":"con_y7zUsbV329xFLrMO","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 126.490459ms + duration: 608.625625ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4BuDptdUefqhERBM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_4BuDptdUefqhERBM","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":null,"token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1674668511","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1674668511","enabled_clients":[],"realms":["Test-OIDC-Connection-1674668511"]}' + body: '{"id":"con_y7zUsbV329xFLrMO","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.843625ms + duration: 303.0795ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4BuDptdUefqhERBM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:19.930Z"}' + body: '{"deleted_at":"2024-04-25T09:59:15.016Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 156.815083ms + duration: 282.691833ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4BuDptdUefqhERBM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:15.016Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 141.369917ms + status: 202 Accepted + code: 202 + duration: 289.665792ms 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 8630d9e5..eb8be846 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-1674668511","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-1714039119","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 687 + content_length: -1 uncompressed: false - body: '{"id":"con_Du1PgUMeKLurG0Gt","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://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid profile","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"okta","name":"Test-Okta-Connection-1674668511","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1674668511"]}' + body: '{"id":"con_8lirb7WPfkQCJbHO","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 725.921833ms + duration: 530.491167ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Du1PgUMeKLurG0Gt + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Du1PgUMeKLurG0Gt","options":{"scope":"openid profile","domain":"domain.okta.com","issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","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-1674668511","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1674668511"]}' + body: '{"id":"con_8lirb7WPfkQCJbHO","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 90.8885ms + duration: 275.73625ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Du1PgUMeKLurG0Gt + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:21.054Z"}' + body: '{"deleted_at":"2024-04-25T09:59:16.423Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 131.217291ms + duration: 306.130625ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Du1PgUMeKLurG0Gt + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 95.265083ms + duration: 279.331084ms 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 f4bcc2b0..73cb7d40 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-1678372744","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-1714039119","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_7q53TRfAGRRMshAO","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-1678372744","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/psIoTLpq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1678372744"]}' + body: '{"id":"con_3IDb76XUJe64wte9","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/jgCUtTsq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 369.499875ms + duration: 565.412833ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7q53TRfAGRRMshAO + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_7q53TRfAGRRMshAO","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-1678372744","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/psIoTLpq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1678372744"]}' + body: '{"id":"con_3IDb76XUJe64wte9","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/jgCUtTsq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 172.967209ms + duration: 288.681583ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7q53TRfAGRRMshAO + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:17.855Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 153.580917ms + status: 202 Accepted + code: 202 + duration: 6.76604075s - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7q53TRfAGRRMshAO + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 116.072625ms + duration: 301.09725ms 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 491b2831..c5d83b93 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1690280915","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-1714039119","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_IhsD9LC6X1dWqt0e","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-1690280915","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/ATHFNfZY","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1690280915"]}' + body: '{"id":"con_OOotKswZ4NDuqxD6","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/24shvsu0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 344.254083ms + duration: 314.43ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IhsD9LC6X1dWqt0e + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_IhsD9LC6X1dWqt0e","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-1690280915","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/ATHFNfZY","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1690280915"]}' + body: '{"id":"con_OOotKswZ4NDuqxD6","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/24shvsu0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.326708ms + duration: 288.493042ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IhsD9LC6X1dWqt0e + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-07-25T10:28:36.011Z"}' + body: '{"deleted_at":"2024-04-25T09:58:53.002Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 273.493209ms + duration: 271.65725ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IhsD9LC6X1dWqt0e + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2023-07-25T10:28:36.011Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 93.722583ms + status: 204 No Content + code: 204 + duration: 507.191667ms 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 951a9acc..039108f5 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-1674668511","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-1714039119","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_TNiJApKdswcP2Ra5","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1674668511"]}' + body: '{"id":"con_QVhTByAUKCKGFPEe","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 121.435167ms + duration: 545.083041ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TNiJApKdswcP2Ra5 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_TNiJApKdswcP2Ra5","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1674668511"]}' + body: '{"id":"con_QVhTByAUKCKGFPEe","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.327625ms + duration: 519.649958ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TNiJApKdswcP2Ra5 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:43:54.936Z"}' + body: '{"deleted_at":"2024-04-25T09:58:48.906Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 161.585042ms + duration: 311.9005ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_TNiJApKdswcP2Ra5 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 90.97875ms + duration: 701.853209ms 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 a6aad137..80f74294 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-1674668511","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714039119","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_OqPicCLZEP0QysYC","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1674668511"]}' + body: '{"id":"con_RVKEsDIRPSWdVIW1","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 118.371958ms + duration: 285.587042ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OqPicCLZEP0QysYC + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_OqPicCLZEP0QysYC","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1674668511"]}' + body: '{"id":"con_RVKEsDIRPSWdVIW1","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.243562667s + duration: 292.226125ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OqPicCLZEP0QysYC + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:19.389Z"}' + body: '{"deleted_at":"2024-04-25T09:59:13.516Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 234.7455ms + duration: 292.118209ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OqPicCLZEP0QysYC + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:13.516Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 91.696334ms + status: 202 Accepted + code: 202 + duration: 292.393417ms 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 4b0179af..634e77af 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1674668511","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714039119","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_whDz72atKOcA7qbx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1674668511"]}' + body: '{"id":"con_s20VSSN0ch6UGDsH","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 124.428708ms + duration: 306.423875ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_whDz72atKOcA7qbx + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_whDz72atKOcA7qbx","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1674668511"]}' + body: '{"id":"con_s20VSSN0ch6UGDsH","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.752417ms + duration: 296.549583ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_whDz72atKOcA7qbx + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:12.198Z"}' + body: '{"deleted_at":"2024-04-25T09:59:12.363Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 727.964708ms + duration: 291.101917ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_whDz72atKOcA7qbx + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 86.679458ms + duration: 287.7265ms 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 7e2a0d0c..15d062c1 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1675099580","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-1714039119","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_wAZKUoBsNHD1lKjJ","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-1675099580","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/fAHx3pNz","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1675099580"]}' + body: '{"id":"con_Eb5a0lw82xSQ7L2R","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/boL8bVmA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 468.490959ms + duration: 554.73075ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1675099580&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_wAZKUoBsNHD1lKjJ","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-1675099580","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/adfs/fAHx3pNz","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1675099580"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Eb5a0lw82xSQ7L2R","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/boL8bVmA","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 167.675208ms + duration: 286.625875ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wAZKUoBsNHD1lKjJ + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Eb5a0lw82xSQ7L2R method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-30T17:26:21.392Z"}' + body: '{"deleted_at":"2024-04-25T09:59:40.625Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 153.464792ms + duration: 300.554541ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wAZKUoBsNHD1lKjJ + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Eb5a0lw82xSQ7L2R method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 249.92475ms + duration: 269.242583ms 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 42516ad9..99d36a9f 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1674668511","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714039119","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 408 + content_length: 407 uncompressed: false - body: '{"id":"con_4ju1NhMvw9ICNjJE","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/b7ZatF6STujzFHKtr7Vr1TYSc8uaZLbN","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1674668511"]}' + body: '{"id":"con_y4u6xzf79w6o7ujq","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/WZ04z8Ta5DVJFrkVO25atdDUpTOpZql5","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 138.326625ms + duration: 294.543792ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_4ju1NhMvw9ICNjJE","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/b7ZatF6STujzFHKtr7Vr1TYSc8uaZLbN","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_y4u6xzf79w6o7ujq","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/WZ04z8Ta5DVJFrkVO25atdDUpTOpZql5","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.955709ms + duration: 282.695875ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4ju1NhMvw9ICNjJE + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y4u6xzf79w6o7ujq method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:43.918Z"}' + body: '{"deleted_at":"2024-04-25T09:59:39.223Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 6.287673958s + duration: 274.557583ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4ju1NhMvw9ICNjJE + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y4u6xzf79w6o7ujq method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 96.333667ms + duration: 255.857166ms 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 aa52c96a..dd992e22 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-1674668511","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714039119","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_s5tX8vQW9sqvOVc4","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1674668511"]}' + body: '{"id":"con_QQWSQL3NBr7jFMgR","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 130.25875ms + duration: 297.382458ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_s5tX8vQW9sqvOVc4","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"realms":["Test-Apple-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_QQWSQL3NBr7jFMgR","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"realms":["Test-Apple-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 127.09025ms + duration: 295.378ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s5tX8vQW9sqvOVc4 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QQWSQL3NBr7jFMgR method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:45.051Z"}' + body: '{"deleted_at":"2024-04-25T09:59:42.941Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 193.113042ms + duration: 311.191417ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s5tX8vQW9sqvOVc4 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QQWSQL3NBr7jFMgR method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:42.941Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 102.252541ms + status: 202 Accepted + code: 202 + duration: 276.171ms 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 0af74484..3b96a3ce 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1674668511","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714039119","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 382 + content_length: 577 uncompressed: false - body: '{"id":"con_XGFArx5uRjJQ0w44","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668511"]}' + body: '{"id":"con_tfZFr7R6TuERRgdX","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 130.722708ms + duration: 307.732ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_XGFArx5uRjJQ0w44","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"realms":["Test-Auth0-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tfZFr7R6TuERRgdX","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"realms":["Test-Auth0-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.928041ms + duration: 294.977125ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XGFArx5uRjJQ0w44 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tfZFr7R6TuERRgdX method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:21.537Z"}' + body: '{"deleted_at":"2024-04-25T09:59:25.529Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 149.609ms + duration: 282.262625ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XGFArx5uRjJQ0w44 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tfZFr7R6TuERRgdX method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 6.211486125s + duration: 268.172333ms 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 dd71c9dc..d6dbe343 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 @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 610 + content_length: 635 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1674668511","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"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_request_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 738 + content_length: 763 uncompressed: false - body: '{"id":"con_rnZU0F2sh9iD9Ysm","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"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_request_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1674668511"]}' + body: '{"id":"con_9JvXRKOlv2f59CWZ","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 134.403792ms + duration: 319.076709ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_rnZU0F2sh9iD9Ysm","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_request_info":true,"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-1674668511","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_9JvXRKOlv2f59CWZ","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 94.54375ms + duration: 268.253ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rnZU0F2sh9iD9Ysm + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9JvXRKOlv2f59CWZ method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:31.674Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 170.500583ms + status: 202 Accepted + code: 202 + duration: 286.25625ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rnZU0F2sh9iD9Ysm + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9JvXRKOlv2f59CWZ method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 96.885917ms + duration: 5.536023833s 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 5e5b47b2..3615310f 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-1674668511","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-1714039119","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_D1yCw36QexlMqFm2","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1674668511"]}' + body: '{"id":"con_BE9tW3vz5RItIKXa","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 139.661542ms + duration: 309.864125ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_D1yCw36QexlMqFm2","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-1674668511","is_domain_connection":false,"realms":["Test-Email-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_BE9tW3vz5RItIKXa","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"realms":["Test-Email-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.737959ms + duration: 263.096083ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_D1yCw36QexlMqFm2 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BE9tW3vz5RItIKXa method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:29.541Z"}' + body: '{"deleted_at":"2024-04-25T09:59:29.356Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 159.996791ms + duration: 279.080333ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_D1yCw36QexlMqFm2 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BE9tW3vz5RItIKXa method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:29.356Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 134.851917ms + status: 202 Accepted + code: 202 + duration: 257.493709ms 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 b3cfb098..ed0ef002 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-1674668511","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714039119","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_pnQhKQpPp17u668N","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1674668511"]}' + body: '{"id":"con_XP35DTZjHGlrxtJ2","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 160.071542ms + duration: 311.860542ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_pnQhKQpPp17u668N","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"realms":["Test-Facebook-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_XP35DTZjHGlrxtJ2","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"realms":["Test-Facebook-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 138.93625ms + duration: 283.588792ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pnQhKQpPp17u668N + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XP35DTZjHGlrxtJ2 method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:44.505Z"}' + body: '{"deleted_at":"2024-04-25T09:59:41.777Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 172.572541ms + duration: 276.754958ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pnQhKQpPp17u668N + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XP35DTZjHGlrxtJ2 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 116.409084ms + duration: 260.40425ms 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 3b68e19f..3fd87981 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-1674668511","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714039119","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_yztbP8QYNiUfqmKS","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1674668511"]}' + body: '{"id":"con_RcckZlJhvfSjBY1R","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 148.102584ms + duration: 301.498333ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_yztbP8QYNiUfqmKS","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"realms":["Test-GitHub-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_RcckZlJhvfSjBY1R","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"realms":["Test-GitHub-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.470666ms + duration: 280.33575ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yztbP8QYNiUfqmKS + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RcckZlJhvfSjBY1R method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:52.282Z"}' + body: '{"deleted_at":"2024-04-25T09:59:51.306Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 147.606834ms + duration: 307.214917ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yztbP8QYNiUfqmKS + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RcckZlJhvfSjBY1R method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 117.915167ms + duration: 280.070042ms 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 e518e874..2fbc56d3 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-1674668511","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-1714039119","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 628 + content_length: 627 uncompressed: false - body: '{"id":"con_z9dIFrUoTcNjRBQD","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/pz7AELJM","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1674668511"]}' + body: '{"id":"con_6I7X9m56rlIb6yLK","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/XFQUoBp1","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 494.698666ms + duration: 604.915583ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_z9dIFrUoTcNjRBQD","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/pz7AELJM","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_6I7X9m56rlIb6yLK","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/XFQUoBp1","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.689875ms + duration: 288.721625ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_z9dIFrUoTcNjRBQD + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6I7X9m56rlIb6yLK method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:29.045Z"}' + body: '{"deleted_at":"2024-04-25T09:59:28.190Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 137.005708ms + duration: 352.645708ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_z9dIFrUoTcNjRBQD + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6I7X9m56rlIb6yLK method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:28.190Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 95.885125ms + status: 202 Accepted + code: 202 + duration: 262.637583ms 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 6d9b687a..6291adf2 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-1674668511","strategy":"google-oauth2","options":{"allowed_audiences":["example.com","api.example.com"],"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleOAuth2-Connection-1714039119","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_bRmdYowNkYVswKT9","options":{"allowed_audiences":["example.com","api.example.com"],"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1674668511"]}' + body: '{"id":"con_5Y7mJiuZzRmhXF0Z","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 120.937625ms + duration: 309.049125ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_bRmdYowNkYVswKT9","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-1674668511","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_5Y7mJiuZzRmhXF0Z","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.587ms + duration: 293.278791ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bRmdYowNkYVswKT9 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Y7mJiuZzRmhXF0Z method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:26.709Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 226.604042ms + status: 202 Accepted + code: 202 + duration: 308.996708ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bRmdYowNkYVswKT9 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Y7mJiuZzRmhXF0Z method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:26.709Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 84.862875ms + status: 202 Accepted + code: 202 + duration: 267.257167ms 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 d0c653a3..cd0bcbd9 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1674668511","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714039119","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_acA6Le4yEs60bFl6","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1674668511"]}' + body: '{"id":"con_AWLYaFqXQsNsWSoi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 211.980334ms + duration: 313.553625ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_acA6Le4yEs60bFl6","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_AWLYaFqXQsNsWSoi","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.852583ms + duration: 290.845291ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_acA6Le4yEs60bFl6 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_AWLYaFqXQsNsWSoi method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:45.678Z"}' + body: '{"deleted_at":"2024-04-25T09:59:49.480Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 136.663084ms + duration: 6.292603417s - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_acA6Le4yEs60bFl6 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_AWLYaFqXQsNsWSoi method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 6.215807916s + duration: 291.290542ms 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 75170082..9367db7e 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: 394 + content_length: 456 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1674668511","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":null,"authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":null,"userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714039119","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 599 + content_length: 601 uncompressed: false - body: '{"id":"con_0j9lwft94QOY5c0S","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":null,"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-1674668511","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1674668511","enabled_clients":[],"realms":["Test-OIDC-Connection-1674668511"]}' + body: '{"id":"con_oavO85VKWUdxjTL4","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.264926708s + duration: 465.701209ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_0j9lwft94QOY5c0S","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":null,"token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1674668511","is_domain_connection":false,"show_as_button":false,"display_name":"Test-OIDC-Connection-1674668511","realms":["Test-OIDC-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_oavO85VKWUdxjTL4","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"realms":["Test-OIDC-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 172.018292ms + duration: 773.123167ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0j9lwft94QOY5c0S + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oavO85VKWUdxjTL4 method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:55.818Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 143.771792ms + status: 202 Accepted + code: 202 + duration: 292.169125ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0j9lwft94QOY5c0S + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oavO85VKWUdxjTL4 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 88.578ms + duration: 304.647375ms 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 53310068..8c176ff6 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-1674668511","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-1714039119","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -28,35 +28,34 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 687 + content_length: -1 uncompressed: false - body: '{"id":"con_j2h3rWyhSAimN9mz","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://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid profile","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"okta","name":"Test-Okta-Connection-1674668511","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1674668511"]}' + body: '{"id":"con_SP4CdTOqji8SmKaf","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 732.332416ms + duration: 777.184708ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_j2h3rWyhSAimN9mz","options":{"scope":"openid profile","domain":"domain.okta.com","issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","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-1674668511","is_domain_connection":false,"show_as_button":false,"realms":["Test-Okta-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_SP4CdTOqji8SmKaf","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"realms":["Test-Okta-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 150.847625ms + duration: 318.276334ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_j2h3rWyhSAimN9mz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP4CdTOqji8SmKaf method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T09:59:57.532Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 301.366416ms + status: 202 Accepted + code: 202 + duration: 523.684125ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_j2h3rWyhSAimN9mz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP4CdTOqji8SmKaf method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 101.19125ms + duration: 271.990125ms 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 196864fe..8ac99c84 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-1678372744","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-1714039119","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_F0lHxIBUHlskwlKP","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-1678372744","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/D1GyTN05","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1678372744"]}' + body: '{"id":"con_pxXUpEqz6lImRZsy","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/vQxjgHtA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 170.465166ms + duration: 941.722375ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1678372744&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_F0lHxIBUHlskwlKP","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-1678372744","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/pingfederate/D1GyTN05","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1678372744"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_pxXUpEqz6lImRZsy","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/vQxjgHtA","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 99.817875ms + duration: 928.417792ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_F0lHxIBUHlskwlKP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pxXUpEqz6lImRZsy method: DELETE response: proto: HTTP/2.0 @@ -99,15 +98,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:00:00.222Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 143.339042ms + status: 202 Accepted + code: 202 + duration: 295.817834ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_F0lHxIBUHlskwlKP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pxXUpEqz6lImRZsy method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:00:00.222Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 93.1565ms + status: 202 Accepted + code: 202 + duration: 281.725333ms 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 5981ccf0..65739152 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1690280933","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-1714039119","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Hdf8hhu32q100yhm","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-1690280933","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/7vdywStZ","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1690280933"]}' + body: '{"id":"con_367wYAui2j9BVs1K","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/1BWHvJZn","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 275.82475ms + duration: 307.439416ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1690280933&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Hdf8hhu32q100yhm","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-1690280933","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/samlp/7vdywStZ","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1690280933"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_367wYAui2j9BVs1K","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/1BWHvJZn","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.66675ms + duration: 274.846834ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Hdf8hhu32q100yhm + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_367wYAui2j9BVs1K method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-07-25T10:28:53.902Z"}' + body: '{"deleted_at":"2024-04-25T09:59:38.093Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 148.382667ms + duration: 290.469917ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Hdf8hhu32q100yhm + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_367wYAui2j9BVs1K method: DELETE response: proto: HTTP/2.0 @@ -134,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2023-07-25T10:28:53.902Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 96.095541ms + status: 204 No Content + code: 204 + duration: 264.618666ms 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 08407093..68273ef5 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-1674668511","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-1714039119","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_PlqTHdvsHTPhVzQz","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1674668511"]}' + body: '{"id":"con_tlXbDURTRR0gwQ2C","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 138.919958ms + duration: 292.268209ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_PlqTHdvsHTPhVzQz","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-1674668511","is_domain_connection":false,"realms":["Test-SMS-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tlXbDURTRR0gwQ2C","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"realms":["Test-SMS-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.239098333s + duration: 331.508125ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PlqTHdvsHTPhVzQz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlXbDURTRR0gwQ2C method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:36.213Z"}' + body: '{"deleted_at":"2024-04-25T09:59:30.526Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 144.868791ms + duration: 287.902709ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PlqTHdvsHTPhVzQz + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlXbDURTRR0gwQ2C method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 98.813167ms + duration: 280.039167ms 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 1a4041b5..20f4e9b6 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-1674668511","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714039119","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_hb4dmx5GsEyDlVop","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1674668511"]}' + body: '{"id":"con_pbupNl5E5iKEDlaQ","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 197.298709ms + duration: 330.258958ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_hb4dmx5GsEyDlVop","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_pbupNl5E5iKEDlaQ","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.693292ms + duration: 496.320125ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hb4dmx5GsEyDlVop + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbupNl5E5iKEDlaQ method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:53.428Z"}' + body: '{"deleted_at":"2024-04-25T09:59:54.022Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 286.386ms + duration: 318.626625ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_hb4dmx5GsEyDlVop + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbupNl5E5iKEDlaQ method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 120.911209ms + duration: 263.171333ms 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 3d43cf2a..9a364171 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1674668511","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714039119","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_Cty2M91BNzvitQuW","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1674668511"]}' + body: '{"id":"con_JFpIlYsUyRx9Xw26","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 143.873708ms + duration: 293.4585ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1674668511&per_page=50 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1714039119&per_page=50 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Cty2M91BNzvitQuW","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1674668511"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_JFpIlYsUyRx9Xw26","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1714039119"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.864958ms + duration: 280.759708ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Cty2M91BNzvitQuW + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JFpIlYsUyRx9Xw26 method: DELETE response: proto: HTTP/2.0 @@ -101,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:44:52.838Z"}' + body: '{"deleted_at":"2024-04-25T09:59:52.456Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 173.303958ms + duration: 435.677958ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Cty2M91BNzvitQuW + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JFpIlYsUyRx9Xw26 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 104.475208ms + duration: 265.29075ms 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 968c7a00..6143ef91 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-1674668511","strategy":"ad"} + {"name":"Test-AD-Connection-1714039292","strategy":"ad"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 351 + content_length: 350 uncompressed: false - body: '{"id":"con_K5yV8wcNOae1TEtP","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/KjSJXUxJmhHkEdnBrXOPNC0ZUQ8Duiuz","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1674668511"]}' + body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 135.522666ms + duration: 302.12025ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_K5yV8wcNOae1TEtP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_K5yV8wcNOae1TEtP","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/KjSJXUxJmhHkEdnBrXOPNC0ZUQ8Duiuz","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1674668511"]}' + body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 213.811666ms + duration: 414.295583ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_K5yV8wcNOae1TEtP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_K5yV8wcNOae1TEtP","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1674668511","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.eu.auth0.com/p/ad/KjSJXUxJmhHkEdnBrXOPNC0ZUQ8Duiuz","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1674668511"]}' + body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 90.275292ms + duration: 268.425791ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_K5yV8wcNOae1TEtP + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:18.850Z"}' + body: '{"deleted_at":"2024-04-25T10:01:44.108Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 179.288042ms + duration: 300.658625ms 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 2271167f..0846e28d 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-1674668511","strategy":"apple"} + {"name":"Test-Apple-Connection-1714039292","strategy":"apple"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_P70XdFqDEMxlVHpM","options":{},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1674668511"]}' + body: '{"id":"con_eaFIj3kL972NXvEx","options":{},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 122.177792ms + duration: 293.626083ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_P70XdFqDEMxlVHpM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_P70XdFqDEMxlVHpM","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1674668511"]}' + body: '{"id":"con_eaFIj3kL972NXvEx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.245334ms + duration: 339.756666ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_P70XdFqDEMxlVHpM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_P70XdFqDEMxlVHpM","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1674668511"]}' + body: '{"id":"con_eaFIj3kL972NXvEx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 116.957333ms + duration: 318.779083ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_P70XdFqDEMxlVHpM + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:19.854Z"}' + body: '{"deleted_at":"2024-04-25T10:01:47.207Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 180.754666ms + duration: 280.97975ms 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 beddaf48..9f5405c2 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-1674668511","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1714039292","strategy":"auth0"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 325 + content_length: 520 uncompressed: false - body: '{"id":"con_ZeToQ9nQBkT2miQm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668511"]}' + body: '{"id":"con_gym71s4JTbACZkRN","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 380.736875ms + duration: 694.736708ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ZeToQ9nQBkT2miQm + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_ZeToQ9nQBkT2miQm","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668511"]}' + body: '{"id":"con_gym71s4JTbACZkRN","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.994833ms + duration: 305.594084ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ZeToQ9nQBkT2miQm + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_ZeToQ9nQBkT2miQm","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1674668511"]}' + body: '{"id":"con_gym71s4JTbACZkRN","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.502125ms + duration: 285.979583ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ZeToQ9nQBkT2miQm + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:02.424Z"}' + body: '{"deleted_at":"2024-04-25T10:01:33.572Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 133.291208ms + duration: 296.915208ms 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 0508bbf9..75bdeeb3 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-1674668511","strategy":"sms"} + {"name":"Test-Custom-SMS-Connection-1714039292","strategy":"sms"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,33 +30,33 @@ interactions: trailer: {} content_length: 236 uncompressed: false - body: '{"id":"con_UdsJTINh4asaGN2u","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1674668511"]}' + body: '{"id":"con_iszyrbDILLXEvhY2","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 120.337208ms + duration: 295.31075ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 546 + content_length: 571 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"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_request_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"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-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UdsJTINh4asaGN2u + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_UdsJTINh4asaGN2u","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_request_info":true,"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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1674668511"]}' + body: '{"id":"con_iszyrbDILLXEvhY2","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.591667ms + duration: 324.368167ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UdsJTINh4asaGN2u + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_UdsJTINh4asaGN2u","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_request_info":true,"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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1674668511"]}' + body: '{"id":"con_iszyrbDILLXEvhY2","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.231597209s + duration: 291.176875ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UdsJTINh4asaGN2u + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:17.845Z"}' + body: '{"deleted_at":"2024-04-25T10:01:42.800Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 567.934375ms + duration: 309.914375ms 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 3afa5854..dbc5ae8a 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-1674668511","strategy":"email"} + {"name":"Test-Email-Connection-1714039292","strategy":"email"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_K20zgQvmmHOurVPp","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1674668511"]}' + body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 115.862542ms + duration: 297.275209ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_K20zgQvmmHOurVPp + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_K20zgQvmmHOurVPp","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1674668511"]}' + body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 146.594334ms + duration: 294.23425ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_K20zgQvmmHOurVPp + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_K20zgQvmmHOurVPp","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1674668511"]}' + body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.499708ms + duration: 279.903375ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_K20zgQvmmHOurVPp + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS method: DELETE response: proto: HTTP/2.0 @@ -135,12 +134,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:01:38.208Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 156.267375ms + status: 202 Accepted + code: 202 + duration: 955.824208ms 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 a983e641..b93ca0f4 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-1674668511","strategy":"facebook"} + {"name":"Test-Facebook-Connection-1714039292","strategy":"facebook"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_Gg4Yt0GbYiNPIh9B","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1674668511"]}' + body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 122.856458ms + duration: 956.147916ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Gg4Yt0GbYiNPIh9B + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Gg4Yt0GbYiNPIh9B","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1674668511"]}' + body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 126.369875ms + duration: 317.796042ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Gg4Yt0GbYiNPIh9B + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Gg4Yt0GbYiNPIh9B","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1674668511"]}' + body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 92.500334ms + duration: 292.061042ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Gg4Yt0GbYiNPIh9B + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 method: DELETE response: proto: HTTP/2.0 @@ -135,12 +134,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:01:45.970Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 144.407292ms + status: 202 Accepted + code: 202 + duration: 290.76125ms 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 5f611687..aaf05920 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-1674668511","strategy":"github"} + {"name":"Test-GitHub-Connection-1714039292","strategy":"github"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_Lh0hnjffaQGdT1lA","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1674668511"]}' + body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 122.271792ms + duration: 927.687875ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Lh0hnjffaQGdT1lA + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Lh0hnjffaQGdT1lA","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1674668511"]}' + body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 128.805334ms + duration: 310.876166ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Lh0hnjffaQGdT1lA + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Lh0hnjffaQGdT1lA","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1674668511"]}' + body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.687625ms + duration: 1.79357775s - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Lh0hnjffaQGdT1lA + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC method: DELETE response: proto: HTTP/2.0 @@ -135,12 +134,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:01:52.516Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 582.149125ms + status: 202 Accepted + code: 202 + duration: 351.685416ms 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 48aa2efc..5ec12f2f 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-1674668511","strategy":"google-apps"} + {"name":"Test-GoogleApps-Connection-1714039292","strategy":"google-apps"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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: 440 + content_length: 439 uncompressed: false - body: '{"id":"con_wWXwIiEsNde8jiC9","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/WmcrforO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1674668511"]}' + body: '{"id":"con_GjAws9biy6A99gV7","options":{"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.260821375s + duration: 1.036354875s - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wWXwIiEsNde8jiC9 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_wWXwIiEsNde8jiC9","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/WmcrforO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1674668511"]}' + body: '{"id":"con_GjAws9biy6A99gV7","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 176.766167ms + duration: 376.1175ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wWXwIiEsNde8jiC9 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_wWXwIiEsNde8jiC9","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-1674668511","provisioning_ticket_url":"https://login.eu.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/WmcrforO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1674668511"]}' + body: '{"id":"con_GjAws9biy6A99gV7","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 177.133ms + duration: 503.019583ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wWXwIiEsNde8jiC9 + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:09.823Z"}' + body: '{"deleted_at":"2024-04-25T10:01:37.013Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 218.180125ms + duration: 304.560583ms 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 bd3facc9..e5a4dfda 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-1674668511","strategy":"google-oauth2"} + {"name":"Test-GoogleOAuth2-Connection-1714039292","strategy":"google-oauth2"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_sLpnZwFbVLZYNxIX","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1674668511"]}' + body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 131.247833ms + duration: 317.978583ms - id: 1 request: proto: HTTP/1.1 @@ -49,14 +49,14 @@ interactions: remote_addr: "" request_uri: "" body: | - {"options":{"allowed_audiences":["example.com","api.example.com"],"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"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-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sLpnZwFbVLZYNxIX + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_sLpnZwFbVLZYNxIX","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1674668511"]}' + body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.87275ms + duration: 319.743833ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sLpnZwFbVLZYNxIX + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_sLpnZwFbVLZYNxIX","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1674668511"]}' + body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.53ms + duration: 279.961583ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sLpnZwFbVLZYNxIX + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:02.995Z"}' + body: '{"deleted_at":"2024-04-25T10:01:34.793Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 195.337958ms + duration: 283.353167ms 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 870a7842..30dad569 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-1674668511","strategy":"linkedin"} + {"name":"Test-LinkedIn-Connection-1714039292","strategy":"linkedin"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 249 uncompressed: false - body: '{"id":"con_HRRLJ7nCgvlst4Le","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1674668511"]}' + body: '{"id":"con_oziq1YEBqFiBR92e","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 7.200475583s + duration: 307.984875ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HRRLJ7nCgvlst4Le + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_HRRLJ7nCgvlst4Le","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1674668511"]}' + body: '{"id":"con_oziq1YEBqFiBR92e","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.307791ms + duration: 304.721125ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HRRLJ7nCgvlst4Le + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_HRRLJ7nCgvlst4Le","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1674668511"]}' + body: '{"id":"con_oziq1YEBqFiBR92e","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.318667ms + duration: 268.467833ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HRRLJ7nCgvlst4Le + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:27.487Z"}' + body: '{"deleted_at":"2024-04-25T10:01:48.488Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 139.580916ms + duration: 1.044783292s 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 5396e91b..9aed5308 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-1674668511","strategy":"sms"} + {"name":"Test-SMS-Connection-1714039292","strategy":"sms"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_20b34cXIZlTKtQ5b","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1674668511"]}' + body: '{"id":"con_pi37EtqyVqePsI4f","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 137.917958ms + duration: 1.795596666s - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_20b34cXIZlTKtQ5b + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_20b34cXIZlTKtQ5b","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1674668511"]}' + body: '{"id":"con_pi37EtqyVqePsI4f","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 347.1605ms + duration: 305.624792ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_20b34cXIZlTKtQ5b + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_20b34cXIZlTKtQ5b","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-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1674668511"]}' + body: '{"id":"con_pi37EtqyVqePsI4f","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 95.787458ms + duration: 318.74275ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_20b34cXIZlTKtQ5b + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:11.182Z"}' + body: '{"deleted_at":"2024-04-25T10:01:41.588Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 223.685209ms + duration: 313.56ms 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 1b73e021..97f0b978 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-1674668511","strategy":"salesforce"} + {"name":"Test-SalesForce-Connection-1714039292","strategy":"salesforce"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.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_kux0PbGgPfxwYITb","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1674668511"]}' + body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 153.522292ms + duration: 312.016375ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kux0PbGgPfxwYITb + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_kux0PbGgPfxwYITb","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1674668511"]}' + body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 174.773875ms + duration: 523.849917ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kux0PbGgPfxwYITb + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_kux0PbGgPfxwYITb","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1674668511"]}' + body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.305035083s + duration: 3.582142958s - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kux0PbGgPfxwYITb + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav method: DELETE response: proto: HTTP/2.0 @@ -135,12 +134,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-25T10:01:58.420Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 236.044708ms + status: 202 Accepted + code: 202 + duration: 304.281625ms 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 24dd2276..3ab4522e 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-1674668511","strategy":"windowslive"} + {"name":"Test-WindowsLive-Connection-1714039292","strategy":"windowslive"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.5.0 url: https://go-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 252 uncompressed: false - body: '{"id":"con_fWt33Y3lG4UqjFgf","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1674668511"]}' + body: '{"id":"con_01I10VePNYgEafNZ","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 146.063209ms + duration: 304.106458ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fWt33Y3lG4UqjFgf + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_fWt33Y3lG4UqjFgf","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1674668511"]}' + body: '{"id":"con_01I10VePNYgEafNZ","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 168.734083ms + duration: 284.833042ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fWt33Y3lG4UqjFgf + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_fWt33Y3lG4UqjFgf","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1674668511","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1674668511"]}' + body: '{"id":"con_01I10VePNYgEafNZ","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.766416ms + duration: 276.366458ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fWt33Y3lG4UqjFgf + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ method: DELETE response: proto: HTTP/2.0 @@ -137,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2023-01-25T17:45:28.981Z"}' + body: '{"deleted_at":"2024-04-25T10:01:53.699Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 135.928875ms + duration: 305.449541ms From 6aaee1e6cf1b803a0b72d0d186c81c770c7421e3 Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:58:51 +0530 Subject: [PATCH 10/16] [GH-336] - Fix Unmarshal JSON error as string (#393) --- authentication/authentication_error.go | 16 +++++++++++----- authentication/authentication_error_test.go | 12 ++++++++++++ 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/authentication/authentication_error.go b/authentication/authentication_error.go index 8c24446c..1b208214 100644 --- a/authentication/authentication_error.go +++ b/authentication/authentication_error.go @@ -54,11 +54,11 @@ func (a *Error) UnmarshalJSON(b []byte) error { type authError Error type authErrorWrapper struct { *authError - Code string `json:"code"` - Description string `json:"description"` + Code string `json:"code"` + Description json.RawMessage `json:"description"` // Can be string or object } - alias := &authErrorWrapper{(*authError)(a), "", ""} + alias := &authErrorWrapper{(*authError)(a), "", nil} err := json.Unmarshal(b, alias) if err != nil { @@ -69,8 +69,14 @@ func (a *Error) UnmarshalJSON(b []byte) error { a.Err = alias.Code } - if alias.Description != "" { - a.Message = alias.Description + if len(alias.Description) > 0 { + var descText string + err := json.Unmarshal(alias.Description, &descText) + if err == nil { + a.Message = descText + } else { + a.Message = string(alias.Description) + } } return nil diff --git a/authentication/authentication_error_test.go b/authentication/authentication_error_test.go index 7b657f50..a454ce98 100644 --- a/authentication/authentication_error_test.go +++ b/authentication/authentication_error_test.go @@ -63,6 +63,18 @@ func Test_newError(t *testing.T) { Message: "Invalid sign up", }, }, + { + name: "it will handle invalid password response", + givenResponse: http.Response{ + StatusCode: http.StatusBadRequest, + Body: io.NopCloser((strings.NewReader(`{"name":"PasswordStrengthError","message":"Password is too weak","code":"invalid_password","description":{"rules":[{"message":"At least %d characters in length","format":[8],"code":"lengthAtLeast","verified":true},{"message":"Contain at least %d of the following %d types of characters:","code":"containsAtLeast","format":[3,4],"items":[{"message":"lower case letters (a-z)","code":"lowerCase","verified":true},{"message":"upper case letters (A-Z)","code":"upperCase","verified":false},{"message":"numbers (i.e. 0-9)","code":"numbers","verified":false},{"message":"special characters (e.g. !@#$%^&*)","code":"specialCharacters","verified":true}],"verified":false}],"verified":false},"policy":"* At least 8 characters in length\n* Contain at least 3 of the following 4 types of characters:\n * lower case letters (a-z)\n * upper case letters (A-Z)\n * numbers (i.e. 0-9)\n * special characters (e.g. !@#$%^&*)","statusCode":400}`))), + }, + expectedError: Error{ + StatusCode: 400, + Err: "invalid_password", + Message: `{"rules":[{"message":"At least %d characters in length","format":[8],"code":"lengthAtLeast","verified":true},{"message":"Contain at least %d of the following %d types of characters:","code":"containsAtLeast","format":[3,4],"items":[{"message":"lower case letters (a-z)","code":"lowerCase","verified":true},{"message":"upper case letters (A-Z)","code":"upperCase","verified":false},{"message":"numbers (i.e. 0-9)","code":"numbers","verified":false},{"message":"special characters (e.g. !@#$%^&*)","code":"specialCharacters","verified":true}],"verified":false}],"verified":false}`, + }, + }, } for _, testCase := range testCases { From d25270e0151b3cb712d7f65e6d2e9a3ce768a7ba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 27 Apr 2024 11:27:12 +0530 Subject: [PATCH 11/16] Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 (#395) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c95b8f4c..a7a728dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: run: go build ./... - name: Check for linting errors - uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # pin@4.0.0 + uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b # pin@5.0.0 with: version: latest args: -v -c .golangci.yml From f6c6c426f2eb3c0bd95213e34d8407699888970e Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Mon, 29 Apr 2024 14:27:44 +0530 Subject: [PATCH 12/16] [GH-366] - Add support for enabled_connections field in CreateOrganizationConnections (#394) --- management/organization.go | 5 + management/organization_test.go | 26 ++ .../TestOrganizationManager_Create.yaml | 304 +++++++++++++++++- 3 files changed, 325 insertions(+), 10 deletions(-) diff --git a/management/organization.go b/management/organization.go index 9b0617df..c8ce3a91 100644 --- a/management/organization.go +++ b/management/organization.go @@ -23,6 +23,11 @@ type Organization struct { // Metadata associated with the organization, in the form of an object with // string values (max 255 chars). Maximum of 10 metadata properties allowed. Metadata *map[string]string `json:"metadata,omitempty"` + + // OrganizationConnections that will be enabled for this organization. + // See POST enabled_connections endpoint for the object format. + // (Max of 10 connections allowed) + EnabledConnections []*OrganizationConnection `json:"enabled_connections,omitempty"` } // OrganizationBranding holds branding information for an Organization. diff --git a/management/organization_test.go b/management/organization_test.go index 0295b1e9..cc0a228b 100644 --- a/management/organization_test.go +++ b/management/organization_test.go @@ -17,12 +17,16 @@ import ( func TestOrganizationManager_Create(t *testing.T) { configureHTTPTestRecordings(t) + orgConn := givenAnOrganizationConnectionWithoutOrgID(t) + orgConn2 := givenAnOrganizationConnectionWithoutOrgID(t) + org := &Organization{ Name: auth0.String(fmt.Sprintf("test-organization%v", rand.Intn(999))), DisplayName: auth0.String("Test Organization"), Branding: &OrganizationBranding{ LogoURL: auth0.String("https://example.com/logo.gif"), }, + EnabledConnections: []*OrganizationConnection{orgConn, orgConn2}, } err := api.Organization.Create(context.Background(), org) @@ -435,6 +439,28 @@ func givenAnOrganizationConnection(t *testing.T, orgID string) *OrganizationConn return orgConn } +func givenAnOrganizationConnectionWithoutOrgID(t *testing.T) *OrganizationConnection { + client := givenAClient(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(ConnectionStrategyAD), + EnabledClients: &[]string{ + os.Getenv("AUTH0_CLIENT_ID"), + client.GetClientID(), + }, + }, + }) + orgConn := &OrganizationConnection{ + ConnectionID: conn.ID, + AssignMembershipOnLogin: auth0.Bool(true), + ShowAsButton: auth0.Bool(true), + } + + return orgConn +} + func givenAnOrganizationInvitation(t *testing.T, orgID string) *OrganizationInvitation { t.Helper() diff --git a/test/data/recordings/TestOrganizationManager_Create.yaml b/test/data/recordings/TestOrganizationManager_Create.yaml index 91aeb8a1..077b8a52 100644 --- a/test/data/recordings/TestOrganizationManager_Create.yaml +++ b/test/data/recordings/TestOrganizationManager_Create.yaml @@ -6,21 +6,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 121 + content_length: 1125 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-organization20","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"}} + {"name":"Test Client (Apr 25 21:20:38.073)","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 25 21:20:38.073)","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 - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: proto: HTTP/2.0 @@ -28,16 +28,300 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 148 + content_length: -1 uncompressed: false - body: '{"name":"test-organization20","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"id":"org_BURmVtp0ptCAPjbw"}' + body: '{"name":"Test Client (Apr 25 21:20:38.073)","description":"This is just a test client.","client_id":"4kTtC10PpErb6UiXkA0nsRmt20596Kcy","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_9eScX1Md8CCXwHkWdnEwVM","name":"Test Credential (Apr 25 21:20:38.073)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-25T15:50:38.977Z","updated_at":"2024-04-25T15:50:38.977Z"}]}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 136.012208ms + duration: 1.06730875s - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 167 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"test-conn153","display_name":"Test Connection 441","strategy":"ad","enabled_clients":["QjlAo2nIDERZYBBZozsv8apykJUBtCq4","4kTtC10PpErb6UiXkA0nsRmt20596Kcy"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 422 + uncompressed: false + body: '{"id":"con_6fUiQeazlpjyM00z","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"test-conn153","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cKoAR60QK4wW4ezlpjhNKshJFM4YamU7","is_domain_connection":false,"show_as_button":false,"display_name":"Test Connection 441","enabled_clients":["4kTtC10PpErb6UiXkA0nsRmt20596Kcy","QjlAo2nIDERZYBBZozsv8apykJUBtCq4"],"realms":["test-conn153"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 481.124791ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1125 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test Client (Apr 25 21:20:39.626)","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 25 21:20:39.626)","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/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Test Client (Apr 25 21:20:39.626)","description":"This is just a test client.","client_id":"GEEKan59VUsQSvCg38tDgPubual5o4t7","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_8LStMd6CvbAxQczgqm52Md","name":"Test Credential (Apr 25 21:20:39.626)","kid":"4e7yYf0TKdyTLbVnpq2wLN6mZ8t7eb9UJkMksyHj9iU","credential_type":"public_key","alg":"RS256","created_at":"2024-04-25T15:50:40.039Z","updated_at":"2024-04-25T15:50:40.039Z"}]}}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 808.534ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 167 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"test-conn958","display_name":"Test Connection 337","strategy":"ad","enabled_clients":["QjlAo2nIDERZYBBZozsv8apykJUBtCq4","GEEKan59VUsQSvCg38tDgPubual5o4t7"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 422 + uncompressed: false + body: '{"id":"con_g1TIjToKF1ZWSBQt","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"test-conn958","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/r6p5WhDRng1MKdwgR4rCWgAtxAXuKaI2","is_domain_connection":false,"show_as_button":false,"display_name":"Test Connection 337","enabled_clients":["GEEKan59VUsQSvCg38tDgPubual5o4t7","QjlAo2nIDERZYBBZozsv8apykJUBtCq4"],"realms":["test-conn958"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 523.868792ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 340 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"test-organization110","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"enabled_connections":[{"connection_id":"con_6fUiQeazlpjyM00z","assign_membership_on_login":true,"show_as_button":true},{"connection_id":"con_g1TIjToKF1ZWSBQt","assign_membership_on_login":true,"show_as_button":true}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 367 + uncompressed: false + body: '{"name":"test-organization110","display_name":"Test Organization","branding":{"logo_url":"https://example.com/logo.gif"},"enabled_connections":[{"connection_id":"con_6fUiQeazlpjyM00z","assign_membership_on_login":true,"show_as_button":true},{"connection_id":"con_g1TIjToKF1ZWSBQt","assign_membership_on_login":true,"show_as_button":true}],"id":"org_kppEAG7SMhxyoPDo"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 519.078042ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_kppEAG7SMhxyoPDo + 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: 376.369708ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g1TIjToKF1ZWSBQt + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-25T15:50:42.270Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 406.799792ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/GEEKan59VUsQSvCg38tDgPubual5o4t7 + 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: 372.123458ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6fUiQeazlpjyM00z + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-25T15:50:42.964Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 330.4075ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -54,8 +338,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_BURmVtp0ptCAPjbw + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/clients/4kTtC10PpErb6UiXkA0nsRmt20596Kcy method: DELETE response: proto: HTTP/2.0 @@ -71,4 +355,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 126.143334ms + duration: 367.008375ms From d99dadd252cf7030975879771da143a6184c8112 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:24:26 +0530 Subject: [PATCH 13/16] Bump golangci/golangci-lint-action from 5.0.0 to 5.1.0 (#397) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7a728dc..66cd7413 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: run: go build ./... - name: Check for linting errors - uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b # pin@5.0.0 + uses: golangci/golangci-lint-action@9d1e0624a798bb64f6c3cea93db47765312263dc # pin@5.1.0 with: version: latest args: -v -c .golangci.yml From 911ade21f2426612965381c667bf1e9cfc4b505f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 11:17:14 +0530 Subject: [PATCH 14/16] Bump codecov/codecov-action from 4.3.0 to 4.3.1 (#399) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/e2e-tests.yml | 2 +- .github/workflows/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 40eac2ca..3fde3605 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -28,7 +28,7 @@ jobs: AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }} - name: Update codecov report - uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@4.3.0 + uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # pin@4.3.1 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.out diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66cd7413..dfa32214 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,7 @@ jobs: run: make test - name: Update codecov report - uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@4.3.0 + uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # pin@4.3.1 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.out From 2b3e239a7a0df11aeea4edfcb8527ffe58cc76b9 Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Thu, 2 May 2024 16:01:31 +0530 Subject: [PATCH 15/16] [GH-372] Fix unmarshaling issue with Wordpress strategy connections (#398) --- management/connection.go | 53 +++++++ management/connection_test.go | 41 +++++ ...successfully_create_a_ADFS_Connection.yaml | 12 +- ...n_successfully_create_a_AD_Connection.yaml | 12 +- ...uccessfully_create_a_Apple_Connection.yaml | 12 +- ...uccessfully_create_a_Auth0_Connection.yaml | 12 +- ...sfully_create_a_Custom_SMS_Connection.yaml | 12 +- ...uccessfully_create_a_Email_Connection.yaml | 12 +- ...essfully_create_a_Facebook_Connection.yaml | 12 +- ...ccessfully_create_a_GitHub_Connection.yaml | 12 +- ...sfully_create_a_GoogleApps_Connection.yaml | 12 +- ...ully_create_a_GoogleOAuth2_Connection.yaml | 12 +- ...essfully_create_a_LinkedIn_Connection.yaml | 12 +- ...successfully_create_a_OIDC_Connection.yaml | 12 +- ...successfully_create_a_Okta_Connection.yaml | 12 +- ...lly_create_a_Ping_Federate_Connection.yaml | 12 +- ...successfully_create_a_SAML_Connection.yaml | 12 +- ..._successfully_create_a_SMS_Connection.yaml | 12 +- ...sfully_create_a_SalesForce_Connection.yaml | 12 +- ...fully_create_a_WindowsLive_Connection.yaml | 12 +- ...ssfully_create_a_Wordpress_Connection.yaml | 74 +++++++++ .../TestConnectionManager_Delete.yaml | 20 +-- .../TestConnectionManager_List.yaml | 16 +- ...n_successfully_read_a_ADFS_Connection.yaml | 22 +-- ...can_successfully_read_a_AD_Connection.yaml | 22 +-- ..._successfully_read_a_Apple_Connection.yaml | 30 ++-- ..._successfully_read_a_Auth0_Connection.yaml | 22 +-- ...essfully_read_a_Custom_SMS_Connection.yaml | 22 +-- ..._successfully_read_a_Email_Connection.yaml | 24 +-- ...ccessfully_read_a_Facebook_Connection.yaml | 22 +-- ...successfully_read_a_GitHub_Connection.yaml | 30 ++-- ...essfully_read_a_GoogleApps_Connection.yaml | 30 ++-- ...sfully_read_a_GoogleOAuth2_Connection.yaml | 30 ++-- ...ccessfully_read_a_LinkedIn_Connection.yaml | 22 +-- ...n_successfully_read_a_OIDC_Connection.yaml | 30 ++-- ...n_successfully_read_a_Okta_Connection.yaml | 30 ++-- ...fully_read_a_Ping_Federate_Connection.yaml | 30 ++-- ...n_successfully_read_a_SAML_Connection.yaml | 22 +-- ...an_successfully_read_a_SMS_Connection.yaml | 30 ++-- ...essfully_read_a_SalesForce_Connection.yaml | 24 +-- ...ssfully_read_a_WindowsLive_Connection.yaml | 22 +-- ...cessfully_read_a_Wordpress_Connection.yaml | 144 +++++++++++++++++ ...ly_find_a_ADFS_Connection_by_its_name.yaml | 30 ++-- ...ully_find_a_AD_Connection_by_its_name.yaml | 22 +-- ...y_find_a_Apple_Connection_by_its_name.yaml | 30 ++-- ...y_find_a_Auth0_Connection_by_its_name.yaml | 22 +-- ...d_a_Custom_SMS_Connection_by_its_name.yaml | 30 ++-- ...y_find_a_Email_Connection_by_its_name.yaml | 24 +-- ...ind_a_Facebook_Connection_by_its_name.yaml | 30 ++-- ..._find_a_GitHub_Connection_by_its_name.yaml | 22 +-- ...d_a_GoogleApps_Connection_by_its_name.yaml | 30 ++-- ...a_GoogleOAuth2_Connection_by_its_name.yaml | 24 +-- ...ind_a_LinkedIn_Connection_by_its_name.yaml | 30 ++-- ...ly_find_a_OIDC_Connection_by_its_name.yaml | 22 +-- ...ly_find_a_Okta_Connection_by_its_name.yaml | 30 ++-- ..._Ping_Federate_Connection_by_its_name.yaml | 30 ++-- ...ly_find_a_SAML_Connection_by_its_name.yaml | 30 ++-- ...lly_find_a_SMS_Connection_by_its_name.yaml | 30 ++-- ...d_a_SalesForce_Connection_by_its_name.yaml | 22 +-- ..._a_WindowsLive_Connection_by_its_name.yaml | 22 +-- ...nd_a_Wordpress_Connection_by_its_name.yaml | 144 +++++++++++++++++ ...n_successfully_update_a_AD_Connection.yaml | 24 +-- ...uccessfully_update_a_Apple_Connection.yaml | 24 +-- ...uccessfully_update_a_Auth0_Connection.yaml | 24 +-- ...sfully_update_a_Custom_SMS_Connection.yaml | 24 +-- ...uccessfully_update_a_Email_Connection.yaml | 24 +-- ...essfully_update_a_Facebook_Connection.yaml | 24 +-- ...ccessfully_update_a_GitHub_Connection.yaml | 24 +-- ...sfully_update_a_GoogleApps_Connection.yaml | 24 +-- ...ully_update_a_GoogleOAuth2_Connection.yaml | 24 +-- ...essfully_update_a_LinkedIn_Connection.yaml | 24 +-- ..._successfully_update_a_SMS_Connection.yaml | 24 +-- ...sfully_update_a_SalesForce_Connection.yaml | 24 +-- ...fully_update_a_WindowsLive_Connection.yaml | 24 +-- ...ssfully_update_a_Wordpress_Connection.yaml | 145 ++++++++++++++++++ 75 files changed, 1355 insertions(+), 754 deletions(-) create mode 100644 test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml create mode 100644 test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml create mode 100644 test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml diff --git a/management/connection.go b/management/connection.go index 376ecbc4..1a1daedd 100644 --- a/management/connection.go +++ b/management/connection.go @@ -7,6 +7,7 @@ import ( "sort" "strings" + "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/internal/tag" ) @@ -913,6 +914,58 @@ type ConnectionOptionsOAuth2 struct { UpstreamParams map[string]interface{} `json:"upstream_params,omitempty"` } +// UnmarshalJSON implements the json.Unmarshaler interface for ConnectionOptionsOAuth2. +// It is required to handle differences in the scope field, which can +// be an array of strings or a single string. +func (c *ConnectionOptionsOAuth2) UnmarshalJSON(data []byte) error { + type connectionOptionsOAuth2 ConnectionOptionsOAuth2 + type connectionOptionsOAuth2Wrapper struct { + *connectionOptionsOAuth2 + RawScope interface{} `json:"scope,omitempty"` + } + + alias := &connectionOptionsOAuth2Wrapper{(*connectionOptionsOAuth2)(c), nil} + + err := json.Unmarshal(data, alias) + if err != nil { + return err + } + + if alias.RawScope != nil { + switch rawScope := alias.RawScope.(type) { + case []interface{}: + scopes := make([]string, len(rawScope)) + for i, v := range rawScope { + scopes[i] = v.(string) + } + c.Scope = auth0.String(strings.Join(scopes, " ")) + case string: + c.Scope = auth0.String(rawScope) + default: + return fmt.Errorf("unexpected type for field scope: %T", alias.RawScope) + } + } + + return nil +} + +// MarshalJSON implements the json.Marshaler interface for ConnectionOptionsOAuth2. +func (c *ConnectionOptionsOAuth2) MarshalJSON() ([]byte, error) { + type connectionOptionsOAuth2 ConnectionOptionsOAuth2 + type connectionOptionsOAuth2Wrapper struct { + *connectionOptionsOAuth2 + RawScope interface{} `json:"scope,omitempty"` + } + + alias := &connectionOptionsOAuth2Wrapper{(*connectionOptionsOAuth2)(c), nil} + if c.Scope != nil { + scopes := strings.Fields(*c.Scope) + alias.RawScope = scopes + } + + return json.Marshal(alias) +} + // Scopes returns the scopes for ConnectionOptionsOAuth2. func (c *ConnectionOptionsOAuth2) Scopes() []string { return strings.Fields(c.GetScope()) diff --git a/management/connection_test.go b/management/connection_test.go index fe1816d3..9a1e25fe 100644 --- a/management/connection_test.go +++ b/management/connection_test.go @@ -28,6 +28,21 @@ var connectionTestCases = []connectionTestCase{ }, }, }, + { + name: "Wordpress Connection", + connection: Connection{ + Name: auth0.Stringf("Test-Wordpress-Connection-%d", time.Now().Unix()), + Strategy: auth0.String("wordpress"), + }, + options: &ConnectionOptionsOAuth2{ + Scope: auth0.String("email profile openid"), + UpstreamParams: map[string]interface{}{ + "screen_name": map[string]interface{}{ + "alias": "login_hint", + }, + }, + }, + }, { name: "GoogleOAuth2 Connection", connection: Connection{ @@ -612,6 +627,32 @@ func TestConnectionOptionsScopes(t *testing.T) { }) } +func TestOAuth2Connection_MarshalJSON(t *testing.T) { + for connection, expected := range map[*ConnectionOptionsOAuth2]string{ + {Scope: auth0.String("foo bar baz")}: `{"authorizationURL":null,"tokenURL":null,"scope":["foo","bar","baz"]}`, + {Scope: auth0.String("")}: `{"authorizationURL":null,"tokenURL":null,"scope":[]}`, + {Scope: nil}: `{"authorizationURL":null,"tokenURL":null}`, + } { + payload, err := json.Marshal(connection) + assert.NoError(t, err) + assert.Equal(t, expected, string(payload)) + } +} + +func TestOAuth2Connection_UnmarshalJSON(t *testing.T) { + for expectedAsString, expected := range map[string]*ConnectionOptionsOAuth2{ + `{"scope":["foo","bar","baz"]}`: {Scope: auth0.String("foo bar baz")}, + `{"scope":null}`: {Scope: nil}, + `{}`: {}, + `{"scope":[]}`: {Scope: auth0.String("")}, + } { + var actual *ConnectionOptionsOAuth2 + err := json.Unmarshal([]byte(expectedAsString), &actual) + assert.NoError(t, err) + assert.Equal(t, expected, actual) + } +} + func TestGoogleOauth2Connection_MarshalJSON(t *testing.T) { var emptySlice []string for connection, expected := range map[*ConnectionOptionsGoogleOAuth2]string{ diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml index 6258f9fb..6b03fbfb 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_ADFS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1714039090","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-ADFS-Connection-1714473052","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_99dCf1MTlQiNP56U","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/8Il6A5Qd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039090"]}' + body: '{"id":"con_0395zVLxXGz37nxg","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/s3WGmg3a","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 317.085292ms + duration: 383.956ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_99dCf1MTlQiNP56U + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0395zVLxXGz37nxg method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:17.762Z"}' + body: '{"deleted_at":"2024-04-30T10:31:00.646Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 289.661625ms + duration: 366.961792ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml index 3b4dc799..d0cbe8b3 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_AD_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039090","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714473052","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 407 uncompressed: false - body: '{"id":"con_HzF4tG8cdHmnnn30","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/ITTPn4ckD4O3R2JUiLJl0h0NjGGlBotS","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039090"]}' + body: '{"id":"con_pbVKvqxBHFr6oWPj","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/ebkio6LUEGJu1ohysbIlQybdZ3Imrm3A","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 329.268584ms + duration: 406.856083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_HzF4tG8cdHmnnn30 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbVKvqxBHFr6oWPj method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:17.153Z"}' + body: '{"deleted_at":"2024-04-30T10:30:59.908Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 298.261542ms + duration: 329.858125ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml index 5ba8c8b2..7653f2cf 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Apple_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039090","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714473052","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_Y8Kj7ui38hZiC8fp","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039090"]}' + body: '{"id":"con_vweVu7ZlaTbdM5C0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 304.10175ms + duration: 363.491583ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y8Kj7ui38hZiC8fp + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_vweVu7ZlaTbdM5C0 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:19.013Z"}' + body: '{"deleted_at":"2024-04-30T10:31:02.076Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 302.679292ms + duration: 358.612958ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml index d83161e4..d08cd10d 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Auth0_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039090","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714473052","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - body: '{"id":"con_pcnj6AYiMPfhD3Xj","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039090"]}' + body: '{"id":"con_wrGwirVruBhK1ceq","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.234447666s + duration: 1.161378458s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pcnj6AYiMPfhD3Xj + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wrGwirVruBhK1ceq method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:11.936Z"}' + body: '{"deleted_at":"2024-04-30T10:30:54.013Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 320.527083ms + duration: 372.204459ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml index 3d255407..b38c9adf 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Custom_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039090","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714473052","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - body: '{"id":"con_4ufaOPCb5X7w3CE3","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039090"]}' + body: '{"id":"con_BDd5LNqGUfIMPPMf","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 498.095167ms + duration: 355.267625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4ufaOPCb5X7w3CE3 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BDd5LNqGUfIMPPMf method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:15.876Z"}' + body: '{"deleted_at":"2024-04-30T10:30:58.463Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 299.285917ms + duration: 346.820666ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml index ea80cd3a..c26ea5af 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Email_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039090","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Email-Connection-1714473052","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_bOSN9UAfIz3cbLJ5","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039090"]}' + body: '{"id":"con_eKVuo2VWBiQYat9m","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 320.399458ms + duration: 328.45525ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bOSN9UAfIz3cbLJ5 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eKVuo2VWBiQYat9m method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:14.445Z"}' + body: '{"deleted_at":"2024-04-30T10:30:57.060Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 303.483833ms + duration: 357.016541ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml index 01d5985c..2205f487 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Facebook_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039090","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714473052","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_PgWaMhpWrX8NAyJG","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039090"]}' + body: '{"id":"con_gxh8Kt7WPAPjLy9a","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 321.464792ms + duration: 329.907792ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_PgWaMhpWrX8NAyJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gxh8Kt7WPAPjLy9a method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:18.398Z"}' + body: '{"deleted_at":"2024-04-30T10:31:01.355Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 326.34525ms + duration: 353.038375ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml index 1081bd40..9c5fdda7 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GitHub_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039090","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714473052","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_6R4edWvsVXC1sr4O","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039090"]}' + body: '{"id":"con_wGlnCXNEDWdGYGVd","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.78463775s + duration: 388.00275ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6R4edWvsVXC1sr4O + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wGlnCXNEDWdGYGVd method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:21.842Z"}' + body: '{"deleted_at":"2024-04-30T10:31:03.495Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 685.960583ms + duration: 352.389834ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml index 1e4929dc..2d68f269 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleApps_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039090","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleApps-Connection-1714473052","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - body: '{"id":"con_iJf7zQKi1LHgzKoM","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039090","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/EGqzsZGc","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039090"]}' + body: '{"id":"con_MnSnzPgu18RtUzeO","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473052","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/4VrqkleQ","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 424.161083ms + duration: 494.386625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJf7zQKi1LHgzKoM + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnSnzPgu18RtUzeO method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:13.787Z"}' + body: '{"deleted_at":"2024-04-30T10:30:56.383Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 341.964375ms + duration: 367.900041ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml index 78967b96..2b451d73 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_GoogleOAuth2_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039090","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} + {"name":"Test-GoogleOAuth2-Connection-1714473052","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_Sa4O6pSH5FKgxMr6","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039090"]}' + body: '{"id":"con_o4leyQcvPnEsulhA","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 402.828ms + duration: 364.11275ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Sa4O6pSH5FKgxMr6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o4leyQcvPnEsulhA method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:13.042Z"}' + body: '{"deleted_at":"2024-04-30T10:30:55.503Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 700.637958ms + duration: 372.373292ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml index bd30a03e..4860edf4 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_LinkedIn_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039090","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714473052","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_yU1dsr25pBOE4KoF","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039090"]}' + body: '{"id":"con_9IFegLFxjRNzwXyS","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 304.820042ms + duration: 324.244083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1dsr25pBOE4KoF + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9IFegLFxjRNzwXyS method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:19.609Z"}' + body: '{"deleted_at":"2024-04-30T10:31:02.748Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 288.470875ms + duration: 353.9405ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml index 26501651..a07f4d30 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_OIDC_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1714039090","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714473052","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 601 uncompressed: false - body: '{"id":"con_gwUQcKszoR4YzqJh","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039090","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039090"]}' + body: '{"id":"con_R3vDvBL9APN6FWup","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714473052","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 466.066583ms + duration: 495.284625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gwUQcKszoR4YzqJh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_R3vDvBL9APN6FWup method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:25.239Z"}' + body: '{"deleted_at":"2024-04-30T10:31:05.781Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 1.0150705s + duration: 466.204667ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml index d618bcaa..fa4e1126 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Okta_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1714039090","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Okta-Connection-1714473052","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_UNM36xniapct7Fdg","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039090","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039090"]}' + body: '{"id":"con_ymZTflBKfO1nZe4Z","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714473052","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 2.004119209s + duration: 617.88775ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_UNM36xniapct7Fdg + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ymZTflBKfO1nZe4Z method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:27.774Z"}' + body: '{"deleted_at":"2024-04-30T10:31:06.851Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 294.757417ms + duration: 332.492834ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml index 745ff8f9..865fd372 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Ping_Federate_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Ping-Federate-Connection-1714039090","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} + {"name":"Test-Ping-Federate-Connection-1714473052","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_zb1phW3cVWRcc1Z8","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/Xpsski7H","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039090"]}' + body: '{"id":"con_lO9x4ot3mzIM8vZf","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/WjwaF4Jm","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.462875ms + duration: 435.125292ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zb1phW3cVWRcc1Z8 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lO9x4ot3mzIM8vZf method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:28.392Z"}' + body: '{"deleted_at":"2024-04-30T10:31:07.657Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.251458ms + duration: 436.62025ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml index 93b78d2d..3a6920c2 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SAML_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1714039090","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SAML-Connection-1714473052","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Kq4CT6aSuGAE2tmh","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039090","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/TYwMKw5u","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039090"]}' + body: '{"id":"con_QdwAW6eftPXgNARQ","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714473052","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/O0kUSqAO","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 338.630541ms + duration: 350.210375ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Kq4CT6aSuGAE2tmh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QdwAW6eftPXgNARQ method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:16.520Z"}' + body: '{"deleted_at":"2024-04-30T10:30:59.156Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 297.435833ms + duration: 344.824041ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml index 833ced20..9ccb439c 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039090","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SMS-Connection-1714473052","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_iKq24od5UExzvR6v","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039090"]}' + body: '{"id":"con_lMBgpzFbHQhCoJ19","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 315.465333ms + duration: 340.851792ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iKq24od5UExzvR6v + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lMBgpzFbHQhCoJ19 method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:15.065Z"}' + body: '{"deleted_at":"2024-04-30T10:30:57.758Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 319.833583ms + duration: 344.044ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml index e76c9358..faaf0457 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_SalesForce_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039090","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714473052","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_XcQCQDdgps4WlT0E","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039090"]}' + body: '{"id":"con_8GVCTa5JxURNv0tW","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 298.047833ms + duration: 377.860708ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XcQCQDdgps4WlT0E + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8GVCTa5JxURNv0tW method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:23.986Z"}' + body: '{"deleted_at":"2024-04-30T10:31:04.939Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 305.483166ms + duration: 333.829875ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml index f0c852e8..0b1465d8 100644 --- a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_WindowsLive_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039090","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714473052","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_OJEwRqLoDmRsrQwX","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039090","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039090"]}' + body: '{"id":"con_lwVv7HioQN9yT6ZJ","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473052"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 996.973917ms + duration: 363.12475ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OJEwRqLoDmRsrQwX + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_lwVv7HioQN9yT6ZJ method: DELETE response: proto: HTTP/2.0 @@ -65,10 +65,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:23.380Z"}' + body: '{"deleted_at":"2024-04-30T10:31:04.213Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.195167ms + duration: 364.028125ms diff --git a/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml new file mode 100644 index 00000000..80763a6c --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Create/It_can_successfully_create_a_Wordpress_Connection.yaml @@ -0,0 +1,74 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 217 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473052","strategy":"wordpress","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 342 + uncompressed: false + body: '{"id":"con_1LIdptTAFtTOkREW","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473052","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473052"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 389.720583ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_1LIdptTAFtTOkREW + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:30:54.765Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 376.670125ms diff --git a/test/data/recordings/TestConnectionManager_Delete.yaml b/test/data/recordings/TestConnectionManager_Delete.yaml index 6b9fa3c8..400d0c6f 100644 --- a/test/data/recordings/TestConnectionManager_Delete.yaml +++ b/test/data/recordings/TestConnectionManager_Delete.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039361","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1714473387","strategy":"auth0"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 520 uncompressed: false - body: '{"id":"con_eDAiZ1UPsIUzjZZD","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039361","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039361"]}' + body: '{"id":"con_LYWBkMBZrC6aelY5","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473387","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473387"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 719.911542ms + duration: 828.671875ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 method: DELETE response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:02:42.108Z"}' + body: '{"deleted_at":"2024-04-30T10:36:28.127Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 307.303583ms + duration: 329.139917ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 method: GET response: proto: HTTP/2.0 @@ -106,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 286.915125ms + duration: 339.533416ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eDAiZ1UPsIUzjZZD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_LYWBkMBZrC6aelY5 method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 278.150167ms + duration: 353.659875ms diff --git a/test/data/recordings/TestConnectionManager_List.yaml b/test/data/recordings/TestConnectionManager_List.yaml index 8a734bb0..7ce71ac5 100644 --- a/test/data/recordings/TestConnectionManager_List.yaml +++ b/test/data/recordings/TestConnectionManager_List.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-List-1714039374","strategy":"auth0"} + {"name":"Test-Auth0-Connection-List-1714473394","strategy":"auth0"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 530 uncompressed: false - body: '{"id":"con_DuRWr9eEHgCRBxh5","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-List-1714039374","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1714039374"]}' + body: '{"id":"con_9ipDSs5V9ANs9sBA","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-List-1714473394","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-List-1714473394"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 680.305709ms + duration: 1.072938375s - id: 1 request: proto: HTTP/1.1 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":5,"start":0,"limit":50,"connections":[{"id":"con_zKW9Xxoj0tFV5LnK","is_domain_connection":false},{"id":"con_hxpwEaue9vG1Nmah","is_domain_connection":false},{"id":"con_DuRWr9eEHgCRBxh5","is_domain_connection":false},{"id":"con_j2mkms4M0wmxNiSx","is_domain_connection":false},{"id":"con_o1RfqDaIvuekh5T5","is_domain_connection":false}]}' + body: '{"total":5,"start":0,"limit":50,"connections":[{"id":"con_zKW9Xxoj0tFV5LnK","is_domain_connection":false},{"id":"con_hxpwEaue9vG1Nmah","is_domain_connection":false},{"id":"con_9ipDSs5V9ANs9sBA","is_domain_connection":false},{"id":"con_j2mkms4M0wmxNiSx","is_domain_connection":false},{"id":"con_o1RfqDaIvuekh5T5","is_domain_connection":false}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 280.450917ms + duration: 325.89875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_DuRWr9eEHgCRBxh5 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9ipDSs5V9ANs9sBA method: DELETE response: proto: HTTP/2.0 @@ -100,10 +100,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:02:56.036Z"}' + body: '{"deleted_at":"2024-04-30T10:36:36.523Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 300.531209ms + duration: 328.540667ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml index 39a31625..24657d51 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_ADFS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1714039119","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-ADFS-Connection-1714473198","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Pf8jZhMH5fUfas7S","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/agYNWXCB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' + body: '{"id":"con_uvDp1KQI1WMnLp8O","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/KNWoyrHt","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.828168125s + duration: 350.364ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Pf8jZhMH5fUfas7S","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/agYNWXCB","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' + body: '{"id":"con_uvDp1KQI1WMnLp8O","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/KNWoyrHt","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 283.031666ms + duration: 353.083208ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:57.761Z"}' + body: '{"deleted_at":"2024-04-30T10:33:39.160Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 359.249042ms + duration: 320.5215ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Pf8jZhMH5fUfas7S + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uvDp1KQI1WMnLp8O method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 281.2415ms + duration: 394.116541ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml index 957f34f2..0f1bae6a 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_AD_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039119","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714473198","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 407 uncompressed: false - body: '{"id":"con_liiPTODci0164g0d","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d8yQjHWI7ZmcelIM8QCz7PqVZTPRHS6d","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' + body: '{"id":"con_SyGo8pu7byDRkHPa","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d1h4il6iNZLWlByYXujP6MZUCCVMsFeL","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 312.809166ms + duration: 338.068584ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_liiPTODci0164g0d","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d8yQjHWI7ZmcelIM8QCz7PqVZTPRHS6d","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' + body: '{"id":"con_SyGo8pu7byDRkHPa","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/d1h4il6iNZLWlByYXujP6MZUCCVMsFeL","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 287.541791ms + duration: 349.556584ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:54.400Z"}' + body: '{"deleted_at":"2024-04-30T10:33:31.487Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 287.127875ms + duration: 345.545084ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_liiPTODci0164g0d + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SyGo8pu7byDRkHPa method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 904.360708ms + duration: 6.626678375s diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml index 01b2c417..8f600a07 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Apple_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039119","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714473198","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_ulUkCQdIpt4Rc35k","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' + body: '{"id":"con_SQk86k5mLVQWdVNx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 279.609083ms + duration: 406.227875ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_ulUkCQdIpt4Rc35k","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' + body: '{"id":"con_SQk86k5mLVQWdVNx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 1.008866583s + duration: 332.068209ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:01.023Z"}' + body: '{"deleted_at":"2024-04-30T10:33:42.269Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 291.508625ms + duration: 447.952375ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ulUkCQdIpt4Rc35k + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQk86k5mLVQWdVNx method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:01.023Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 286.908542ms + status: 204 No Content + code: 204 + duration: 332.105666ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml index 9d1449d0..f25c99f0 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Auth0_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039119","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714473198","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - body: '{"id":"con_5AsdYqbYZK1UHvJG","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' + body: '{"id":"con_yU1jaw0rreAkxE0R","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 676.395708ms + duration: 797.860334ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_5AsdYqbYZK1UHvJG","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' + body: '{"id":"con_yU1jaw0rreAkxE0R","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 278.576333ms + duration: 364.919833ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:40.979Z"}' + body: '{"deleted_at":"2024-04-30T10:33:19.595Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 718.49725ms + duration: 327.139792ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5AsdYqbYZK1UHvJG + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_yU1jaw0rreAkxE0R method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 296.858084ms + duration: 320.961042ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml index 8aaadd99..bd3d669b 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Custom_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714473198","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - body: '{"id":"con_kg5g3CWVxE01lql9","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' + body: '{"id":"con_sJn2mdHVsF09i1yK","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 533.0365ms + duration: 399.502083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_kg5g3CWVxE01lql9","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' + body: '{"id":"con_sJn2mdHVsF09i1yK","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 321.263833ms + duration: 331.206959ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:50.789Z"}' + body: '{"deleted_at":"2024-04-30T10:33:28.551Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 532.929208ms + duration: 478.443875ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kg5g3CWVxE01lql9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sJn2mdHVsF09i1yK method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 1.111852833s + duration: 353.65575ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml index 797cb595..67f7e04a 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Email_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039119","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Email-Connection-1714473198","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_MWvrzZGqfpZdjojf","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' + body: '{"id":"con_cTSqXxWoLevx7EoJ","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.83537625s + duration: 384.920375ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_MWvrzZGqfpZdjojf","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' + body: '{"id":"con_cTSqXxWoLevx7EoJ","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 284.650959ms + duration: 338.224791ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:47.235Z"}' + body: '{"deleted_at":"2024-04-30T10:33:25.290Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 303.03975ms + duration: 353.717375ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MWvrzZGqfpZdjojf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_cTSqXxWoLevx7EoJ method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:47.235Z"}' + body: '{"deleted_at":"2024-04-30T10:33:25.290Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 296.719333ms + duration: 314.753875ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml index df231f2c..ef2ca954 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Facebook_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039119","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714473198","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_rEOcYHfO6hayZeVf","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' + body: '{"id":"con_xJbBgEWF54NBRyDU","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 290.859541ms + duration: 406.369792ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_rEOcYHfO6hayZeVf","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' + body: '{"id":"con_xJbBgEWF54NBRyDU","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 270.879958ms + duration: 409.065667ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:58.910Z"}' + body: '{"deleted_at":"2024-04-30T10:33:40.706Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 538.240583ms + duration: 409.334334ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rEOcYHfO6hayZeVf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_xJbBgEWF54NBRyDU method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 277.320666ms + duration: 408.962333ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml index 6c26eeef..d1619071 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GitHub_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039119","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714473198","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_pKErIJOvmCDBHDmu","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' + body: '{"id":"con_rXyFZf1jLxNKLHq6","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 6.770864333s + duration: 339.808125ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_pKErIJOvmCDBHDmu","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' + body: '{"id":"con_rXyFZf1jLxNKLHq6","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 290.357042ms + duration: 310.81775ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:10.517Z"}' + body: '{"deleted_at":"2024-04-30T10:33:45.675Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 940.935583ms + duration: 349.036834ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pKErIJOvmCDBHDmu + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_rXyFZf1jLxNKLHq6 method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:45.675Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 291.931083ms + status: 202 Accepted + code: 202 + duration: 344.12775ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml index a2a37364..c32d8783 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleApps_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039119","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleApps-Connection-1714473198","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - body: '{"id":"con_i0BNiwITSWk1tFSh","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/8zC73qIN","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' + body: '{"id":"con_5Pwdf8riSqOSl3Nv","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473198","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/IHMf58rC","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 373.794375ms + duration: 468.054584ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_i0BNiwITSWk1tFSh","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/8zC73qIN","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' + body: '{"id":"con_5Pwdf8riSqOSl3Nv","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473198","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/IHMf58rC","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 940.760291ms + duration: 321.829125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:44.527Z"}' + body: '{"deleted_at":"2024-04-30T10:33:23.898Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 283.51875ms + duration: 346.397916ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_i0BNiwITSWk1tFSh + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Pwdf8riSqOSl3Nv method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:23.898Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 281.428125ms + status: 202 Accepted + code: 202 + duration: 328.279125ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml index eff1f045..111e1b48 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_GoogleOAuth2_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039119","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} + {"name":"Test-GoogleOAuth2-Connection-1714473198","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_YuZ7vqMV4QOsZNcf","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' + body: '{"id":"con_wSoxywAAbF3L24PX","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.303ms + duration: 352.906625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_YuZ7vqMV4QOsZNcf","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' + body: '{"id":"con_wSoxywAAbF3L24PX","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 298.592416ms + duration: 363.881125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:42.414Z"}' + body: '{"deleted_at":"2024-04-30T10:33:22.375Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 298.447291ms + duration: 338.441166ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YuZ7vqMV4QOsZNcf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_wSoxywAAbF3L24PX method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:22.375Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 504.469167ms + status: 202 Accepted + code: 202 + duration: 390.45475ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml index a3a4c7ab..03977c40 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_LinkedIn_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039119","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714473198","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_nfU32kQA3KQ7ihtY","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' + body: '{"id":"con_eaIVHi6cpMMLKhLW","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 929.889834ms + duration: 459.667167ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_nfU32kQA3KQ7ihtY","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' + body: '{"id":"con_eaIVHi6cpMMLKhLW","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 289.014083ms + duration: 577.483292ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:02.820Z"}' + body: '{"deleted_at":"2024-04-30T10:33:44.093Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 281.665084ms + duration: 340.815875ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nfU32kQA3KQ7ihtY + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaIVHi6cpMMLKhLW method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 340.3295ms + duration: 596.247125ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml index c87f293a..2053c571 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_OIDC_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1714039119","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714473198","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 601 uncompressed: false - body: '{"id":"con_y7zUsbV329xFLrMO","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' + body: '{"id":"con_jupNbydQGYPotAVo","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 608.625625ms + duration: 499.51625ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_y7zUsbV329xFLrMO","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' + body: '{"id":"con_jupNbydQGYPotAVo","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 303.0795ms + duration: 345.431167ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:15.016Z"}' + body: '{"deleted_at":"2024-04-30T10:33:50.344Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 282.691833ms + duration: 327.611042ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y7zUsbV329xFLrMO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_jupNbydQGYPotAVo method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:15.016Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 289.665792ms + status: 204 No Content + code: 204 + duration: 336.887084ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml index eb8be846..9734d881 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Okta_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1714039119","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Okta-Connection-1714473198","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_8lirb7WPfkQCJbHO","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' + body: '{"id":"con_U8bCbR5G60jXUHhI","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 530.491167ms + duration: 620.70325ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_8lirb7WPfkQCJbHO","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' + body: '{"id":"con_U8bCbR5G60jXUHhI","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714473198","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 275.73625ms + duration: 334.3025ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:16.423Z"}' + body: '{"deleted_at":"2024-04-30T10:33:52.308Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 306.130625ms + duration: 704.891917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_8lirb7WPfkQCJbHO + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_U8bCbR5G60jXUHhI method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:52.308Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 279.331084ms + status: 202 Accepted + code: 202 + duration: 317.054417ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml index 73cb7d40..c47ca065 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Ping_Federate_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Ping-Federate-Connection-1714039119","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} + {"name":"Test-Ping-Federate-Connection-1714473198","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_3IDb76XUJe64wte9","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/jgCUtTsq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' + body: '{"id":"con_IO8VmU6v6n06WTDp","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/TCzsAt5H","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 565.412833ms + duration: 361.766333ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_3IDb76XUJe64wte9","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/jgCUtTsq","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' + body: '{"id":"con_IO8VmU6v6n06WTDp","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/TCzsAt5H","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 288.681583ms + duration: 340.971667ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:17.855Z"}' + body: '{"deleted_at":"2024-04-30T10:33:53.705Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 6.76604075s + duration: 412.491542ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_3IDb76XUJe64wte9 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_IO8VmU6v6n06WTDp method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:53.705Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 301.09725ms + status: 202 Accepted + code: 202 + duration: 374.138667ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml index c5d83b93..bacabdc9 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SAML_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1714039119","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SAML-Connection-1714473198","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_OOotKswZ4NDuqxD6","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/24shvsu0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' + body: '{"id":"con_sm3oJRdagvqKFvpm","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/haDfh6yd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 314.43ms + duration: 398.977708ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_OOotKswZ4NDuqxD6","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/24shvsu0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' + body: '{"id":"con_sm3oJRdagvqKFvpm","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714473198","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/haDfh6yd","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 288.493042ms + duration: 340.891166ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:53.002Z"}' + body: '{"deleted_at":"2024-04-30T10:33:30.030Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 271.65725ms + duration: 429.279542ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OOotKswZ4NDuqxD6 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_sm3oJRdagvqKFvpm method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 507.191667ms + duration: 346.346875ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml index 039108f5..56080f92 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SMS-Connection-1714473198","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_QVhTByAUKCKGFPEe","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' + body: '{"id":"con_nuuebpXQzLPwZrhq","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 545.083041ms + duration: 513.9165ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_QVhTByAUKCKGFPEe","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' + body: '{"id":"con_nuuebpXQzLPwZrhq","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 519.649958ms + duration: 409.678875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:58:48.906Z"}' + body: '{"deleted_at":"2024-04-30T10:33:26.874Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 311.9005ms + duration: 410.3715ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QVhTByAUKCKGFPEe + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nuuebpXQzLPwZrhq method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:33:26.874Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 701.853209ms + status: 202 Accepted + code: 202 + duration: 416.808875ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml index 80f74294..00f104c3 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_SalesForce_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039119","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714473198","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_RVKEsDIRPSWdVIW1","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' + body: '{"id":"con_fKtFTXLPoJ1LnNvE","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 285.587042ms + duration: 326.873834ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_RVKEsDIRPSWdVIW1","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' + body: '{"id":"con_fKtFTXLPoJ1LnNvE","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 292.226125ms + duration: 313.401875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:13.516Z"}' + body: '{"deleted_at":"2024-04-30T10:33:48.629Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.118209ms + duration: 381.336083ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RVKEsDIRPSWdVIW1 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fKtFTXLPoJ1LnNvE method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:13.516Z"}' + body: '{"deleted_at":"2024-04-30T10:33:48.629Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.393417ms + duration: 511.058333ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml index 634e77af..59a8abde 100644 --- a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_WindowsLive_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039119","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714473198","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_s20VSSN0ch6UGDsH","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' + body: '{"id":"con_YXdytpu4VSD0F7de","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 306.423875ms + duration: 369.866583ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_s20VSSN0ch6UGDsH","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' + body: '{"id":"con_YXdytpu4VSD0F7de","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473198"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 296.549583ms + duration: 407.859209ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:12.363Z"}' + body: '{"deleted_at":"2024-04-30T10:33:47.325Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 291.101917ms + duration: 502.293667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_s20VSSN0ch6UGDsH + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_YXdytpu4VSD0F7de method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 287.7265ms + duration: 316.352125ms diff --git a/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml new file mode 100644 index 00000000..547939c1 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Read/It_can_successfully_read_a_Wordpress_Connection.yaml @@ -0,0 +1,144 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 217 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473198","strategy":"wordpress","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 342 + uncompressed: false + body: '{"id":"con_QgVJdPChZqeIauvG","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473198"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 332.632125ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_QgVJdPChZqeIauvG","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473198","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473198"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 355.966417ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:33:20.954Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 342.890084ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QgVJdPChZqeIauvG + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 361.824834ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml index 15d062c1..29caba9d 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_ADFS_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-ADFS-Connection-1714039119","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-ADFS-Connection-1714473302","strategy":"adfs","options":{"fedMetadataXml":"\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cEntityDescriptor entityID=\"https://example.com\"\n xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"\u003e\n \u003cRoleDescriptor xsi:type=\"fed:ApplicationServiceType\"\n protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"\u003e\n \u003cfed:TargetScopes\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:TargetScopes\u003e\n \u003cfed:ApplicationServiceEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:ApplicationServiceEndpoint\u003e\n \u003cfed:PassiveRequestorEndpoint\u003e\n \u003cwsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"\u003e\n \u003cwsa:Address\u003ehttps://adfs.provider/wsfed\u003c/wsa:Address\u003e\n \u003c/wsa:EndpointReference\u003e\n \u003c/fed:PassiveRequestorEndpoint\u003e\n \u003c/RoleDescriptor\u003e\n \u003cIDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"\u003e\n \u003cSingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_out\"/\u003e\n \u003cSingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n Location=\"https://adfs.provider/sign_in\"/\u003e\n \u003c/IDPSSODescriptor\u003e\n\u003c/EntityDescriptor\u003e\n","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_Eb5a0lw82xSQ7L2R","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/boL8bVmA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714039119"]}' + body: '{"id":"con_bpvlBQPDCBDsqOot","options":{"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","upstream_params":{"screen_name":{"alias":"login_hint"}},"thumbprints":[],"signInEndpoint":"https://adfs.provider/wsfed","should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/IGwco2TF","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-ADFS-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 554.73075ms + duration: 5.710824125s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-ADFS-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Eb5a0lw82xSQ7L2R","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/boL8bVmA","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_bpvlBQPDCBDsqOot","options":{"thumbprints":[],"fedMetadataXml":"\n\n \n \n \n https://adfs.provider/\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n https://adfs.provider/wsfed\n \n \n \n \n \n \n \n\n","signInEndpoint":"https://adfs.provider/wsfed","upstream_params":{"screen_name":{"alias":"login_hint"}},"should_trust_email_verified_connection":"always_set_emails_as_verified"},"strategy":"adfs","name":"Test-ADFS-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/adfs/IGwco2TF","is_domain_connection":false,"show_as_button":false,"realms":["Test-ADFS-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 286.625875ms + duration: 403.112334ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Eb5a0lw82xSQ7L2R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bpvlBQPDCBDsqOot method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:40.625Z"}' + body: '{"deleted_at":"2024-04-30T10:35:23.448Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 300.554541ms + duration: 328.764666ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Eb5a0lw82xSQ7L2R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bpvlBQPDCBDsqOot method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:23.448Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 269.242583ms + status: 202 Accepted + code: 202 + duration: 436.47375ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml index 99d36a9f..87b98df5 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_AD_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039119","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-AD-Connection-1714473302","strategy":"ad","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 407 uncompressed: false - body: '{"id":"con_y4u6xzf79w6o7ujq","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/WZ04z8Ta5DVJFrkVO25atdDUpTOpZql5","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039119"]}' + body: '{"id":"con_fJKZpLULtI3twgjl","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/F0rXspAqECvfI0bW3n6xXWieHs8bEJrA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 294.543792ms + duration: 326.753166ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-AD-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_y4u6xzf79w6o7ujq","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/WZ04z8Ta5DVJFrkVO25atdDUpTOpZql5","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_fJKZpLULtI3twgjl","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/F0rXspAqECvfI0bW3n6xXWieHs8bEJrA","is_domain_connection":false,"show_as_button":false,"realms":["Test-AD-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 282.695875ms + duration: 318.130083ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y4u6xzf79w6o7ujq + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fJKZpLULtI3twgjl method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:39.223Z"}' + body: '{"deleted_at":"2024-04-30T10:35:16.691Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 274.557583ms + duration: 331.01025ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_y4u6xzf79w6o7ujq + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_fJKZpLULtI3twgjl method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 255.857166ms + duration: 312.649333ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml index dd992e22..c0dd4696 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Apple_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039119","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Apple-Connection-1714473302","strategy":"apple","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 255 uncompressed: false - body: '{"id":"con_QQWSQL3NBr7jFMgR","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039119"]}' + body: '{"id":"con_4bwoWzShbslsA9Hn","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 297.382458ms + duration: 348.066084ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Apple-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_QQWSQL3NBr7jFMgR","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039119","is_domain_connection":false,"realms":["Test-Apple-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_4bwoWzShbslsA9Hn","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473302","is_domain_connection":false,"realms":["Test-Apple-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 295.378ms + duration: 316.280125ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QQWSQL3NBr7jFMgR + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4bwoWzShbslsA9Hn method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:42.941Z"}' + body: '{"deleted_at":"2024-04-30T10:35:26.195Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 311.191417ms + duration: 340.531958ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QQWSQL3NBr7jFMgR + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4bwoWzShbslsA9Hn method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:42.941Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 276.171ms + status: 204 No Content + code: 204 + duration: 307.697292ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml index 3b96a3ce..29dfbd4f 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Auth0_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039119","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Auth0-Connection-1714473302","strategy":"auth0","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 577 uncompressed: false - body: '{"id":"con_tfZFr7R6TuERRgdX","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039119"]}' + body: '{"id":"con_ljYVBopvrTDcvyUB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 307.732ms + duration: 812.202167ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Auth0-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tfZFr7R6TuERRgdX","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039119","is_domain_connection":false,"realms":["Test-Auth0-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_ljYVBopvrTDcvyUB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"strategy_version":2,"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473302","is_domain_connection":false,"realms":["Test-Auth0-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 294.977125ms + duration: 331.410917ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tfZFr7R6TuERRgdX + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ljYVBopvrTDcvyUB method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:25.529Z"}' + body: '{"deleted_at":"2024-04-30T10:35:04.939Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 282.262625ms + duration: 989.603458ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tfZFr7R6TuERRgdX + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_ljYVBopvrTDcvyUB method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 268.172333ms + duration: 379.8115ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml index d6dbe343..b9db0986 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Custom_SMS_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Custom-SMS-Connection-1714473302","strategy":"sms","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 763 uncompressed: false - body: '{"id":"con_9JvXRKOlv2f59CWZ","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039119"]}' + body: '{"id":"con_RHIwoZw7hdVMJDRw","options":{"name":"Test-Connection-Custom-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"messaging_service_sid":null,"provider":"sms_gateway","gateway_url":"https://test.com/sms-gateway","gateway_authentication":{"method":"bearer","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret":"my-secret","secret_base64_encoded":false},"forward_req_info":true,"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 319.076709ms + duration: 404.771542ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Custom-SMS-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_9JvXRKOlv2f59CWZ","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039119","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_RHIwoZw7hdVMJDRw","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473302","is_domain_connection":false,"realms":["Test-Custom-SMS-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 268.253ms + duration: 409.61325ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9JvXRKOlv2f59CWZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RHIwoZw7hdVMJDRw method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:31.674Z"}' + body: '{"deleted_at":"2024-04-30T10:35:13.890Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 286.25625ms + duration: 333.687333ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9JvXRKOlv2f59CWZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RHIwoZw7hdVMJDRw method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:13.890Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 5.536023833s + status: 202 Accepted + code: 202 + duration: 373.838708ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml index 3615310f..0ee2e4d0 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Email_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039119","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Email-Connection-1714473302","strategy":"email","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} \u003ctest@example.com\u003e","subject":"Email Login - {{application.name}}","body":"\u003chtml\u003e\u003cbody\u003eemail contents\u003c/body\u003e\u003c/html\u003e"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 588 uncompressed: false - body: '{"id":"con_BE9tW3vz5RItIKXa","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039119"]}' + body: '{"id":"con_kZfCnQYXVGXwFs6J","options":{"name":"Test-Connection-Email","email":{"syntax":"liquid","from":"{{application.name}} ","subject":"Email Login - {{application.name}}","body":"email contents"},"totp":{"time_step":100,"length":4},"authParams":{"scope":"openid profile"},"disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"email","name":"Test-Email-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.864125ms + duration: 343.757667ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Email-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_BE9tW3vz5RItIKXa","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039119","is_domain_connection":false,"realms":["Test-Email-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_kZfCnQYXVGXwFs6J","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473302","is_domain_connection":false,"realms":["Test-Email-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 263.096083ms + duration: 374.519708ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BE9tW3vz5RItIKXa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kZfCnQYXVGXwFs6J method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:29.356Z"}' + body: '{"deleted_at":"2024-04-30T10:35:10.863Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 279.080333ms + duration: 333.051833ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_BE9tW3vz5RItIKXa + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_kZfCnQYXVGXwFs6J method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:29.356Z"}' + body: '{"deleted_at":"2024-04-30T10:35:10.863Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 257.493709ms + duration: 311.9795ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml index ed0ef002..7ded958c 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Facebook_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039119","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Facebook-Connection-1714473302","strategy":"facebook","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 275 uncompressed: false - body: '{"id":"con_XP35DTZjHGlrxtJ2","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039119"]}' + body: '{"id":"con_SQmJVLGTsYZ2ighN","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 311.860542ms + duration: 346.242291ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Facebook-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_XP35DTZjHGlrxtJ2","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039119","is_domain_connection":false,"realms":["Test-Facebook-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_SQmJVLGTsYZ2ighN","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473302","is_domain_connection":false,"realms":["Test-Facebook-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 283.588792ms + duration: 320.32525ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XP35DTZjHGlrxtJ2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQmJVLGTsYZ2ighN method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:41.777Z"}' + body: '{"deleted_at":"2024-04-30T10:35:24.876Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 276.754958ms + duration: 325.861667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XP35DTZjHGlrxtJ2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SQmJVLGTsYZ2ighN method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:24.876Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 260.40425ms + status: 202 Accepted + code: 202 + duration: 304.703291ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml index 3fd87981..9f3a3c75 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GitHub_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039119","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GitHub-Connection-1714473302","strategy":"github","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 269 uncompressed: false - body: '{"id":"con_RcckZlJhvfSjBY1R","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039119"]}' + body: '{"id":"con_zh6MDuAZ44XHV2FW","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 301.498333ms + duration: 343.616333ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GitHub-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_RcckZlJhvfSjBY1R","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039119","is_domain_connection":false,"realms":["Test-GitHub-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_zh6MDuAZ44XHV2FW","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473302","is_domain_connection":false,"realms":["Test-GitHub-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 280.33575ms + duration: 336.696875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RcckZlJhvfSjBY1R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zh6MDuAZ44XHV2FW method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:51.306Z"}' + body: '{"deleted_at":"2024-04-30T10:35:28.907Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 307.214917ms + duration: 337.443625ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RcckZlJhvfSjBY1R + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zh6MDuAZ44XHV2FW method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 280.070042ms + duration: 409.240417ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml index 2fbc56d3..fd670275 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleApps_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039119","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-GoogleApps-Connection-1714473302","strategy":"google-apps","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 627 uncompressed: false - body: '{"id":"con_6I7X9m56rlIb6yLK","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/XFQUoBp1","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039119"]}' + body: '{"id":"con_5Dc3F1Db2EttVzhS","options":{"domain":"example.com","tenant_domain":"example.com","basic_profile":true,"ext_profile":true,"ext_groups":true,"ext_is_admin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473302","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/ZLxQCuAn","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 604.915583ms + duration: 477.005917ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleApps-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_6I7X9m56rlIb6yLK","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039119","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/XFQUoBp1","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_5Dc3F1Db2EttVzhS","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473302","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/ZLxQCuAn","is_domain_connection":false,"show_as_button":false,"realms":["Test-GoogleApps-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 288.721625ms + duration: 457.007875ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6I7X9m56rlIb6yLK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Dc3F1Db2EttVzhS method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:28.190Z"}' + body: '{"deleted_at":"2024-04-30T10:35:09.395Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 352.645708ms + duration: 441.548166ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_6I7X9m56rlIb6yLK + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Dc3F1Db2EttVzhS method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:28.190Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 262.637583ms + status: 204 No Content + code: 204 + duration: 314.826458ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml index 6291adf2..d71a04c3 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_GoogleOAuth2_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039119","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} + {"name":"Test-GoogleOAuth2-Connection-1714473302","strategy":"google-oauth2","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 462 uncompressed: false - body: '{"id":"con_5Y7mJiuZzRmhXF0Z","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039119"]}' + body: '{"id":"con_OBIag7kpH76OFUDM","options":{"profile":true,"calendar":true,"youtube":false,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"],"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 309.049125ms + duration: 360.493292ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-GoogleOAuth2-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_5Y7mJiuZzRmhXF0Z","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039119","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_OBIag7kpH76OFUDM","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473302","is_domain_connection":false,"realms":["Test-GoogleOAuth2-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 293.278791ms + duration: 319.3915ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Y7mJiuZzRmhXF0Z + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OBIag7kpH76OFUDM method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:26.709Z"}' + body: '{"deleted_at":"2024-04-30T10:35:07.743Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 308.996708ms + duration: 358.136041ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_5Y7mJiuZzRmhXF0Z + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_OBIag7kpH76OFUDM method: DELETE response: proto: HTTP/2.0 @@ -135,10 +135,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:26.709Z"}' + body: '{"deleted_at":"2024-04-30T10:35:07.743Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 267.257167ms + duration: 378.220291ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml index cd0bcbd9..6e434c76 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_LinkedIn_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039119","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-LinkedIn-Connection-1714473302","strategy":"linkedin","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 306 uncompressed: false - body: '{"id":"con_AWLYaFqXQsNsWSoi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039119"]}' + body: '{"id":"con_bvAUCuevZHdYeIo1","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 313.553625ms + duration: 342.666208ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-LinkedIn-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_AWLYaFqXQsNsWSoi","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039119","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_bvAUCuevZHdYeIo1","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473302","is_domain_connection":false,"realms":["Test-LinkedIn-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 290.845291ms + duration: 337.3845ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_AWLYaFqXQsNsWSoi + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bvAUCuevZHdYeIo1 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:49.480Z"}' + body: '{"deleted_at":"2024-04-30T10:35:27.510Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 6.292603417s + duration: 325.439917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_AWLYaFqXQsNsWSoi + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_bvAUCuevZHdYeIo1 method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:27.510Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 291.290542ms + status: 202 Accepted + code: 202 + duration: 386.39975ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml index 9367db7e..db19d839 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_OIDC_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-OIDC-Connection-1714039119","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-OIDC-Connection-1714473302","strategy":"oidc","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 601 uncompressed: false - body: '{"id":"con_oavO85VKWUdxjTL4","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714039119"]}' + body: '{"id":"con_Q9zMy9JwSiBYeYm9","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","type":"front_channel","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"oidc","name":"Test-OIDC-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-OIDC-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 465.701209ms + duration: 603.3885ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-OIDC-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_oavO85VKWUdxjTL4","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"realms":["Test-OIDC-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Q9zMy9JwSiBYeYm9","options":{"type":"front_channel","scope":"openid","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","discovery_url":"https://example.com//.well-known/openid-configuration","token_endpoint":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":null,"authorization_endpoint":"https://example.com"},"strategy":"oidc","name":"Test-OIDC-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"realms":["Test-OIDC-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 773.123167ms + duration: 320.242375ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oavO85VKWUdxjTL4 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q9zMy9JwSiBYeYm9 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:55.818Z"}' + body: '{"deleted_at":"2024-04-30T10:35:33.463Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 292.169125ms + duration: 338.707083ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oavO85VKWUdxjTL4 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Q9zMy9JwSiBYeYm9 method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 304.647375ms + duration: 362.9335ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml index 8c176ff6..b7e0ac97 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Okta_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Okta-Connection-1714039119","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-Okta-Connection-1714473302","strategy":"okta","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://example.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":null,"token_endpoint":null,"scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_SP4CdTOqji8SmKaf","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714039119"]}' + body: '{"id":"con_SP7oYgVyYp5WbIVp","options":{"client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","domain":"domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","token_endpoint":"https://domain.okta.com/oauth2/v1/token","scope":"openid","upstream_params":{"screen_name":{"alias":"login_hint"}},"oidc_metadata":{"issuer":"https://domain.okta.com","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","token_endpoint":"https://domain.okta.com/oauth2/v1/token","userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"code_challenge_methods_supported":["S256"],"introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","request_parameter_supported":true,"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"]}},"strategy":"okta","name":"Test-Okta-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Okta-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 777.184708ms + duration: 6.041564875s - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Okta-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_SP4CdTOqji8SmKaf","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714039119","is_domain_connection":false,"show_as_button":false,"realms":["Test-Okta-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_SP7oYgVyYp5WbIVp","options":{"scope":"openid","domain":"domain.okta.com","issuer":"https://example.com","jwks_uri":"https://example.com/jwks","client_id":"4ef8d976-71bd-4473-a7ce-087d3f0fafd8","client_secret":"mySecret","oidc_metadata":{"issuer":"https://domain.okta.com","jwks_uri":"https://domain.okta.com/oauth2/v1/keys","token_endpoint":"https://domain.okta.com/oauth2/v1/token","claims_supported":["iss","ver","sub","aud","iat","exp","jti","auth_time","amr","idp","nonce","name","nickname","preferred_username","given_name","middle_name","family_name","email","email_verified","profile","zoneinfo","locale","address","phone_number","picture","website","gender","birthdate","updated_at","at_hash","c_hash"],"scopes_supported":["openid","email","profile","address","phone","offline_access","groups"],"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","revocation_endpoint":"https://domain.okta.com/oauth2/v1/revoke","end_session_endpoint":"https://domain.okta.com/oauth2/v1/logout","grant_types_supported":["authorization_code","implicit","refresh_token","password","urn:ietf:params:oauth:grant-type:device_code"],"registration_endpoint":"https://domain.okta.com/oauth2/v1/clients","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize","introspection_endpoint":"https://domain.okta.com/oauth2/v1/introspect","subject_types_supported":["public"],"response_modes_supported":["query","fragment","form_post","okta_post_message"],"response_types_supported":["code","id_token","code id_token","code token","id_token token","code id_token token"],"request_parameter_supported":true,"device_authorization_endpoint":"https://domain.okta.com/oauth2/v1/device/authorize","code_challenge_methods_supported":["S256"],"dpop_signing_alg_values_supported":["RS256","RS384","RS512","ES256","ES384","ES512"],"id_token_signing_alg_values_supported":["RS256"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"revocation_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],"request_object_signing_alg_values_supported":["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],"introspection_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"]},"token_endpoint":"https://domain.okta.com/oauth2/v1/token","upstream_params":{"screen_name":{"alias":"login_hint"}},"userinfo_endpoint":"https://domain.okta.com/oauth2/v1/userinfo","authorization_endpoint":"https://domain.okta.com/oauth2/v1/authorize"},"strategy":"okta","name":"Test-Okta-Connection-1714473302","is_domain_connection":false,"show_as_button":false,"realms":["Test-Okta-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.276334ms + duration: 509.725583ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP4CdTOqji8SmKaf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP7oYgVyYp5WbIVp method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:57.532Z"}' + body: '{"deleted_at":"2024-04-30T10:35:40.725Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 523.684125ms + duration: 339.382667ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP4CdTOqji8SmKaf + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_SP7oYgVyYp5WbIVp method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:40.725Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 271.990125ms + status: 202 Accepted + code: 202 + duration: 386.975667ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml index 8ac99c84..e32a0d3b 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Ping_Federate_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Ping-Federate-Connection-1714039119","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} + {"name":"Test-Ping-Federate-Connection-1714473302","strategy":"pingfederate","options":{"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_pxXUpEqz6lImRZsy","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/vQxjgHtA","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714039119"]}' + body: '{"id":"con_Y4h0LOeTmjEccyT9","options":{"digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com","signInEndpoint":"https://ping.example.com","expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/je480ld2","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-Ping-Federate-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 941.722375ms + duration: 396.583375ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Ping-Federate-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_pxXUpEqz6lImRZsy","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/vQxjgHtA","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_Y4h0LOeTmjEccyT9","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"signInEndpoint":"https://ping.example.com","digestAlgorithm":"sha256","signSAMLRequest":true,"signatureAlgorithm":"rsa-sha256","pingFederateBaseUrl":"https://ping.example.com"},"strategy":"pingfederate","name":"Test-Ping-Federate-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/pingfederate/je480ld2","is_domain_connection":false,"show_as_button":false,"realms":["Test-Ping-Federate-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 928.417792ms + duration: 408.605083ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pxXUpEqz6lImRZsy + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y4h0LOeTmjEccyT9 method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:00:00.222Z"}' + body: '{"deleted_at":"2024-04-30T10:35:42.254Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 295.817834ms + duration: 410.584125ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pxXUpEqz6lImRZsy + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_Y4h0LOeTmjEccyT9 method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 41 + content_length: 0 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:00:00.222Z"}' + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 281.725333ms + status: 204 No Content + code: 204 + duration: 335.738875ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml index 65739152..2b34693c 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SAML_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SAML-Connection-1714039119","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SAML-Connection-1714473302","strategy":"samlp","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"id":"con_367wYAui2j9BVs1K","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/1BWHvJZn","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714039119"]}' + body: '{"id":"con_iJSlQ9Cp3VcULPHt","options":{"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","fieldsMap":{"email":"EmailAddress","family_name":"LastName","given_name":"FirstName"},"upstream_params":{"screen_name":{"alias":"login_hint"}},"expires":"2010-09-09T22:05:43.000Z","subject":{"countryName":"AU","stateOrProvinceName":"Some-State","organizationName":"Internet Widgits Pty Ltd","commonName":"europa.sfo.corp.google.com"},"thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----"},"strategy":"samlp","name":"Test-SAML-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/2HEKdzI1","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-SAML-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 307.439416ms + duration: 367.211542ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SAML-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_367wYAui2j9BVs1K","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714039119","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/1BWHvJZn","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_iJSlQ9Cp3VcULPHt","options":{"cert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","expires":"2010-09-09T22:05:43.000Z","subject":{"commonName":"europa.sfo.corp.google.com","countryName":"AU","organizationName":"Internet Widgits Pty Ltd","stateOrProvinceName":"Some-State"},"fieldsMap":{"email":"EmailAddress","given_name":"FirstName","family_name":"LastName"},"signingCert":"-----BEGIN CERTIFICATE-----\nMIID6TCCA1ICAQEwDQYJKoZIhvcNAQEFBQAwgYsxCzAJBgNVBAYTAlVTMRMwEQYD\nVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRQwEgYDVQQK\nEwtHb29nbGUgSW5jLjEMMAoGA1UECxMDRW5nMQwwCgYDVQQDEwNhZ2wxHTAbBgkq\nhkiG9w0BCQEWDmFnbEBnb29nbGUuY29tMB4XDTA5MDkwOTIyMDU0M1oXDTEwMDkw\nOTIyMDU0M1owajELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAf\nBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEjMCEGA1UEAxMaZXVyb3Bh\nLnNmby5jb3JwLmdvb2dsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQC6pgYt7/EibBDumASF+S0qvqdL/f+nouJw2T1Qc8GmXF/iiUcrsgzh/Fd8\npDhz/T96Qg9IyR4ztuc2MXrmPra+zAuSf5bevFReSqvpIt8Duv0HbDbcqs/XKPfB\nuMDe+of7a9GCywvAZ4ZUJcp0thqD9fKTTjUWOBzHY1uNE4RitrhmJCrbBGXbJ249\nbvgmb7jgdInH2PU7PT55hujvOoIsQW2osXBFRur4pF1wmVh4W4lTLD6pjfIMUcML\nICHEXEN73PDic8KS3EtNYCwoIld+tpIBjE1QOb1KOyuJBNW6Esw9ALZn7stWdYcE\nqAwvv20egN2tEXqj7Q4/1ccyPZc3PQgC3FJ8Be2mtllM+80qf4dAaQ/fWvCtOrQ5\npnfe9juQvCo8Y0VGlFcrSys/MzSg9LJ/24jZVgzQved/Qupsp89wVidwIzjt+WdS\nfyWfH0/v1aQLvu5cMYuW//C0W2nlYziL5blETntM8My2ybNARy3ICHxCBv2RNtPI\nWQVm+E9/W5rwh2IJR4DHn2LHwUVmT/hHNTdBLl5Uhwr4Wc7JhE7AVqb14pVNz1lr\n5jxsp//ncIwftb7mZQ3DF03Yna+jJhpzx8CQoeLT6aQCHyzmH68MrHHT4MALPyUs\nPomjn71GNTtDeWAXibjCgdL6iHACCF6Htbl0zGlG0OAK+bdn0QIDAQABMA0GCSqG\nSIb3DQEBBQUAA4GBAOKnQDtqBV24vVqvesL5dnmyFpFPXBn3WdFfwD6DzEb21UVG\n5krmJiu+ViipORJPGMkgoL6BjU21XI95VQbun5P8vvg8Z+FnFsvRFY3e1CCzAVQY\nZsUkLw2I7zI/dNlWdB8Xp7v+3w9sX5N3J/WuJ1KOO5m26kRlHQo7EzT3974g\n-----END CERTIFICATE-----","thumbprints":["b93611bf2cfdb64110c7aae1485718cc9385e151"],"decryptionKey":{"key":"-----BEGIN PRIVATE KEY-----\\n...{your private key here}...\\n-----END PRIVATE KEY-----","cert":"-----BEGIN CERTIFICATE-----\\n...{your public key cert here}...\\n-----END CERTIFICATE-----"},"tenant_domain":"example.com","signInEndpoint":"https://saml.identity/provider","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"samlp","name":"Test-SAML-Connection-1714473302","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/samlp/2HEKdzI1","is_domain_connection":false,"show_as_button":false,"realms":["Test-SAML-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 274.846834ms + duration: 322.228459ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_367wYAui2j9BVs1K + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJSlQ9Cp3VcULPHt method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:38.093Z"}' + body: '{"deleted_at":"2024-04-30T10:35:15.287Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 290.469917ms + duration: 331.640917ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_367wYAui2j9BVs1K + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iJSlQ9Cp3VcULPHt method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:15.287Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 264.618666ms + status: 202 Accepted + code: 202 + duration: 419.533875ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml index 68273ef5..3554058e 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SMS_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039119","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SMS-Connection-1714473302","strategy":"sms","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 606 uncompressed: false - body: '{"id":"con_tlXbDURTRR0gwQ2C","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039119"]}' + body: '{"id":"con_h7XPly3pvVkSzeJk","options":{"name":"Test-Connection-SMS","from":"+17777777777","syntax":"liquid","template":"Your verification code is { code }}","totp":{"time_step":110,"length":5},"authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","messaging_service_sid":"273248090982390423","disable_signup":true,"brute_force_protection":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"sms","name":"Test-SMS-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 292.268209ms + duration: 338.048708ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SMS-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_tlXbDURTRR0gwQ2C","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039119","is_domain_connection":false,"realms":["Test-SMS-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_h7XPly3pvVkSzeJk","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473302","is_domain_connection":false,"realms":["Test-SMS-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.508125ms + duration: 400.735542ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlXbDURTRR0gwQ2C + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h7XPly3pvVkSzeJk method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:30.526Z"}' + body: '{"deleted_at":"2024-04-30T10:35:12.258Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 287.902709ms + duration: 408.584042ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_tlXbDURTRR0gwQ2C + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_h7XPly3pvVkSzeJk method: DELETE response: proto: HTTP/2.0 @@ -133,12 +133,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2024-04-30T10:35:12.258Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 280.039167ms + status: 202 Accepted + code: 202 + duration: 409.85725ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml index 20f4e9b6..e1b63aec 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_SalesForce_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039119","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-SalesForce-Connection-1714473302","strategy":"salesforce","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 281 uncompressed: false - body: '{"id":"con_pbupNl5E5iKEDlaQ","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039119"]}' + body: '{"id":"con_0piuYFctzHie9Z3e","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 330.258958ms + duration: 336.914084ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-SalesForce-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_pbupNl5E5iKEDlaQ","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039119","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_0piuYFctzHie9Z3e","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473302","is_domain_connection":false,"realms":["Test-SalesForce-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 496.320125ms + duration: 320.87ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbupNl5E5iKEDlaQ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0piuYFctzHie9Z3e method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:54.022Z"}' + body: '{"deleted_at":"2024-04-30T10:35:31.861Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 318.626625ms + duration: 363.419625ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pbupNl5E5iKEDlaQ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_0piuYFctzHie9Z3e method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 263.171333ms + duration: 312.71275ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml index 9a364171..e6cee4ff 100644 --- a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_WindowsLive_Connection_by_its_name.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039119","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Test-WindowsLive-Connection-1714473302","strategy":"windowslive","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 309 uncompressed: false - body: '{"id":"con_JFpIlYsUyRx9Xw26","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039119"]}' + body: '{"id":"con_aioG22piwFEMfV9s","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}},"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473302"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 293.4585ms + duration: 324.487042ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1714039119&per_page=50 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-WindowsLive-Connection-1714473302&per_page=50 method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_JFpIlYsUyRx9Xw26","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039119","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1714039119"],"enabled_clients":[]}]}' + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_aioG22piwFEMfV9s","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473302","is_domain_connection":false,"realms":["Test-WindowsLive-Connection-1714473302"],"enabled_clients":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 280.759708ms + duration: 387.395416ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JFpIlYsUyRx9Xw26 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aioG22piwFEMfV9s method: DELETE response: proto: HTTP/2.0 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T09:59:52.456Z"}' + body: '{"deleted_at":"2024-04-30T10:35:30.375Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 435.677958ms + duration: 410.282417ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_JFpIlYsUyRx9Xw26 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aioG22piwFEMfV9s method: DELETE response: proto: HTTP/2.0 @@ -141,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 265.29075ms + duration: 410.982208ms diff --git a/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml new file mode 100644 index 00000000..2f681868 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_ReadByName/It_can_successfully_find_a_Wordpress_Connection_by_its_name.yaml @@ -0,0 +1,144 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 217 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473302","strategy":"wordpress","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 342 + uncompressed: false + body: '{"id":"con_7qEL7ZP1LkJ6laad","options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["profile"],"profile":true},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473302","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473302"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 324.772917ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections?include_totals=true&name=Test-Wordpress-Connection-1714473302&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"total":1,"start":0,"limit":50,"connections":[{"id":"con_7qEL7ZP1LkJ6laad","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473302","is_domain_connection":false,"realms":["Test-Wordpress-Connection-1714473302"],"enabled_clients":[]}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 341.853791ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7qEL7ZP1LkJ6laad + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:35:06.372Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 332.967375ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_7qEL7ZP1LkJ6laad + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 334.271875ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml index 6143ef91..fc5556c3 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_AD_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-AD-Connection-1714039292","strategy":"ad"} + {"name":"Test-AD-Connection-1714473349","strategy":"ad"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 350 uncompressed: false - body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' + body: '{"id":"con_2Q6DiHDd5tthYU7j","options":{"ips":null,"brute_force_protection":true},"strategy":"ad","name":"Test-AD-Connection-1714473349","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cgFvR7be7nfvfREDaIxQhgMBSL168G0f","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 302.12025ms + duration: 344.410334ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' + body: '{"id":"con_2Q6DiHDd5tthYU7j","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714473349","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cgFvR7be7nfvfREDaIxQhgMBSL168G0f","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 414.295583ms + duration: 448.570083ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_zsC3GprohpRtuwjx","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714039292","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/LCyjwS5K1LUdEmKdldcwV5nGyy8VEooX","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714039292"]}' + body: '{"id":"con_2Q6DiHDd5tthYU7j","options":{"ips":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"ad","name":"Test-AD-Connection-1714473349","provisioning_ticket_url":"https://go-auth0-dev.eu.auth0.com.us.auth0.com/p/ad/cgFvR7be7nfvfREDaIxQhgMBSL168G0f","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-AD-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 268.425791ms + duration: 322.231792ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_zsC3GprohpRtuwjx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_2Q6DiHDd5tthYU7j method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:44.108Z"}' + body: '{"deleted_at":"2024-04-30T10:36:02.434Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 300.658625ms + duration: 337.959166ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml index 0846e28d..bbf013f0 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Apple_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Apple-Connection-1714039292","strategy":"apple"} + {"name":"Test-Apple-Connection-1714473349","strategy":"apple"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 199 uncompressed: false - body: '{"id":"con_eaFIj3kL972NXvEx","options":{},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' + body: '{"id":"con_k450HrzoSZun0qqi","options":{},"strategy":"apple","name":"Test-Apple-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 293.626083ms + duration: 348.921709ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_eaFIj3kL972NXvEx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' + body: '{"id":"con_k450HrzoSZun0qqi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 339.756666ms + duration: 355.444708ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_eaFIj3kL972NXvEx","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714039292"]}' + body: '{"id":"con_k450HrzoSZun0qqi","options":{"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"apple","name":"Test-Apple-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Apple-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.779083ms + duration: 529.399083ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_eaFIj3kL972NXvEx + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_k450HrzoSZun0qqi method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:47.207Z"}' + body: '{"deleted_at":"2024-04-30T10:36:11.640Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 280.97975ms + duration: 407.669792ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml index 9f5405c2..f53ca056 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Auth0_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Auth0-Connection-1714039292","strategy":"auth0"} + {"name":"Test-Auth0-Connection-1714473349","strategy":"auth0"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 520 uncompressed: false - body: '{"id":"con_gym71s4JTbACZkRN","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' + body: '{"id":"con_g2D8xIh9FP73ayJ5","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"authentication_methods":{"password":{"enabled":true},"passkey":{"enabled":false}},"passkey_options":{"challenge_ui":"both","progressive_enrollment_enabled":true,"local_enrollment_enabled":true},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 694.736708ms + duration: 1.054093916s - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_gym71s4JTbACZkRN","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' + body: '{"id":"con_g2D8xIh9FP73ayJ5","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 305.594084ms + duration: 368.411333ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_gym71s4JTbACZkRN","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714039292"]}' + body: '{"id":"con_g2D8xIh9FP73ayJ5","options":{"passkey_options":{"challenge_ui":"both","local_enrollment_enabled":true,"progressive_enrollment_enabled":true},"upstream_params":{"screen_name":{"alias":"login_hint"}},"authentication_methods":{"passkey":{"enabled":false},"password":{"enabled":true}},"brute_force_protection":true},"strategy":"auth0","name":"Test-Auth0-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Auth0-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 285.979583ms + duration: 339.03675ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_gym71s4JTbACZkRN + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_g2D8xIh9FP73ayJ5 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:33.572Z"}' + body: '{"deleted_at":"2024-04-30T10:35:52.002Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 296.915208ms + duration: 338.445791ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml index 75bdeeb3..09b47c07 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Custom_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Custom-SMS-Connection-1714039292","strategy":"sms"} + {"name":"Test-Custom-SMS-Connection-1714473349","strategy":"sms"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 236 uncompressed: false - body: '{"id":"con_iszyrbDILLXEvhY2","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' + body: '{"id":"con_o1OkAN3GOCni2pr5","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 295.31075ms + duration: 381.738375ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_iszyrbDILLXEvhY2","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' + body: '{"id":"con_o1OkAN3GOCni2pr5","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 324.368167ms + duration: 340.817625ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_iszyrbDILLXEvhY2","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714039292"]}' + body: '{"id":"con_o1OkAN3GOCni2pr5","options":{"from":"+17777777777","name":"Test-Connection-Custom-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","provider":"sms_gateway","template":"Your verification code is { code }}","gateway_url":"https://test.com/sms-gateway","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"forward_req_info":true,"messaging_service_sid":null,"brute_force_protection":true,"gateway_authentication":{"method":"bearer","secret":"my-secret","subject":"test.us.auth0.com:sms","audience":"test.com/sms-gateway","secret_base64_encoded":false}},"strategy":"sms","name":"Test-Custom-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Custom-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 291.176875ms + duration: 370.793583ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_iszyrbDILLXEvhY2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_o1OkAN3GOCni2pr5 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:42.800Z"}' + body: '{"deleted_at":"2024-04-30T10:36:00.992Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 309.914375ms + duration: 329.6475ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml index dbc5ae8a..bf98a1a3 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Email_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Email-Connection-1714039292","strategy":"email"} + {"name":"Test-Email-Connection-1714473349","strategy":"email"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 228 uncompressed: false - body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' + body: '{"id":"con_4rAqdFx8di4ueV0J","options":{"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 297.275209ms + duration: 406.44075ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' + body: '{"id":"con_4rAqdFx8di4ueV0J","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 294.23425ms + duration: 409.085708ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_RBiLlSz3urXl5DtS","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714039292"]}' + body: '{"id":"con_4rAqdFx8di4ueV0J","options":{"name":"Test-Connection-Email","totp":{"length":4,"time_step":100},"email":{"body":"email contents","from":"{{application.name}} ","syntax":"liquid","subject":"Email Login - {{application.name}}"},"authParams":{"scope":"openid profile"},"disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"brute_force_protection":true},"strategy":"email","name":"Test-Email-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Email-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 279.903375ms + duration: 409.385125ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_RBiLlSz3urXl5DtS + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_4rAqdFx8di4ueV0J method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:38.208Z"}' + body: '{"deleted_at":"2024-04-30T10:35:57.911Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 955.824208ms + duration: 408.627375ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml index b93ca0f4..d1609388 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Facebook_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-Facebook-Connection-1714039292","strategy":"facebook"} + {"name":"Test-Facebook-Connection-1714473349","strategy":"facebook"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 218 uncompressed: false - body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' + body: '{"id":"con_XjRQTRVnj4CIqfZt","options":{"scope":""},"strategy":"facebook","name":"Test-Facebook-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 956.147916ms + duration: 337.285667ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' + body: '{"id":"con_XjRQTRVnj4CIqfZt","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 317.796042ms + duration: 344.148833ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_a0BNayXHa5NmYT62","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714039292"]}' + body: '{"id":"con_XjRQTRVnj4CIqfZt","options":{"scope":"","upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"facebook","name":"Test-Facebook-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Facebook-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 292.061042ms + duration: 320.207875ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_a0BNayXHa5NmYT62 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_XjRQTRVnj4CIqfZt method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:45.970Z"}' + body: '{"deleted_at":"2024-04-30T10:36:10.070Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 290.76125ms + duration: 6.617861667s diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml index aaf05920..4da435d5 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GitHub_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GitHub-Connection-1714039292","strategy":"github"} + {"name":"Test-GitHub-Connection-1714473349","strategy":"github"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 212 uncompressed: false - body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' + body: '{"id":"con_QPtYW1u27Q3RfX0g","options":{"scope":[]},"strategy":"github","name":"Test-GitHub-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 927.687875ms + duration: 328.446541ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' + body: '{"id":"con_QPtYW1u27Q3RfX0g","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 310.876166ms + duration: 365.121542ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_CP8FLjqc8XFBUREC","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714039292"]}' + body: '{"id":"con_QPtYW1u27Q3RfX0g","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"github","name":"Test-GitHub-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GitHub-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 1.79357775s + duration: 409.684084ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CP8FLjqc8XFBUREC + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_QPtYW1u27Q3RfX0g method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:52.516Z"}' + body: '{"deleted_at":"2024-04-30T10:36:14.717Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 351.685416ms + duration: 381.227416ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml index 5ec12f2f..fca9c1ad 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleApps_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleApps-Connection-1714039292","strategy":"google-apps"} + {"name":"Test-GoogleApps-Connection-1714473349","strategy":"google-apps"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 439 uncompressed: false - body: '{"id":"con_GjAws9biy6A99gV7","options":{"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' + body: '{"id":"con_aktOwZ6B3TXbxVRT","options":{"map_user_id_to_id":false,"email":true,"profile":true,"scope":["email","profile"],"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473349","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/oLTnZqRh","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.036354875s + duration: 391.310542ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_GjAws9biy6A99gV7","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' + body: '{"id":"con_aktOwZ6B3TXbxVRT","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473349","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/oLTnZqRh","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 376.1175ms + duration: 400.50175ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_GjAws9biy6A99gV7","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714039292","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/eIuk1Zi0","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714039292"]}' + body: '{"id":"con_aktOwZ6B3TXbxVRT","options":{"email":true,"scope":["email","profile"],"domain":"example.com","profile":true,"ext_groups":true,"ext_profile":true,"ext_is_admin":true,"basic_profile":true,"tenant_domain":"example.com","upstream_params":{"screen_name":{"alias":"login_hint"}},"api_enable_users":true,"map_user_id_to_id":false,"handle_login_from_social":true},"strategy":"google-apps","name":"Test-GoogleApps-Connection-1714473349","provisioning_ticket_url":"https://login.us.auth0.com/go-auth0-dev.eu.auth0.com/p/google-apps/oLTnZqRh","is_domain_connection":false,"show_as_button":false,"enabled_clients":[],"realms":["Test-GoogleApps-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 503.019583ms + duration: 311.666334ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_GjAws9biy6A99gV7 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_aktOwZ6B3TXbxVRT method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:37.013Z"}' + body: '{"deleted_at":"2024-04-30T10:35:56.278Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.560583ms + duration: 403.222958ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml index e5a4dfda..01020061 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_GoogleOAuth2_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-GoogleOAuth2-Connection-1714039292","strategy":"google-oauth2"} + {"name":"Test-GoogleOAuth2-Connection-1714473349","strategy":"google-oauth2"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 276 uncompressed: false - body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' + body: '{"id":"con_enYMdfsLAL21lQdY","options":{"email":true,"profile":true,"scope":["email","profile"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 317.978583ms + duration: 340.064417ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' + body: '{"id":"con_enYMdfsLAL21lQdY","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 319.743833ms + duration: 351.209042ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_MnklKVU1JL0BX1OD","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714039292"]}' + body: '{"id":"con_enYMdfsLAL21lQdY","options":{"email":true,"scope":["profile","https://www.googleapis.com/auth/calendar","email"],"profile":true,"youtube":false,"calendar":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"allowed_audiences":["example.com","api.example.com"]},"strategy":"google-oauth2","name":"Test-GoogleOAuth2-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-GoogleOAuth2-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 279.961583ms + duration: 315.872458ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_MnklKVU1JL0BX1OD + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_enYMdfsLAL21lQdY method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:34.793Z"}' + body: '{"deleted_at":"2024-04-30T10:35:54.852Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 283.353167ms + duration: 318.002208ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml index 30dad569..58f33257 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_LinkedIn_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-LinkedIn-Connection-1714039292","strategy":"linkedin"} + {"name":"Test-LinkedIn-Connection-1714473349","strategy":"linkedin"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 249 uncompressed: false - body: '{"id":"con_oziq1YEBqFiBR92e","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' + body: '{"id":"con_CcU6SfOpsnaSg7Sd","options":{"profile":true,"scope":["r_basicprofile"]},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 307.984875ms + duration: 325.509792ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_oziq1YEBqFiBR92e","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' + body: '{"id":"con_CcU6SfOpsnaSg7Sd","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 304.721125ms + duration: 388.11225ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_oziq1YEBqFiBR92e","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714039292"]}' + body: '{"id":"con_CcU6SfOpsnaSg7Sd","options":{"scope":["r_basicprofile"],"profile":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"linkedin","name":"Test-LinkedIn-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-LinkedIn-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 268.467833ms + duration: 511.497042ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_oziq1YEBqFiBR92e + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_CcU6SfOpsnaSg7Sd method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:48.488Z"}' + body: '{"deleted_at":"2024-04-30T10:36:13.275Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 1.044783292s + duration: 326.123125ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml index 9aed5308..940968d9 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SMS_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SMS-Connection-1714039292","strategy":"sms"} + {"name":"Test-SMS-Connection-1714473349","strategy":"sms"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 222 uncompressed: false - body: '{"id":"con_pi37EtqyVqePsI4f","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' + body: '{"id":"con_uLQfYJEONvCnUHXh","options":{"brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 1.795596666s + duration: 407.244792ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_pi37EtqyVqePsI4f","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' + body: '{"id":"con_uLQfYJEONvCnUHXh","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 305.624792ms + duration: 408.142209ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_pi37EtqyVqePsI4f","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714039292"]}' + body: '{"id":"con_uLQfYJEONvCnUHXh","options":{"from":"+17777777777","name":"Test-Connection-SMS","totp":{"length":5,"time_step":110},"syntax":"liquid","template":"Your verification code is { code }}","authParams":{"scope":"openid profile"},"twilio_sid":"abc132asdfasdf56","twilio_token":"234127asdfsada23","disable_signup":true,"upstream_params":{"screen_name":{"alias":"login_hint"}},"messaging_service_sid":"273248090982390423","brute_force_protection":true},"strategy":"sms","name":"Test-SMS-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SMS-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 318.74275ms + duration: 409.7815ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_pi37EtqyVqePsI4f + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_uLQfYJEONvCnUHXh method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:41.588Z"}' + body: '{"deleted_at":"2024-04-30T10:35:59.560Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 313.56ms + duration: 335.282125ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml index 97f0b978..ecef6063 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_SalesForce_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-SalesForce-Connection-1714039292","strategy":"salesforce"} + {"name":"Test-SalesForce-Connection-1714473349","strategy":"salesforce"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 224 uncompressed: false - body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' + body: '{"id":"con_J8nYaGeXEjgiGMN8","options":{"scope":[]},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 312.016375ms + duration: 324.308375ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' + body: '{"id":"con_J8nYaGeXEjgiGMN8","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 523.849917ms + duration: 326.621541ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_L8BCFH0jqf0D2Sav","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714039292"]}' + body: '{"id":"con_J8nYaGeXEjgiGMN8","options":{"scope":[],"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"salesforce","name":"Test-SalesForce-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-SalesForce-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 3.582142958s + duration: 316.0715ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_L8BCFH0jqf0D2Sav + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_J8nYaGeXEjgiGMN8 method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:58.420Z"}' + body: '{"deleted_at":"2024-04-30T10:36:17.453Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 304.281625ms + duration: 339.649ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml index 3ab4522e..296c5480 100644 --- a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_WindowsLive_Connection.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Test-WindowsLive-Connection-1714039292","strategy":"windowslive"} + {"name":"Test-WindowsLive-Connection-1714473349","strategy":"windowslive"} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 252 uncompressed: false - body: '{"id":"con_01I10VePNYgEafNZ","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' + body: '{"id":"con_nOGF5qjtHo2hxbMa","options":{"signin":true,"scope":["wl.signin"]},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 304.106458ms + duration: 323.031542ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa method: PATCH response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_01I10VePNYgEafNZ","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' + body: '{"id":"con_nOGF5qjtHo2hxbMa","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 284.833042ms + duration: 326.617625ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa method: GET response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_01I10VePNYgEafNZ","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714039292","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714039292"]}' + body: '{"id":"con_nOGF5qjtHo2hxbMa","options":{"scope":["wl.signin"],"signin":true,"upstream_params":{"screen_name":{"alias":"login_hint"}}},"strategy":"windowslive","name":"Test-WindowsLive-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-WindowsLive-Connection-1714473349"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 276.366458ms + duration: 400.32ms - id: 3 request: proto: HTTP/1.1 @@ -126,7 +126,7 @@ interactions: - application/json User-Agent: - Go-Auth0/1.5.0 - url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_01I10VePNYgEafNZ + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_nOGF5qjtHo2hxbMa method: DELETE response: proto: HTTP/2.0 @@ -136,10 +136,10 @@ interactions: trailer: {} content_length: 41 uncompressed: false - body: '{"deleted_at":"2024-04-25T10:01:53.699Z"}' + body: '{"deleted_at":"2024-04-30T10:36:16.145Z"}' headers: Content-Type: - application/json; charset=utf-8 status: 202 Accepted code: 202 - duration: 305.449541ms + duration: 324.35775ms diff --git a/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml new file mode 100644 index 00000000..5190fa97 --- /dev/null +++ b/test/data/recordings/TestConnectionManager_Update/It_can_successfully_update_a_Wordpress_Connection.yaml @@ -0,0 +1,145 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 71 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test-Wordpress-Connection-1714473349","strategy":"wordpress"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"id":"con_9gZjtNQGTjW8fWc2","options":{"profile":true,"scope":["profile"]},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473349"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 418.796333ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 148 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"options":{"authorizationURL":null,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"scope":["email","profile","openid"]}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_9gZjtNQGTjW8fWc2","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473349"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 339.303333ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_9gZjtNQGTjW8fWc2","options":{"scope":["profile"],"profile":true,"tokenURL":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"authorizationURL":null},"strategy":"wordpress","name":"Test-Wordpress-Connection-1714473349","is_domain_connection":false,"enabled_clients":[],"realms":["Test-Wordpress-Connection-1714473349"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 426.611125ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: go-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.5.0 + url: https://go-auth0-dev.eu.auth0.com/api/v2/connections/con_9gZjtNQGTjW8fWc2 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2024-04-30T10:35:53.524Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 338.965625ms From 769e738afcd9c6e752947543a4c914b2c3e228c1 Mon Sep 17 00:00:00 2001 From: KunalOfficial <35455566+developerkunal@users.noreply.github.com> Date: Fri, 3 May 2024 11:20:16 +0530 Subject: [PATCH 16/16] [GH-398] Refactor scopes schema and add Godoc documentation (#400) --- management/connection.go | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/management/connection.go b/management/connection.go index 1a1daedd..c1494b26 100644 --- a/management/connection.go +++ b/management/connection.go @@ -898,19 +898,39 @@ func (c *ConnectionOptionsOIDC) SetScopes(enable bool, scopes ...string) { // ConnectionOptionsOAuth2 is used to configure an OAuth2 Connection. type ConnectionOptionsOAuth2 struct { - ClientID *string `json:"client_id,omitempty"` - ClientSecret *string `json:"client_secret,omitempty"` - AuthorizationURL *string `json:"authorizationURL"` - TokenURL *string `json:"tokenURL"` - Scope *string `json:"scope,omitempty"` - SetUserAttributes *string `json:"set_user_root_attributes,omitempty"` + // ClientID is the OAuth2 client ID. + ClientID *string `json:"client_id,omitempty"` + + // ClientSecret is the OAuth2 client secret. + ClientSecret *string `json:"client_secret,omitempty"` + + // AuthorizationURL is the URL used for obtaining authorization from the user. + AuthorizationURL *string `json:"authorizationURL"` + + // TokenURL is the URL used for obtaining the access token. + TokenURL *string `json:"tokenURL"` + + // Scope indicates the OAuth2 scopes for the connection. + // Use SetScopes and Scopes to manage scopes. + Scope *string `json:"-"` + + // SetUserAttributes specifies user root attributes. + SetUserAttributes *string `json:"set_user_root_attributes,omitempty"` + + // NonPersistentAttrs specifies non-persistent attributes. NonPersistentAttrs *[]string `json:"non_persistent_attrs,omitempty"` - LogoURL *string `json:"icon_url,omitempty"` - PKCEEnabled *bool `json:"pkce_enabled,omitempty"` - // Scripts for the connection + + // LogoURL is the URL for the connection's icon. + LogoURL *string `json:"icon_url,omitempty"` + + // PKCEEnabled specifies whether PKCE (Proof Key for Code Exchange) is enabled. + PKCEEnabled *bool `json:"pkce_enabled,omitempty"` + + // Scripts contains scripts for the connection. // Allowed keys are: "fetchUserProfile" Scripts *map[string]string `json:"scripts,omitempty"` + // UpstreamParams specifies upstream parameters. UpstreamParams map[string]interface{} `json:"upstream_params,omitempty"` }