Skip to content

Commit

Permalink
Add support for access reusable policies
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Gomes committed May 6, 2024
1 parent 22bf18d commit a912972
Show file tree
Hide file tree
Showing 5 changed files with 493 additions and 48 deletions.
7 changes: 7 additions & 0 deletions .changelog/1956.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:enhancement
access_policy: add support for reusable policies
```

```release-note:enhancement
access_application: add support for `policies` array
```
7 changes: 7 additions & 0 deletions access_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type AccessApplication struct {
CustomPages []string `json:"custom_pages,omitempty"`
Tags []string `json:"tags,omitempty"`
SCIMConfig *AccessApplicationSCIMConfig `json:"scim_config,omitempty"`
Policies []AccessPolicy `json:"policies,omitempty"`
AccessAppLauncherCustomization
}

Expand Down Expand Up @@ -277,6 +278,8 @@ type CreateAccessApplicationParams struct {
CustomPages []string `json:"custom_pages,omitempty"`
Tags []string `json:"tags,omitempty"`
SCIMConfig *AccessApplicationSCIMConfig `json:"scim_config,omitempty"`
// List of policy ids to link to this application in ascending order of precedence.
Policies []string `json:"policies,omitempty"`
AccessAppLauncherCustomization
}

Expand Down Expand Up @@ -310,6 +313,10 @@ type UpdateAccessApplicationParams struct {
CustomPages []string `json:"custom_pages,omitempty"`
Tags []string `json:"tags,omitempty"`
SCIMConfig *AccessApplicationSCIMConfig `json:"scim_config,omitempty"`
// List of policy ids to link to this application in ascending order of precedence.
// Can reference reusable policies and policies specific to this application.
// If this field is not provided, the existing policies will not be modified.
Policies *[]string `json:"policies,omitempty"`
AccessAppLauncherCustomization
}

Expand Down
Loading

0 comments on commit a912972

Please sign in to comment.