diff --git a/docs/data-sources/resource_server.md b/docs/data-sources/resource_server.md index ce0c313e4..f413275b5 100644 --- a/docs/data-sources/resource_server.md +++ b/docs/data-sources/resource_server.md @@ -36,7 +36,6 @@ data "auth0_resource_server" "some-resource-server-by-id" { - `enforce_policies` (Boolean) If this setting is enabled, RBAC authorization policies will be enforced for this API. Role and permission assignments will be evaluated during the login transaction. - `id` (String) The ID of this resource. - `name` (String) Friendly name for the resource server. Cannot include `<` or `>` characters. -- `options` (Map of String) Used to store additional metadata. - `scopes` (Set of Object) List of permissions (scopes) used by this resource server. (see [below for nested schema](#nestedatt--scopes)) - `signing_alg` (String) Algorithm used to sign JWTs. Options include `HS256` and `RS256`. - `signing_secret` (String) Secret used to sign tokens when using symmetric algorithms (HS256). diff --git a/docs/resources/resource_server.md b/docs/resources/resource_server.md index e53e5898d..709fd9e64 100644 --- a/docs/resources/resource_server.md +++ b/docs/resources/resource_server.md @@ -44,7 +44,6 @@ resource "auth0_resource_server" "my_resource_server" { - `allow_offline_access` (Boolean) Indicates whether refresh tokens can be issued for this resource server. - `enforce_policies` (Boolean) If this setting is enabled, RBAC authorization policies will be enforced for this API. Role and permission assignments will be evaluated during the login transaction. - `name` (String) Friendly name for the resource server. Cannot include `<` or `>` characters. -- `options` (Map of String) Used to store additional metadata. - `scopes` (Block Set) List of permissions (scopes) used by this resource server. (see [below for nested schema](#nestedblock--scopes)) - `signing_alg` (String) Algorithm used to sign JWTs. Options include `HS256` and `RS256`. - `signing_secret` (String) Secret used to sign tokens when using symmetric algorithms (HS256). diff --git a/internal/auth0/resourceserver/resource.go b/internal/auth0/resourceserver/resource.go index c326a471c..55c1d071e 100644 --- a/internal/auth0/resourceserver/resource.go +++ b/internal/auth0/resourceserver/resource.go @@ -116,12 +116,6 @@ func NewResource() *schema.Resource { Description: "URL from which to retrieve JWKs for this resource server. " + "Used for verifying the JWT sent to Auth0 for token introspection.", }, - "options": { - Type: schema.TypeMap, - Elem: &schema.Schema{Type: schema.TypeString}, - Optional: true, - Description: "Used to store additional metadata.", - }, "enforce_policies": { Type: schema.TypeBool, Computed: true, @@ -192,7 +186,6 @@ func readResourceServer(ctx context.Context, d *schema.ResourceData, m interface result = multierror.Append( result, d.Set("verification_location", resourceServer.GetVerificationLocation()), - d.Set("options", resourceServer.GetOptions()), d.Set("enforce_policies", resourceServer.GetEnforcePolicies()), d.Set("token_dialect", resourceServer.GetTokenDialect()), d.Set("scopes", flattenResourceServerScopes(resourceServer.GetScopes())), @@ -257,7 +250,6 @@ func expandResourceServer(d *schema.ResourceData) *management.ResourceServer { resourceServer.EnforcePolicies = value.Bool(config.GetAttr("enforce_policies")) resourceServer.TokenDialect = value.String(config.GetAttr("token_dialect")) resourceServer.VerificationLocation = value.String(config.GetAttr("verification_location")) - resourceServer.Options = value.MapOfStrings(config.GetAttr("options")) } return resourceServer diff --git a/internal/auth0/resourceserver/resource_test.go b/internal/auth0/resourceserver/resource_test.go index 2c0439ace..e499bdaaa 100644 --- a/internal/auth0/resourceserver/resource_test.go +++ b/internal/auth0/resourceserver/resource_test.go @@ -180,7 +180,6 @@ resource "auth0_resource_server" "auth0" { resource.TestCheckResourceAttr("auth0_resource_server.auth0", "token_lifetime_for_web", "7200"), resource.TestCheckResourceAttr("auth0_resource_server.auth0", "scopes.#", "0"), resource.TestCheckNoResourceAttr("auth0_resource_server.auth0", "verification_location"), - resource.TestCheckNoResourceAttr("auth0_resource_server.auth0", "options"), resource.TestCheckNoResourceAttr("auth0_resource_server.auth0", "enforce_policies"), resource.TestCheckNoResourceAttr("auth0_resource_server.auth0", "token_dialect"), ),