Skip to content

Commit

Permalink
Merge pull request #2713 from alyssamw/master
Browse files Browse the repository at this point in the history
GIN-341: add certificate setting to teams gateway account gateway configuration
  • Loading branch information
jacobbednarz authored Jul 2, 2024
2 parents f5d3137 + ca5c8a4 commit 8b5a963
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/2713.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
teams: added per account certificate setting to teams gateway configuration
```
5 changes: 5 additions & 0 deletions teams_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type TeamsAccountSettings struct {
BodyScanning *TeamsBodyScanning `json:"body_scanning,omitempty"`
ExtendedEmailMatching *TeamsExtendedEmailMatching `json:"extended_email_matching,omitempty"`
CustomCertificate *TeamsCustomCertificate `json:"custom_certificate,omitempty"`
Certificate *TeamsCertificate `json:"certificate,omitempty"`
}

type BrowserIsolation struct {
Expand Down Expand Up @@ -112,6 +113,10 @@ type TeamsCustomCertificate struct {
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

type TeamsCertificate struct {
ID string `json:"id"`
}

type TeamsRuleType = string

const (
Expand Down
6 changes: 6 additions & 0 deletions teams_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func TestTeamsAccountConfiguration(t *testing.T) {
},
"extended_email_matching": {
"enabled": true
},
"certificate": {
"id": "7559a944-3dd7-41bf-b183-360a814a8c36"
}
}
}
Expand Down Expand Up @@ -138,6 +141,9 @@ func TestTeamsAccountConfiguration(t *testing.T) {
ExtendedEmailMatching: &TeamsExtendedEmailMatching{
Enabled: BoolPtr(true),
},
Certificate: &TeamsCertificate{
ID: "7559a944-3dd7-41bf-b183-360a814a8c36",
},
})
}
}
Expand Down

0 comments on commit 8b5a963

Please sign in to comment.