Skip to content

Commit 0675f56

Browse files
author
Tujit Bora
committed
Merge branch 'enhanced-app' into 'master'
resource app refactor See merge request cidaas-management/terraform!142
2 parents a8807e6 + a305813 commit 0675f56

File tree

10 files changed

+870
-1166
lines changed

10 files changed

+870
-1166
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ coverage.out
22
.coverage.txt
33
coverage.html
44
internal.md
5+
samples

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Changelog
22

3+
### 3.4.6
4+
5+
#### Enhancements
6+
7+
- The `cidaas_app` resource has been enhanced to behave more accurately based on the `client_type` attribute. With this update, Terraform configurations must now explicitly define values for all relevant attributes, as they are no longer treated as computed or automatically assigned defaults by the provider during resource creation.
8+
For example, the `enabled` attribute was previously defaulted to `true` by the provider when creating an application. With this change, if you do not specify `enabled` in your configuration, the provider will omit it from the API request allowing the server to apply its own default behavior instead.
9+
This ensures a more predictable and transparent configuration experience, aligning the provider behavior more closely with user intent and server-side defaults.
10+
311
### 3.4.5
412

513
#### Bug Fixes

README.md

Lines changed: 96 additions & 96 deletions
Large diffs are not rendered by default.

docs/resources/app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,12 @@ resource "cidaas_app" "sample" {
284284

285285
### Required
286286

287-
- `allowed_logout_urls` (Set of String) Allowed logout URLs for OAuth2 client.
288287
- `allowed_scopes` (Set of String) The URL of the company website. allowed_scopes is a required attribute. It must be provided in the main config or common_config
289288
- `client_name` (String) Name of the client.
290289
- `client_type` (String) The type of the client. The allowed values are SINGLE_PAGE, REGULAR_WEB, NON_INTERACTIVEIOS, ANDROID, WINDOWS_MOBILE, DESKTOP, MOBILE, DEVICE and THIRD_PARTY
291290
- `company_address` (String) The company address.
292291
- `company_name` (String) The name of the company that the client belongs to.
293292
- `company_website` (String) The URL of the company website.
294-
- `redirect_uris` (Set of String) Redirect URIs for OAuth2 client.
295293

296294
### Optional
297295

@@ -305,6 +303,7 @@ resource "cidaas_app" "sample" {
305303
- `allow_login_with` (Set of String) allow_login_with is used to specify the preferred methods of login allowed for a client. Allowed values are EMAIL, MOBILE and USER_NAMEThe default is set to `['EMAIL', 'MOBILE', 'USER_NAME']`.
306304
- `allowed_fields` (Set of String)
307305
- `allowed_groups` (Attributes List) (see [below for nested schema](#nestedatt--allowed_groups))
306+
- `allowed_logout_urls` (Set of String) Allowed logout URLs for OAuth2 client.
308307
- `allowed_mfa` (Set of String)
309308
- `allowed_origins` (Set of String) List of the origins allowed to access the client.
310309
- `allowed_roles` (Set of String)
@@ -379,6 +378,7 @@ resource "cidaas_app" "sample" {
379378
- `policy_uri` (String) The URL to the policy of a client.
380379
- `post_logout_redirect_uris` (Set of String)
381380
- `primary_color` (String) The primary color of the client. e.g., `#ef4923`. The value must be a valid hex colorThe default is set to `#f7941d`.
381+
- `redirect_uris` (Set of String) Redirect URIs for OAuth2 client.
382382
- `refresh_token_lifetime_in_seconds` (Number) The lifetime of the refresh token in seconds. Default is 15780000 seconds.
383383
- `register_with_login_information` (Boolean) Register with login information. Default is set to `false` while creating an app.
384384
- `registration_access_token` (String)

docs/resources/hosted_page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ resource "cidaas_hosted_page" "sample" {
4646
### Required
4747

4848
- `hosted_page_group_name` (String) The name of the hosted page group. This must be unique across the cidaas system and cannot be updated for an existing state.
49-
- `hosted_pages` (Attributes List) List of hosted pages with their respective attributes (see [below for nested schema](#nestedatt--hosted_pages))
49+
- `hosted_pages` (Attributes Set) List of hosted pages with their respective attributes (see [below for nested schema](#nestedatt--hosted_pages))
5050

5151
### Optional
5252

internal/resources/app_model.go

Lines changed: 1 addition & 613 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)