From 25876ce0bf325924668054873f51884044ac6088 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Thu, 11 May 2023 14:15:25 -0400 Subject: [PATCH 1/7] Initial commit for user permissions relationship resource --- .../auth0_user_permissions/import.sh | 4 + .../auth0_user_permissions/resource.tf | 41 + internal/auth0/user/resource_permissions.go | 174 ++++ .../auth0/user/resource_permissions_test.go | 103 ++ .../recordings/TestAccRolePermissions.yaml | 934 +++++++++--------- 5 files changed, 789 insertions(+), 467 deletions(-) create mode 100644 examples/resources/auth0_user_permissions/import.sh create mode 100644 examples/resources/auth0_user_permissions/resource.tf create mode 100644 internal/auth0/user/resource_permissions.go create mode 100644 internal/auth0/user/resource_permissions_test.go diff --git a/examples/resources/auth0_user_permissions/import.sh b/examples/resources/auth0_user_permissions/import.sh new file mode 100644 index 000000000..3a75060ec --- /dev/null +++ b/examples/resources/auth0_user_permissions/import.sh @@ -0,0 +1,4 @@ +# This resource can be imported by specifying the user ID + +# Example: +terraform import auth0_user_permissions.all_user_permissions "auth0|111111111111111111111111" diff --git a/examples/resources/auth0_user_permissions/resource.tf b/examples/resources/auth0_user_permissions/resource.tf new file mode 100644 index 000000000..f1abf9da4 --- /dev/null +++ b/examples/resources/auth0_user_permissions/resource.tf @@ -0,0 +1,41 @@ +resource "auth0_resource_server" "resource_server" { + name = "Example Resource Server (Managed by Terraform)" + identifier = "https://api.example.com" + scopes { + value = "create:foo" + description = "Create foos" + } + + scopes { + value = "read:foo" + description = "Read foos" + } +} + +resource "auth0_user" "user" { + connection_name = "Username-Password-Authentication" + user_id = "12345" + username = "unique_username" + name = "Firstname Lastname" + nickname = "some.nickname" + email = "test@test.com" + email_verified = true + password = "passpass$12$12" + picture = "https://www.example.com/a-valid-picture-url.jpg" +} + +resource "auth0_user_permissions" "all_user_permissions" { + depends_on = [auth0_resource_server.resource_server, auth0_user.user] + + user_id = auth0_user.user.id + + permissions { + name = "read:foo" + resource_server_identifier = auth0_resource_server.resource_server.identifier + } + + permissions { + name = "create:foo" + resource_server_identifier = auth0_resource_server.resource_server.identifier + } +} diff --git a/internal/auth0/user/resource_permissions.go b/internal/auth0/user/resource_permissions.go new file mode 100644 index 000000000..074e2f6c1 --- /dev/null +++ b/internal/auth0/user/resource_permissions.go @@ -0,0 +1,174 @@ +package user + +import ( + "context" + "net/http" + + "github.com/auth0/go-auth0" + "github.com/auth0/go-auth0/management" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/config" + "github.com/auth0/terraform-provider-auth0/internal/value" +) + +// NewPermissionsResource will return a new auth0_connection_client resource. +func NewPermissionsResource() *schema.Resource { + return &schema.Resource{ + Schema: map[string]*schema.Schema{ + "user_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "ID of the user to associate the permission to.", + }, + "permissions": { + Type: schema.TypeSet, + Required: true, + ForceNew: true, + Description: "List of API permissions granted to the user.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Required: true, + Description: "Name of permission.", + }, + "resource_server_identifier": { + Type: schema.TypeString, + Required: true, + Description: "Resource server identifier associated with the permission.", + }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "Description of the permission.", + }, + "resource_server_name": { + Type: schema.TypeString, + Computed: true, + Description: "Name of resource server that the permission is associated with.", + }, + }, + }, + }, + }, + CreateContext: createUserPermissions, + ReadContext: readUserPermissions, + DeleteContext: deleteUserPermissions, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Description: "With this resource, you can manage all of a user's permissions.", + } +} + +func createUserPermissions(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + api := meta.(*config.Config).GetAPI() + mutex := meta.(*config.Config).GetMutex() + + userID := data.Get("user_id").(string) + + if !data.HasChange("permissions") { + return nil + } + + mutex.Lock(userID) + defer mutex.Unlock(userID) + + toAdd, toRemove := value.Difference(data, "permissions") + + var addPermissions []*management.Permission + for _, addPermission := range toAdd { + permission := addPermission.(map[string]interface{}) + addPermissions = append(addPermissions, &management.Permission{ + Name: auth0.String(permission["name"].(string)), + ResourceServerIdentifier: auth0.String(permission["resource_server_identifier"].(string)), + }) + } + + if len(addPermissions) > 0 { + if err := api.User.AssignPermissions(userID, addPermissions); err != nil { + return diag.FromErr(err) + } + } + + var rmPermissions []*management.Permission + for _, rmPermission := range toRemove { + permission := rmPermission.(map[string]interface{}) + rmPermissions = append(rmPermissions, &management.Permission{ + Name: auth0.String(permission["name"].(string)), + ResourceServerIdentifier: auth0.String(permission["resource_server_identifier"].(string)), + }) + } + + if len(rmPermissions) > 0 { + if err := api.User.RemovePermissions(userID, rmPermissions); err != nil { + return diag.FromErr(err) + } + } + + data.SetId(userID) + + return readUserPermissions(ctx, data, meta) +} + +func readUserPermissions(_ context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + api := meta.(*config.Config).GetAPI() + + userID := data.Get("user_id").(string) + + permissions, err := api.User.Permissions(userID) + if err != nil { + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + data.SetId("") + return nil + } + return diag.FromErr(err) + } + + err = data.Set("permissions", flattenUserPermissions(permissions)) + + return diag.FromErr(err) +} + +func deleteUserPermissions(_ context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + api := meta.(*config.Config).GetAPI() + mutex := meta.(*config.Config).GetMutex() + + userID := data.Get("user_id").(string) + + mutex.Lock(userID) + defer mutex.Unlock(userID) + + permissions, err := api.User.Permissions(userID) + if err != nil { + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + data.SetId("") + return nil + } + return diag.FromErr(err) + } + + var rmPermissions []*management.Permission + for _, rmPermission := range permissions.Permissions { + rmPermissions = append(rmPermissions, &management.Permission{ + Name: auth0.String(rmPermission.GetName()), + ResourceServerIdentifier: auth0.String(rmPermission.GetResourceServerIdentifier()), + }) + } + if err := api.User.RemovePermissions( + userID, + rmPermissions, + ); err != nil { + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + data.SetId("") + return nil + } + return diag.FromErr(err) + } + + data.SetId("") + return nil +} diff --git a/internal/auth0/user/resource_permissions_test.go b/internal/auth0/user/resource_permissions_test.go new file mode 100644 index 000000000..de6591379 --- /dev/null +++ b/internal/auth0/user/resource_permissions_test.go @@ -0,0 +1,103 @@ +package user_test + +import ( + "strings" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + + "github.com/auth0/terraform-provider-auth0/internal/acctest" +) + +const testAccUserPermissionsNoneAssigned = givenAResourceServerAndUser + +const testAccUserPermissionsOneAssigned = givenAResourceServerAndUser + ` +resource "auth0_user_permissions" "user_permission_create" { + depends_on = [ auth0_resource_server.resource_server, auth0_user.user ] + + user_id = auth0_user.user.id + + permissions { + resource_server_identifier = auth0_resource_server.resource_server.identifier + name = "read:foo" + } +} +` + +const testAccUserPermissionsTwoAssigned = givenAResourceServerAndUser + ` +resource "auth0_user_permissions" "user_permission_create" { + depends_on = [ auth0_resource_server.resource_server, auth0_user.user ] + + user_id = auth0_user.user.id + + permissions { + resource_server_identifier = auth0_resource_server.resource_server.identifier + name = "read:foo" + } + permissions { + resource_server_identifier = auth0_resource_server.resource_server.identifier + name = "create:foo" + } +} +` + +func TestAccUserPermissions(t *testing.T) { + acctest.Test(t, resource.TestCase{ + Steps: []resource.TestStep{ + { + Config: acctest.ParseTestName(testAccUserPermissionsNoneAssigned, strings.ToLower(t.Name())), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user.user", "permissions.#", "0"), + ), + }, + { + Config: acctest.ParseTestName(testAccUserPermissionsOneAssigned, strings.ToLower(t.Name())), + }, + { + RefreshState: true, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user.user", "permissions.#", "1"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.name", "read:foo"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.resource_server_identifier", "https://uat.api.terraform-provider-auth0.com/testaccuserpermissions"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.resource_server_name", "Acceptance Test - testaccuserpermissions"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.description", "Can read Foo"), + ), + }, + { + Config: acctest.ParseTestName(testAccUserPermissionsTwoAssigned, strings.ToLower(t.Name())), + }, + { + RefreshState: true, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user.user", "permissions.#", "2"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.name", "create:foo"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.1.name", "read:foo"), + + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.name", "create:foo"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.resource_server_identifier", "https://uat.api.terraform-provider-auth0.com/testaccuserpermissions"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.resource_server_name", "Acceptance Test - testaccuserpermissions"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.description", "Can create Foo"), + ), + }, + { + Config: acctest.ParseTestName(testAccUserPermissionsOneAssigned, strings.ToLower(t.Name())), + }, + { + RefreshState: true, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user.user", "permissions.#", "1"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.name", "read:foo"), + ), + }, + { + Config: acctest.ParseTestName(testAccUserPermissionsNoneAssigned, strings.ToLower(t.Name())), + }, + { + RefreshState: true, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user.user", "permissions.#", "0"), + ), + }, + }, + }) +} diff --git a/test/data/recordings/TestAccRolePermissions.yaml b/test/data/recordings/TestAccRolePermissions.yaml index a8a72f5c1..e8c41f1ee 100644 --- a/test/data/recordings/TestAccRolePermissions.yaml +++ b/test/data/recordings/TestAccRolePermissions.yaml @@ -1,470 +1,470 @@ --- version: 2 interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 3358 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"id":"63580f49ee53dea1e2369620","name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 199.659748ms - - id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/63580f49ee53dea1e2369620 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"63580f49ee53dea1e2369620","name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 131.5099ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 104 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_7QtmOR6ziXrbbXIF","name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 149.203846ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 6389 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"permissions":[{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:56"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:5"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:38"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:22"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:10"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:53"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:49"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:35"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:8"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:44"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:16"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:36"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:47"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:6"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:21"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:50"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:18"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:15"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:12"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:57"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:1"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:26"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:40"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:31"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:24"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:11"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:43"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:32"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:28"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:54"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:3"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:2"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:25"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:51"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:20"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:7"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:46"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:37"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:55"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:14"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:19"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:45"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:9"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:34"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:52"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:48"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:39"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:23"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:4"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:17"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:33"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:29"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:58"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:42"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:13"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:30"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:41"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:27"}]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 2 - uncompressed: false - body: '{}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 145.963865ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_7QtmOR6ziXrbbXIF","name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 113.051362ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=0&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: '{"permissions":[{"permission_name":"permission:1","description":"Permission 1","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:10","description":"Permission 10","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:11","description":"Permission 11","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:12","description":"Permission 12","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:13","description":"Permission 13","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:14","description":"Permission 14","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:15","description":"Permission 15","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:16","description":"Permission 16","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:17","description":"Permission 17","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:18","description":"Permission 18","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:19","description":"Permission 19","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:2","description":"Permission 2","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:20","description":"Permission 20","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:21","description":"Permission 21","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:22","description":"Permission 22","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:23","description":"Permission 23","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:24","description":"Permission 24","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:25","description":"Permission 25","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:26","description":"Permission 26","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:27","description":"Permission 27","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:28","description":"Permission 28","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:29","description":"Permission 29","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:3","description":"Permission 3","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:30","description":"Permission 30","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:31","description":"Permission 31","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:32","description":"Permission 32","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:33","description":"Permission 33","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:34","description":"Permission 34","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:35","description":"Permission 35","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:36","description":"Permission 36","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:37","description":"Permission 37","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:38","description":"Permission 38","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:39","description":"Permission 39","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:4","description":"Permission 4","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:40","description":"Permission 40","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:41","description":"Permission 41","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:42","description":"Permission 42","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:43","description":"Permission 43","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:44","description":"Permission 44","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:45","description":"Permission 45","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:46","description":"Permission 46","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:47","description":"Permission 47","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:48","description":"Permission 48","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:49","description":"Permission 49","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:5","description":"Permission 5","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:50","description":"Permission 50","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:51","description":"Permission 51","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:52","description":"Permission 52","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:53","description":"Permission 53","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:54","description":"Permission 54","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":0,"limit":50,"total":58}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 255.575215ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=1&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: '{"permissions":[{"permission_name":"permission:55","description":"Permission 55","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:56","description":"Permission 56","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:57","description":"Permission 57","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:58","description":"Permission 58","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:6","description":"Permission 6","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:7","description":"Permission 7","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:8","description":"Permission 8","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:9","description":"Permission 9","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":50,"limit":50,"total":58}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 201.035065ms - - id: 7 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/63580f49ee53dea1e2369620 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"63580f49ee53dea1e2369620","name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 231.189726ms - - id: 8 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_7QtmOR6ziXrbbXIF","name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 147.294823ms - - id: 9 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=0&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: '{"permissions":[{"permission_name":"permission:1","description":"Permission 1","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:10","description":"Permission 10","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:11","description":"Permission 11","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:12","description":"Permission 12","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:13","description":"Permission 13","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:14","description":"Permission 14","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:15","description":"Permission 15","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:16","description":"Permission 16","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:17","description":"Permission 17","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:18","description":"Permission 18","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:19","description":"Permission 19","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:2","description":"Permission 2","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:20","description":"Permission 20","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:21","description":"Permission 21","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:22","description":"Permission 22","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:23","description":"Permission 23","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:24","description":"Permission 24","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:25","description":"Permission 25","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:26","description":"Permission 26","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:27","description":"Permission 27","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:28","description":"Permission 28","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:29","description":"Permission 29","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:3","description":"Permission 3","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:30","description":"Permission 30","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:31","description":"Permission 31","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:32","description":"Permission 32","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:33","description":"Permission 33","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:34","description":"Permission 34","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:35","description":"Permission 35","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:36","description":"Permission 36","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:37","description":"Permission 37","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:38","description":"Permission 38","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:39","description":"Permission 39","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:4","description":"Permission 4","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:40","description":"Permission 40","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:41","description":"Permission 41","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:42","description":"Permission 42","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:43","description":"Permission 43","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:44","description":"Permission 44","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:45","description":"Permission 45","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:46","description":"Permission 46","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:47","description":"Permission 47","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:48","description":"Permission 48","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:49","description":"Permission 49","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:5","description":"Permission 5","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:50","description":"Permission 50","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:51","description":"Permission 51","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:52","description":"Permission 52","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:53","description":"Permission 53","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:54","description":"Permission 54","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":0,"limit":50,"total":58}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 153.042375ms - - id: 10 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=1&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: '{"permissions":[{"permission_name":"permission:55","description":"Permission 55","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:56","description":"Permission 56","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:57","description":"Permission 57","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:58","description":"Permission 58","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:6","description":"Permission 6","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:7","description":"Permission 7","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:8","description":"Permission 8","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:9","description":"Permission 9","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":50,"limit":50,"total":58}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 253.182769ms - - id: 11 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 3 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 2 - uncompressed: false - body: '{}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 241.863017ms - - id: 12 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/63580f49ee53dea1e2369620 - 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: 290.94147ms + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 3358 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"id":"63580f49ee53dea1e2369620","name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 199.659748ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/63580f49ee53dea1e2369620 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"63580f49ee53dea1e2369620","name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 131.5099ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 104 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_7QtmOR6ziXrbbXIF","name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 149.203846ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 6389 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:56"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:5"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:38"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:22"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:10"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:53"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:49"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:35"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:8"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:44"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:16"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:36"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:47"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:6"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:21"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:50"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:18"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:15"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:12"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:57"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:1"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:26"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:40"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:31"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:24"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:11"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:43"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:32"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:28"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:54"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:3"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:2"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:25"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:51"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:20"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:7"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:46"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:37"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:55"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:14"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:19"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:45"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:9"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:34"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:52"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:48"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:39"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:23"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:4"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:17"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:33"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:29"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:58"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:42"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:13"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:30"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:41"},{"resource_server_identifier":"https://TestAccRolePermissions.matrix.com/","permission_name":"permission:27"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2 + uncompressed: false + body: "{}" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 145.963865ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_7QtmOR6ziXrbbXIF","name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.051362ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=0&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: '{"permissions":[{"permission_name":"permission:1","description":"Permission 1","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:10","description":"Permission 10","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:11","description":"Permission 11","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:12","description":"Permission 12","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:13","description":"Permission 13","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:14","description":"Permission 14","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:15","description":"Permission 15","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:16","description":"Permission 16","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:17","description":"Permission 17","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:18","description":"Permission 18","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:19","description":"Permission 19","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:2","description":"Permission 2","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:20","description":"Permission 20","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:21","description":"Permission 21","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:22","description":"Permission 22","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:23","description":"Permission 23","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:24","description":"Permission 24","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:25","description":"Permission 25","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:26","description":"Permission 26","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:27","description":"Permission 27","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:28","description":"Permission 28","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:29","description":"Permission 29","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:3","description":"Permission 3","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:30","description":"Permission 30","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:31","description":"Permission 31","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:32","description":"Permission 32","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:33","description":"Permission 33","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:34","description":"Permission 34","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:35","description":"Permission 35","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:36","description":"Permission 36","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:37","description":"Permission 37","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:38","description":"Permission 38","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:39","description":"Permission 39","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:4","description":"Permission 4","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:40","description":"Permission 40","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:41","description":"Permission 41","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:42","description":"Permission 42","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:43","description":"Permission 43","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:44","description":"Permission 44","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:45","description":"Permission 45","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:46","description":"Permission 46","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:47","description":"Permission 47","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:48","description":"Permission 48","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:49","description":"Permission 49","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:5","description":"Permission 5","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:50","description":"Permission 50","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:51","description":"Permission 51","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:52","description":"Permission 52","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:53","description":"Permission 53","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:54","description":"Permission 54","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":0,"limit":50,"total":58}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 255.575215ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=1&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: '{"permissions":[{"permission_name":"permission:55","description":"Permission 55","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:56","description":"Permission 56","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:57","description":"Permission 57","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:58","description":"Permission 58","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:6","description":"Permission 6","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:7","description":"Permission 7","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:8","description":"Permission 8","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:9","description":"Permission 9","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":50,"limit":50,"total":58}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 201.035065ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/63580f49ee53dea1e2369620 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"63580f49ee53dea1e2369620","name":"Role - Acceptance Test - TestAccRolePermissions","identifier":"https://TestAccRolePermissions.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"permission:1","description":"Permission 1"},{"value":"permission:10","description":"Permission 10"},{"value":"permission:11","description":"Permission 11"},{"value":"permission:12","description":"Permission 12"},{"value":"permission:13","description":"Permission 13"},{"value":"permission:14","description":"Permission 14"},{"value":"permission:15","description":"Permission 15"},{"value":"permission:16","description":"Permission 16"},{"value":"permission:17","description":"Permission 17"},{"value":"permission:18","description":"Permission 18"},{"value":"permission:19","description":"Permission 19"},{"value":"permission:2","description":"Permission 2"},{"value":"permission:20","description":"Permission 20"},{"value":"permission:21","description":"Permission 21"},{"value":"permission:22","description":"Permission 22"},{"value":"permission:23","description":"Permission 23"},{"value":"permission:24","description":"Permission 24"},{"value":"permission:25","description":"Permission 25"},{"value":"permission:26","description":"Permission 26"},{"value":"permission:27","description":"Permission 27"},{"value":"permission:28","description":"Permission 28"},{"value":"permission:29","description":"Permission 29"},{"value":"permission:3","description":"Permission 3"},{"value":"permission:30","description":"Permission 30"},{"value":"permission:31","description":"Permission 31"},{"value":"permission:32","description":"Permission 32"},{"value":"permission:33","description":"Permission 33"},{"value":"permission:34","description":"Permission 34"},{"value":"permission:35","description":"Permission 35"},{"value":"permission:36","description":"Permission 36"},{"value":"permission:37","description":"Permission 37"},{"value":"permission:38","description":"Permission 38"},{"value":"permission:39","description":"Permission 39"},{"value":"permission:4","description":"Permission 4"},{"value":"permission:40","description":"Permission 40"},{"value":"permission:41","description":"Permission 41"},{"value":"permission:42","description":"Permission 42"},{"value":"permission:43","description":"Permission 43"},{"value":"permission:44","description":"Permission 44"},{"value":"permission:45","description":"Permission 45"},{"value":"permission:46","description":"Permission 46"},{"value":"permission:47","description":"Permission 47"},{"value":"permission:48","description":"Permission 48"},{"value":"permission:49","description":"Permission 49"},{"value":"permission:5","description":"Permission 5"},{"value":"permission:50","description":"Permission 50"},{"value":"permission:51","description":"Permission 51"},{"value":"permission:52","description":"Permission 52"},{"value":"permission:53","description":"Permission 53"},{"value":"permission:54","description":"Permission 54"},{"value":"permission:55","description":"Permission 55"},{"value":"permission:56","description":"Permission 56"},{"value":"permission:57","description":"Permission 57"},{"value":"permission:58","description":"Permission 58"},{"value":"permission:6","description":"Permission 6"},{"value":"permission:7","description":"Permission 7"},{"value":"permission:8","description":"Permission 8"},{"value":"permission:9","description":"Permission 9"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 231.189726ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_7QtmOR6ziXrbbXIF","name":"The One - Acceptance Test - TestAccRolePermissions","description":"The One - Acceptance Test"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 147.294823ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=0&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: '{"permissions":[{"permission_name":"permission:1","description":"Permission 1","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:10","description":"Permission 10","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:11","description":"Permission 11","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:12","description":"Permission 12","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:13","description":"Permission 13","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:14","description":"Permission 14","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:15","description":"Permission 15","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:16","description":"Permission 16","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:17","description":"Permission 17","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:18","description":"Permission 18","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:19","description":"Permission 19","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:2","description":"Permission 2","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:20","description":"Permission 20","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:21","description":"Permission 21","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:22","description":"Permission 22","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:23","description":"Permission 23","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:24","description":"Permission 24","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:25","description":"Permission 25","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:26","description":"Permission 26","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:27","description":"Permission 27","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:28","description":"Permission 28","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:29","description":"Permission 29","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:3","description":"Permission 3","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:30","description":"Permission 30","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:31","description":"Permission 31","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:32","description":"Permission 32","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:33","description":"Permission 33","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:34","description":"Permission 34","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:35","description":"Permission 35","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:36","description":"Permission 36","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:37","description":"Permission 37","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:38","description":"Permission 38","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:39","description":"Permission 39","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:4","description":"Permission 4","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:40","description":"Permission 40","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:41","description":"Permission 41","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:42","description":"Permission 42","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:43","description":"Permission 43","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:44","description":"Permission 44","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:45","description":"Permission 45","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:46","description":"Permission 46","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:47","description":"Permission 47","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:48","description":"Permission 48","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:49","description":"Permission 49","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:5","description":"Permission 5","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:50","description":"Permission 50","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:51","description":"Permission 51","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:52","description":"Permission 52","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:53","description":"Permission 53","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:54","description":"Permission 54","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":0,"limit":50,"total":58}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 153.042375ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF/permissions?include_totals=true&page=1&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: '{"permissions":[{"permission_name":"permission:55","description":"Permission 55","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:56","description":"Permission 56","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:57","description":"Permission 57","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:58","description":"Permission 58","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:6","description":"Permission 6","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:7","description":"Permission 7","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:8","description":"Permission 8","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"},{"permission_name":"permission:9","description":"Permission 9","resource_server_name":"Role - Acceptance Test - TestAccRolePermissions","resource_server_identifier":"https://TestAccRolePermissions.matrix.com/"}],"start":50,"limit":50,"total":58}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 253.182769ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 3 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_7QtmOR6ziXrbbXIF + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2 + uncompressed: false + body: "{}" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 241.863017ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.12.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/63580f49ee53dea1e2369620 + 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: 290.94147ms From 77d772b8cbc8c5ff28f1c43bcdd1a4e8aca1f3ce Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Thu, 11 May 2023 14:18:29 -0400 Subject: [PATCH 2/7] Updating example --- examples/resources/auth0_user_permissions/resource.tf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/resources/auth0_user_permissions/resource.tf b/examples/resources/auth0_user_permissions/resource.tf index f1abf9da4..666acfb44 100644 --- a/examples/resources/auth0_user_permissions/resource.tf +++ b/examples/resources/auth0_user_permissions/resource.tf @@ -25,17 +25,15 @@ resource "auth0_user" "user" { } resource "auth0_user_permissions" "all_user_permissions" { - depends_on = [auth0_resource_server.resource_server, auth0_user.user] - user_id = auth0_user.user.id permissions { - name = "read:foo" + name = tolist(auth0_resource_server.resource_server.scopes)[0] resource_server_identifier = auth0_resource_server.resource_server.identifier } permissions { - name = "create:foo" + name = tolist(auth0_resource_server.resource_server.scopes)[1] resource_server_identifier = auth0_resource_server.resource_server.identifier } } From b395e7e18b27737c86be560908ed8bbba1a8b246 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Thu, 11 May 2023 14:18:52 -0400 Subject: [PATCH 3/7] Integrating into provider --- internal/provider/provider.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index ff759b812..db5f83bf0 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -116,6 +116,7 @@ func New() *schema.Provider { "auth0_tenant": tenant.NewResource(), "auth0_user": user.NewResource(), "auth0_user_permission": user.NewPermissionResource(), + "auth0_user_permissions": user.NewPermissionsResource(), }, DataSourcesMap: map[string]*schema.Resource{ "auth0_attack_protection": attackprotection.NewDataSource(), From d52e6af82968571f78375ea5f653744d5a8b1618 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Thu, 11 May 2023 14:20:47 -0400 Subject: [PATCH 4/7] Re-recording test --- .../recordings/TestAccUserPermissions.yaml | 2917 +++++++++++++++++ 1 file changed, 2917 insertions(+) create mode 100644 test/data/recordings/TestAccUserPermissions.yaml diff --git a/test/data/recordings/TestAccUserPermissions.yaml b/test/data/recordings/TestAccUserPermissions.yaml new file mode 100644 index 000000000..94d218224 --- /dev/null +++ b/test/data/recordings/TestAccUserPermissions.yaml @@ -0,0 +1,2917 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 250 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 441 + uncompressed: false + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 127.829125ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 117.557708ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 202 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","email":"testaccuserpermissions@acceptance.test.com","username":"testaccuserpermissions","password":"passpass$12$12"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 593 + uncompressed: false + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 340.102292ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 123.13625ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 160.460125ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 116.907875ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 102.610875ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 132.373583ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 102.947334ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 104.052125ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 65.58725ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 96.878542ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 104.645167ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 122.690208ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 148 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 114.384083ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 104.341125ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 75.037042ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 375.045375ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 66.084208ms + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 115.821333ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 118.712125ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 100.026375ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 105.984875ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 108.822542ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 117.553959ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 108.947083ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 63.697792ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 100.060042ms + - id: 28 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 99.796459ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.457542ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 118.245333ms + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 103.008542ms + - id: 32 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 148 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions + 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: 61.271291ms + - id: 33 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 280 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"create:foo"},{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 111.632916ms + - id: 34 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 144.296916ms + - id: 35 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 109.446625ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 110.795292ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 103.602166ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 108.59825ms + - id: 39 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 112.134833ms + - id: 40 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 106.356708ms + - id: 41 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 145.113667ms + - id: 42 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 66.564583ms + - id: 43 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 69.330042ms + - id: 44 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 68.859959ms + - id: 45 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 104.276291ms + - id: 46 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 115.377166ms + - id: 47 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 108.978167ms + - id: 48 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.1795ms + - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 69.319833ms + - id: 50 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 105.635458ms + - id: 51 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 280 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"create:foo"},{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions + 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: 107.956083ms + - id: 52 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 148 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 115.604375ms + - id: 53 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 69.195417ms + - id: 54 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 99.411458ms + - id: 55 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 65.660792ms + - id: 56 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 107.072209ms + - id: 57 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 138.367375ms + - id: 58 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 103.992167ms + - id: 59 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 107.223375ms + - id: 60 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 110.443916ms + - id: 61 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 59.587125ms + - id: 62 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 153.441833ms + - id: 63 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 131.663666ms + - id: 64 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 64.413667ms + - id: 65 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 95.94375ms + - id: 66 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 102.627292ms + - id: 67 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 143.455791ms + - id: 68 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 74.992333ms + - id: 69 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 107.864375ms + - id: 70 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 148 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions + 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: 79.714083ms + - id: 71 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 61.270292ms + - id: 72 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 112.211708ms + - id: 73 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 109.038ms + - id: 74 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 146.407917ms + - id: 75 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 103.506208ms + - id: 76 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 96.73825ms + - id: 77 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/roles?include_totals=true&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: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 64.896167ms + - id: 78 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 103.040166ms + - id: 79 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions + 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: 161.811584ms + - id: 80 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.17.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + 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: 209.301958ms From 56a5447a4fee8f37dcb191e2de4485d6750ee2b7 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Thu, 11 May 2023 14:22:34 -0400 Subject: [PATCH 5/7] Custom doc templates for user permission and user permissions --- docs/resources/user_permission.md | 2 + docs/resources/user_permissions.md | 91 ++++++++++++++++++++ templates/resources/user_permission.md.tmpl | 31 +++++++ templates/resources/user_permissions.md.tmpl | 31 +++++++ 4 files changed, 155 insertions(+) create mode 100644 docs/resources/user_permissions.md create mode 100644 templates/resources/user_permission.md.tmpl create mode 100644 templates/resources/user_permissions.md.tmpl diff --git a/docs/resources/user_permission.md b/docs/resources/user_permission.md index 82f04b657..5439df79d 100644 --- a/docs/resources/user_permission.md +++ b/docs/resources/user_permission.md @@ -8,6 +8,8 @@ description: |- With this resource, you can manage user permissions. +!> To prevent issues, avoid using this resource together with the `auth0_user_permissions` resource. + ## Example Usage ```terraform diff --git a/docs/resources/user_permissions.md b/docs/resources/user_permissions.md new file mode 100644 index 000000000..061eaac3a --- /dev/null +++ b/docs/resources/user_permissions.md @@ -0,0 +1,91 @@ +--- +page_title: "Resource: auth0_user_permissions" +description: |- + With this resource, you can manage all of a user's permissions. +--- + +# Resource: auth0_user_permissions + +With this resource, you can manage all of a user's permissions. + +!> To prevent issues, avoid using this resource together with the `auth0_user_permission` resource. + +## Example Usage + +```terraform +resource "auth0_resource_server" "resource_server" { + name = "Example Resource Server (Managed by Terraform)" + identifier = "https://api.example.com" + scopes { + value = "create:foo" + description = "Create foos" + } + + scopes { + value = "read:foo" + description = "Read foos" + } +} + +resource "auth0_user" "user" { + connection_name = "Username-Password-Authentication" + user_id = "12345" + username = "unique_username" + name = "Firstname Lastname" + nickname = "some.nickname" + email = "test@test.com" + email_verified = true + password = "passpass$12$12" + picture = "https://www.example.com/a-valid-picture-url.jpg" +} + +resource "auth0_user_permissions" "all_user_permissions" { + user_id = auth0_user.user.id + + permissions { + name = tolist(auth0_resource_server.resource_server.scopes)[0] + resource_server_identifier = auth0_resource_server.resource_server.identifier + } + + permissions { + name = tolist(auth0_resource_server.resource_server.scopes)[1] + resource_server_identifier = auth0_resource_server.resource_server.identifier + } +} +``` + + +## Schema + +### Required + +- `permissions` (Block Set, Min: 1) List of API permissions granted to the user. (see [below for nested schema](#nestedblock--permissions)) +- `user_id` (String) ID of the user to associate the permission to. + +### Read-Only + +- `id` (String) The ID of this resource. + + +### Nested Schema for `permissions` + +Required: + +- `name` (String) Name of permission. +- `resource_server_identifier` (String) Resource server identifier associated with the permission. + +Read-Only: + +- `description` (String) Description of the permission. +- `resource_server_name` (String) Name of resource server that the permission is associated with. + +## Import + +Import is supported using the following syntax: + +```shell +# This resource can be imported by specifying the user ID + +# Example: +terraform import auth0_user_permissions.all_user_permissions "auth0|111111111111111111111111" +``` diff --git a/templates/resources/user_permission.md.tmpl b/templates/resources/user_permission.md.tmpl new file mode 100644 index 000000000..ffc57218f --- /dev/null +++ b/templates/resources/user_permission.md.tmpl @@ -0,0 +1,31 @@ +--- +page_title: "{{.Type}}: {{.Name}}" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Type}}: {{.Name}} + +{{ .Description | trimspace }} + +!> To prevent issues, avoid using this resource together with the `auth0_user_permissions` resource. + +{{ if .HasExample -}} + +## Example Usage + +{{ tffile .ExampleFile }} + +{{- end }} + +{{ .SchemaMarkdown | trimspace }} + +{{ if .HasImport -}} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" .ImportFile }} + +{{- end }} diff --git a/templates/resources/user_permissions.md.tmpl b/templates/resources/user_permissions.md.tmpl new file mode 100644 index 000000000..62f695897 --- /dev/null +++ b/templates/resources/user_permissions.md.tmpl @@ -0,0 +1,31 @@ +--- +page_title: "{{.Type}}: {{.Name}}" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Type}}: {{.Name}} + +{{ .Description | trimspace }} + +!> To prevent issues, avoid using this resource together with the `auth0_user_permission` resource. + +{{ if .HasExample -}} + +## Example Usage + +{{ tffile .ExampleFile }} + +{{- end }} + +{{ .SchemaMarkdown | trimspace }} + +{{ if .HasImport -}} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" .ImportFile }} + +{{- end }} From bc59b2adc234d15d25eedfa654af943c9d627f32 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Fri, 12 May 2023 12:00:46 -0400 Subject: [PATCH 6/7] Adding update function, re-recording tests --- internal/auth0/user/resource_permissions.go | 6 +- .../recordings/TestAccUserPermissions.yaml | 486 ++++++------------ 2 files changed, 174 insertions(+), 318 deletions(-) diff --git a/internal/auth0/user/resource_permissions.go b/internal/auth0/user/resource_permissions.go index 074e2f6c1..dd90f63dd 100644 --- a/internal/auth0/user/resource_permissions.go +++ b/internal/auth0/user/resource_permissions.go @@ -26,7 +26,6 @@ func NewPermissionsResource() *schema.Resource { "permissions": { Type: schema.TypeSet, Required: true, - ForceNew: true, Description: "List of API permissions granted to the user.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -54,7 +53,8 @@ func NewPermissionsResource() *schema.Resource { }, }, }, - CreateContext: createUserPermissions, + CreateContext: upsertUserPermissions, + UpdateContext: upsertUserPermissions, ReadContext: readUserPermissions, DeleteContext: deleteUserPermissions, Importer: &schema.ResourceImporter{ @@ -64,7 +64,7 @@ func NewPermissionsResource() *schema.Resource { } } -func createUserPermissions(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { +func upsertUserPermissions(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { api := meta.(*config.Config).GetAPI() mutex := meta.(*config.Config).GetMutex() diff --git a/test/data/recordings/TestAccUserPermissions.yaml b/test/data/recordings/TestAccUserPermissions.yaml index 94d218224..5c33d0768 100644 --- a/test/data/recordings/TestAccUserPermissions.yaml +++ b/test/data/recordings/TestAccUserPermissions.yaml @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 441 uncompressed: false - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 127.829125ms + duration: 138.904042ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.557708ms + duration: 116.240375ms - id: 2 request: proto: HTTP/1.1 @@ -102,13 +102,13 @@ interactions: trailer: {} content_length: 593 uncompressed: false - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 340.102292ms + duration: 319.672458ms - id: 3 request: proto: HTTP/1.1 @@ -138,13 +138,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.13625ms + duration: 105.489333ms - id: 4 request: proto: HTTP/1.1 @@ -180,7 +180,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 160.460125ms + duration: 121.619ms - id: 5 request: proto: HTTP/1.1 @@ -216,7 +216,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 116.907875ms + duration: 144.336542ms - id: 6 request: proto: HTTP/1.1 @@ -236,7 +236,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -246,13 +246,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.610875ms + duration: 74.1755ms - id: 7 request: proto: HTTP/1.1 @@ -282,13 +282,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.373583ms + duration: 118.696417ms - id: 8 request: proto: HTTP/1.1 @@ -324,7 +324,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.947334ms + duration: 104.928208ms - id: 9 request: proto: HTTP/1.1 @@ -360,7 +360,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.052125ms + duration: 107.380583ms - id: 10 request: proto: HTTP/1.1 @@ -380,7 +380,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -390,13 +390,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 65.58725ms + duration: 119.280917ms - id: 11 request: proto: HTTP/1.1 @@ -426,13 +426,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.878542ms + duration: 111.452792ms - id: 12 request: proto: HTTP/1.1 @@ -468,7 +468,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.645167ms + duration: 134.770125ms - id: 13 request: proto: HTTP/1.1 @@ -504,7 +504,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.690208ms + duration: 76.024334ms - id: 14 request: proto: HTTP/1.1 @@ -540,7 +540,7 @@ interactions: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 114.384083ms + duration: 109.133042ms - id: 15 request: proto: HTTP/1.1 @@ -576,7 +576,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.341125ms + duration: 124.194833ms - id: 16 request: proto: HTTP/1.1 @@ -596,7 +596,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -606,13 +606,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 75.037042ms + duration: 81.528708ms - id: 17 request: proto: HTTP/1.1 @@ -642,13 +642,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 375.045375ms + duration: 101.970333ms - id: 18 request: proto: HTTP/1.1 @@ -684,7 +684,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 66.084208ms + duration: 129.551166ms - id: 19 request: proto: HTTP/1.1 @@ -720,7 +720,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.821333ms + duration: 126.444875ms - id: 20 request: proto: HTTP/1.1 @@ -756,7 +756,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.712125ms + duration: 125.172583ms - id: 21 request: proto: HTTP/1.1 @@ -776,7 +776,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -786,13 +786,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.026375ms + duration: 125.670667ms - id: 22 request: proto: HTTP/1.1 @@ -822,13 +822,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.984875ms + duration: 105.841542ms - id: 23 request: proto: HTTP/1.1 @@ -864,7 +864,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.822542ms + duration: 111.073916ms - id: 24 request: proto: HTTP/1.1 @@ -900,7 +900,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.553959ms + duration: 106.546875ms - id: 25 request: proto: HTTP/1.1 @@ -936,7 +936,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.947083ms + duration: 113.795ms - id: 26 request: proto: HTTP/1.1 @@ -956,7 +956,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -966,13 +966,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 63.697792ms + duration: 109.392208ms - id: 27 request: proto: HTTP/1.1 @@ -1002,13 +1002,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.060042ms + duration: 110.030166ms - id: 28 request: proto: HTTP/1.1 @@ -1044,7 +1044,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 99.796459ms + duration: 147.336834ms - id: 29 request: proto: HTTP/1.1 @@ -1080,7 +1080,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.457542ms + duration: 120.874542ms - id: 30 request: proto: HTTP/1.1 @@ -1116,92 +1116,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.245333ms + duration: 120.259667ms - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 150 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 103.008542ms - - id: 32 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 148 - transfer_encoding: [] - trailer: {} - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions - 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: 61.271291ms - - id: 33 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 280 - transfer_encoding: [] - trailer: {} - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"create:foo"},{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"create:foo"}]} form: {} headers: Content-Type: @@ -1224,8 +1152,8 @@ interactions: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 111.632916ms - - id: 34 + duration: 120.083542ms + - id: 32 request: proto: HTTP/1.1 proto_major: 1 @@ -1260,8 +1188,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 144.296916ms - - id: 35 + duration: 109.647875ms + - id: 33 request: proto: HTTP/1.1 proto_major: 1 @@ -1280,7 +1208,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -1290,14 +1218,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.446625ms - - id: 36 + duration: 54.174084ms + - id: 34 request: proto: HTTP/1.1 proto_major: 1 @@ -1326,14 +1254,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.795292ms - - id: 37 + duration: 120.421375ms + - id: 35 request: proto: HTTP/1.1 proto_major: 1 @@ -1368,8 +1296,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.602166ms - - id: 38 + duration: 65.206708ms + - id: 36 request: proto: HTTP/1.1 proto_major: 1 @@ -1404,8 +1332,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.59825ms - - id: 39 + duration: 115.57975ms + - id: 37 request: proto: HTTP/1.1 proto_major: 1 @@ -1440,8 +1368,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.134833ms - - id: 40 + duration: 113.078333ms + - id: 38 request: proto: HTTP/1.1 proto_major: 1 @@ -1460,7 +1388,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -1470,14 +1398,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 106.356708ms - - id: 41 + duration: 142.161625ms + - id: 39 request: proto: HTTP/1.1 proto_major: 1 @@ -1506,14 +1434,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 145.113667ms - - id: 42 + duration: 107.232833ms + - id: 40 request: proto: HTTP/1.1 proto_major: 1 @@ -1548,8 +1476,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 66.564583ms - - id: 43 + duration: 111.851958ms + - id: 41 request: proto: HTTP/1.1 proto_major: 1 @@ -1584,8 +1512,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 69.330042ms - - id: 44 + duration: 115.631209ms + - id: 42 request: proto: HTTP/1.1 proto_major: 1 @@ -1620,8 +1548,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 68.859959ms - - id: 45 + duration: 101.349084ms + - id: 43 request: proto: HTTP/1.1 proto_major: 1 @@ -1640,7 +1568,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -1650,14 +1578,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.276291ms - - id: 46 + duration: 133.891708ms + - id: 44 request: proto: HTTP/1.1 proto_major: 1 @@ -1686,14 +1614,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.377166ms - - id: 47 + duration: 106.831792ms + - id: 45 request: proto: HTTP/1.1 proto_major: 1 @@ -1728,44 +1656,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.978167ms - - id: 48 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [] - trailer: {} - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions?include_totals=true&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: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccuserpermissions","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":50,"total":2}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 113.1795ms - - id: 49 + duration: 101.853625ms + - id: 46 request: proto: HTTP/1.1 proto_major: 1 @@ -1800,8 +1692,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 69.319833ms - - id: 50 + duration: 101.080708ms + - id: 47 request: proto: HTTP/1.1 proto_major: 1 @@ -1836,20 +1728,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.635458ms - - id: 51 + duration: 113.663791ms + - id: 48 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 280 + content_length: 150 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"create:foo"},{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} + {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"create:foo"}]} form: {} headers: Content-Type: @@ -1872,44 +1764,8 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 107.956083ms - - id: 52 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 148 - transfer_encoding: [] - trailer: {} - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"permissions":[{"resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","permission_name":"read:foo"}]} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuserpermissions/permissions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 2 - uncompressed: false - body: '{}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 115.604375ms - - id: 53 + duration: 109.313916ms + - id: 49 request: proto: HTTP/1.1 proto_major: 1 @@ -1944,8 +1800,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 69.195417ms - - id: 54 + duration: 102.455833ms + - id: 50 request: proto: HTTP/1.1 proto_major: 1 @@ -1964,7 +1820,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -1974,14 +1830,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 99.411458ms - - id: 55 + duration: 106.443791ms + - id: 51 request: proto: HTTP/1.1 proto_major: 1 @@ -2010,14 +1866,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 65.660792ms - - id: 56 + duration: 75.10925ms + - id: 52 request: proto: HTTP/1.1 proto_major: 1 @@ -2052,8 +1908,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.072209ms - - id: 57 + duration: 102.862833ms + - id: 53 request: proto: HTTP/1.1 proto_major: 1 @@ -2088,8 +1944,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 138.367375ms - - id: 58 + duration: 107.133917ms + - id: 54 request: proto: HTTP/1.1 proto_major: 1 @@ -2124,8 +1980,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.992167ms - - id: 59 + duration: 116.176542ms + - id: 55 request: proto: HTTP/1.1 proto_major: 1 @@ -2144,7 +2000,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -2154,14 +2010,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.223375ms - - id: 60 + duration: 120.42275ms + - id: 56 request: proto: HTTP/1.1 proto_major: 1 @@ -2190,14 +2046,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.443916ms - - id: 61 + duration: 101.13625ms + - id: 57 request: proto: HTTP/1.1 proto_major: 1 @@ -2232,8 +2088,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 59.587125ms - - id: 62 + duration: 67.435542ms + - id: 58 request: proto: HTTP/1.1 proto_major: 1 @@ -2268,8 +2124,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 153.441833ms - - id: 63 + duration: 122.477ms + - id: 59 request: proto: HTTP/1.1 proto_major: 1 @@ -2304,8 +2160,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 131.663666ms - - id: 64 + duration: 129.204333ms + - id: 60 request: proto: HTTP/1.1 proto_major: 1 @@ -2340,8 +2196,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 64.413667ms - - id: 65 + duration: 70.037333ms + - id: 61 request: proto: HTTP/1.1 proto_major: 1 @@ -2360,7 +2216,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -2370,14 +2226,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 95.94375ms - - id: 66 + duration: 120.13975ms + - id: 62 request: proto: HTTP/1.1 proto_major: 1 @@ -2406,14 +2262,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.627292ms - - id: 67 + duration: 79.240416ms + - id: 63 request: proto: HTTP/1.1 proto_major: 1 @@ -2448,8 +2304,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 143.455791ms - - id: 68 + duration: 106.833083ms + - id: 64 request: proto: HTTP/1.1 proto_major: 1 @@ -2484,8 +2340,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 74.992333ms - - id: 69 + duration: 131.713208ms + - id: 65 request: proto: HTTP/1.1 proto_major: 1 @@ -2520,8 +2376,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.864375ms - - id: 70 + duration: 115.462584ms + - id: 66 request: proto: HTTP/1.1 proto_major: 1 @@ -2556,8 +2412,8 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 79.714083ms - - id: 71 + duration: 110.885875ms + - id: 67 request: proto: HTTP/1.1 proto_major: 1 @@ -2576,7 +2432,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -2586,14 +2442,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 61.270292ms - - id: 72 + duration: 103.693958ms + - id: 68 request: proto: HTTP/1.1 proto_major: 1 @@ -2622,14 +2478,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.211708ms - - id: 73 + duration: 107.732541ms + - id: 69 request: proto: HTTP/1.1 proto_major: 1 @@ -2664,8 +2520,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.038ms - - id: 74 + duration: 160.443708ms + - id: 70 request: proto: HTTP/1.1 proto_major: 1 @@ -2700,8 +2556,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 146.407917ms - - id: 75 + duration: 140.121666ms + - id: 71 request: proto: HTTP/1.1 proto_major: 1 @@ -2720,7 +2576,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: GET response: proto: HTTP/2.0 @@ -2730,14 +2586,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"645d31c66481b9e53753009e","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"645e628a9ae1f3766b885047","name":"Acceptance Test - testaccuserpermissions","identifier":"https://uat.api.terraform-provider-auth0.com/testaccuserpermissions","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.506208ms - - id: 76 + duration: 110.002958ms + - id: 72 request: proto: HTTP/1.1 proto_major: 1 @@ -2766,14 +2622,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2023-05-11T18:19:50.844Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-11T18:19:50.844Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' + body: '{"created_at":"2023-05-12T16:00:11.236Z","email":"testaccuserpermissions@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuserpermissions","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuserpermissions@acceptance.test.com","nickname":"testaccuserpermissions","picture":"https://s.gravatar.com/avatar/d97e25d60bb8202f963e535364a40cb1?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2023-05-12T16:00:11.236Z","user_id":"auth0|testaccuserpermissions","username":"testaccuserpermissions"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.73825ms - - id: 77 + duration: 102.154709ms + - id: 73 request: proto: HTTP/1.1 proto_major: 1 @@ -2808,8 +2664,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 64.896167ms - - id: 78 + duration: 110.623209ms + - id: 74 request: proto: HTTP/1.1 proto_major: 1 @@ -2844,8 +2700,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.040166ms - - id: 79 + duration: 115.277791ms + - id: 75 request: proto: HTTP/1.1 proto_major: 1 @@ -2879,8 +2735,8 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 161.811584ms - - id: 80 + duration: 180.81225ms + - id: 76 request: proto: HTTP/1.1 proto_major: 1 @@ -2898,7 +2754,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645d31c66481b9e53753009e + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/645e628a9ae1f3766b885047 method: DELETE response: proto: HTTP/2.0 @@ -2914,4 +2770,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 209.301958ms + duration: 182.008708ms From b81dfc02bb6b6844f9875c277a8b7447c049ba6f Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Fri, 12 May 2023 12:08:50 -0400 Subject: [PATCH 7/7] Stronger tests --- internal/auth0/user/resource_permissions_test.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/internal/auth0/user/resource_permissions_test.go b/internal/auth0/user/resource_permissions_test.go index de6591379..5ce78f219 100644 --- a/internal/auth0/user/resource_permissions_test.go +++ b/internal/auth0/user/resource_permissions_test.go @@ -12,7 +12,7 @@ import ( const testAccUserPermissionsNoneAssigned = givenAResourceServerAndUser const testAccUserPermissionsOneAssigned = givenAResourceServerAndUser + ` -resource "auth0_user_permissions" "user_permission_create" { +resource "auth0_user_permissions" "user_permissions" { depends_on = [ auth0_resource_server.resource_server, auth0_user.user ] user_id = auth0_user.user.id @@ -25,7 +25,7 @@ resource "auth0_user_permissions" "user_permission_create" { ` const testAccUserPermissionsTwoAssigned = givenAResourceServerAndUser + ` -resource "auth0_user_permissions" "user_permission_create" { +resource "auth0_user_permissions" "user_permissions" { depends_on = [ auth0_resource_server.resource_server, auth0_user.user ] user_id = auth0_user.user.id @@ -61,6 +61,11 @@ func TestAccUserPermissions(t *testing.T) { resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.resource_server_identifier", "https://uat.api.terraform-provider-auth0.com/testaccuserpermissions"), resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.resource_server_name", "Acceptance Test - testaccuserpermissions"), resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.description", "Can read Foo"), + + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.0.name", "read:foo"), + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.0.resource_server_identifier", "https://uat.api.terraform-provider-auth0.com/testaccuserpermissions"), + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.0.resource_server_name", "Acceptance Test - testaccuserpermissions"), + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.0.description", "Can read Foo"), ), }, { @@ -69,6 +74,10 @@ func TestAccUserPermissions(t *testing.T) { { RefreshState: true, Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.#", "2"), + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.0.name", "create:foo"), + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.1.name", "read:foo"), + resource.TestCheckResourceAttr("auth0_user.user", "permissions.#", "2"), resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.name", "create:foo"), resource.TestCheckResourceAttr("auth0_user.user", "permissions.1.name", "read:foo"), @@ -85,6 +94,7 @@ func TestAccUserPermissions(t *testing.T) { { RefreshState: true, Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user_permissions.user_permissions", "permissions.#", "1"), resource.TestCheckResourceAttr("auth0_user.user", "permissions.#", "1"), resource.TestCheckResourceAttr("auth0_user.user", "permissions.0.name", "read:foo"), ),