Skip to content

Commit 705d9df

Browse files
wavemorangoruha
andauthored
feat: Add cross_origin_auth variable to auth0_client (#1149)
Co-authored-by: Igor Rodionov <[email protected]>
1 parent e8dafc2 commit 705d9df

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

modules/auth0/app/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ components:
104104
| <a name="input_authentication_method"></a> [authentication\_method](#input\_authentication\_method) | The authentication method for the client credentials | `string` | `"client_secret_post"` | no |
105105
| <a name="input_callbacks"></a> [callbacks](#input\_callbacks) | Allowed Callback URLs | `list(string)` | `[]` | no |
106106
| <a name="input_context"></a> [context](#input\_context) | Single object for setting entire context at once.<br>See description of individual variables for details.<br>Leave string and numeric variables as `null` to use default value.<br>Individual variable settings (non-null) override settings in context object,<br>except for attributes, tags, and additional\_tag\_map, which are merged. | `any` | <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": null,<br> "descriptor_formats": {},<br> "enabled": true,<br> "environment": null,<br> "id_length_limit": null,<br> "label_key_case": null,<br> "label_order": [],<br> "label_value_case": null,<br> "labels_as_tags": [<br> "unset"<br> ],<br> "name": null,<br> "namespace": null,<br> "regex_replace_chars": null,<br> "stage": null,<br> "tags": {},<br> "tenant": null<br>}</pre> | no |
107+
| <a name="input_cross_origin_auth"></a> [cross\_origin\_auth](#input\_cross\_origin\_auth) | Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). | `bool` | `false` | no |
107108
| <a name="input_delimiter"></a> [delimiter](#input\_delimiter) | Delimiter to be used between ID elements.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. | `string` | `null` | no |
108109
| <a name="input_descriptor_formats"></a> [descriptor\_formats](#input\_descriptor\_formats) | Describe additional descriptors to be output in the `descriptors` output map.<br>Map of maps. Keys are names of descriptors. Values are maps of the form<br>`{<br> format = string<br> labels = list(string)<br>}`<br>(Type is `any` so the map values can later be enhanced to provide additional options.)<br>`format` is a Terraform format string to be passed to the `format()` function.<br>`labels` is a list of labels, in order, to pass to `format()` function.<br>Label values will be normalized before being passed to `format()` so they will be<br>identical to how they appear in `id`.<br>Default is `{}` (`descriptors` output will be empty). | `any` | `{}` | no |
109110
| <a name="input_enabled"></a> [enabled](#input\_enabled) | Set to false to prevent the module from creating any resources | `bool` | `null` | no |

modules/auth0/app/main.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ resource "auth0_client" "this" {
2020
alg = var.jwt_alg
2121
}
2222

23-
callbacks = var.callbacks
24-
allowed_origins = var.allowed_origins
25-
web_origins = var.web_origins
26-
grant_types = var.grant_types
27-
logo_uri = var.logo_uri
23+
callbacks = var.callbacks
24+
cross_origin_auth = var.cross_origin_auth
25+
allowed_origins = var.allowed_origins
26+
web_origins = var.web_origins
27+
grant_types = var.grant_types
28+
logo_uri = var.logo_uri
2829

2930
}
3031

modules/auth0/app/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ variable "callbacks" {
99
default = []
1010
}
1111

12+
variable "cross_origin_auth" {
13+
type = bool
14+
description = "Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false)."
15+
default = false
16+
}
17+
1218
variable "allowed_origins" {
1319
type = list(string)
1420
description = "Allowed Origins"

0 commit comments

Comments
 (0)