Skip to content

Commit

Permalink
fix(bugfix-550): removing options from api schema for resourcesaver (#…
Browse files Browse the repository at this point in the history
…551)

Co-authored-by: Caley <[email protected]>
Co-authored-by: Sergiu Ghitea <[email protected]>
  • Loading branch information
3 people authored Apr 18, 2023
1 parent 40ac9ce commit fb72f95
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion docs/data-sources/resource_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
1 change: 0 additions & 1 deletion docs/resources/resource_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
8 changes: 0 additions & 8 deletions internal/auth0/resourceserver/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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())),
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion internal/auth0/resourceserver/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
Expand Down

0 comments on commit fb72f95

Please sign in to comment.