Skip to content

Commit

Permalink
AUTH-4867 add scim_config to IDPs
Browse files Browse the repository at this point in the history
  • Loading branch information
rkernscloudflaretest committed Jan 12, 2023
1 parent fd77811 commit 80e2490
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/1178.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
access_identity_provider: add scim_config field
```
17 changes: 13 additions & 4 deletions access_identity_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import (

// AccessIdentityProvider is the structure of the provider object.
type AccessIdentityProvider struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
Config AccessIdentityProviderConfiguration `json:"config"`
ID string `json:"id,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
Config AccessIdentityProviderConfiguration `json:"config"`
ScimConfig AccessIdentityProviderScimConfiguration `json:"scim_config"`
}

// AccessIdentityProviderConfiguration is the combined structure of *all*
Expand Down Expand Up @@ -44,6 +45,14 @@ type AccessIdentityProviderConfiguration struct {
PKCEEnabled *bool `json:"pkce_enabled,omitempty"`
}

type AccessIdentityProviderScimConfiguration struct {
Enabled bool `json:"enabled,omitempty"`
Secret string `json:"secret,omitempty"`
UserDeprovision bool `json:"user_deprovision,omitempty"`
SeatDeprovision bool `json:"seat_deprovision,omitempty"`
GroupMemberDeprovision bool `json:"group_member_deprovision,omitempty"`
}

// AccessIdentityProvidersListResponse is the API response for multiple
// Access Identity Providers.
type AccessIdentityProvidersListResponse struct {
Expand Down

0 comments on commit 80e2490

Please sign in to comment.