Skip to content

Commit

Permalink
Merge pull request #1281 from GreenStage/egomes/AUTH-5018
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Jun 6, 2023
2 parents c843fae + 3c395c3 commit 81c4fb1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/1281.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
Added self_hosted_domains to access apps
```
1 change: 1 addition & 0 deletions access_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type AccessApplication struct {
LogoURL string `json:"logo_url,omitempty"`
AUD string `json:"aud,omitempty"`
Domain string `json:"domain"`
SelfHostedDomains []string `json:"self_hosted_domains"`
Type AccessApplicationType `json:"type,omitempty"`
SessionDuration string `json:"session_duration,omitempty"`
SameSiteCookieAttribute string `json:"same_site_cookie_attribute,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions access_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func TestAccessApplication(t *testing.T) {
"aud": "737646a56ab1df6ec9bddc7e5ca84eaf3b0768850f3ffb5d74f1534911fe3893",
"name": "Admin Site",
"domain": "test.example.com/admin",
"self_hosted_domains": ["test.example.com/admin", "test.example.com/admin2"],
"type": "self_hosted",
"session_duration": "24h",
"allowed_idps": ["f174e90a-fafe-4643-bbbc-4a0ed4fc8415"],
Expand Down Expand Up @@ -144,6 +145,7 @@ func TestAccessApplication(t *testing.T) {
AUD: "737646a56ab1df6ec9bddc7e5ca84eaf3b0768850f3ffb5d74f1534911fe3893",
Name: "Admin Site",
Domain: "test.example.com/admin",
SelfHostedDomains: []string{"test.example.com/admin", "test.example.com/admin2"},
Type: "self_hosted",
SessionDuration: "24h",
AllowedIdps: []string{"f174e90a-fafe-4643-bbbc-4a0ed4fc8415"},
Expand Down Expand Up @@ -194,6 +196,7 @@ func TestCreateAccessApplications(t *testing.T) {
"aud": "737646a56ab1df6ec9bddc7e5ca84eaf3b0768850f3ffb5d74f1534911fe3893",
"name": "Admin Site",
"domain": "test.example.com/admin",
"self_hosted_domains": ["test.example.com/admin", "test.example.com/admin2"],
"type": "self_hosted",
"session_duration": "24h",
"allowed_idps": ["f174e90a-fafe-4643-bbbc-4a0ed4fc8415"],
Expand All @@ -216,6 +219,7 @@ func TestCreateAccessApplications(t *testing.T) {
ID: "480f4f69-1a28-4fdd-9240-1ed29f0ac1db",
Name: "Admin Site",
Domain: "test.example.com/admin",
SelfHostedDomains: []string{"test.example.com/admin", "test.example.com/admin2"},
Type: "self_hosted",
SessionDuration: "24h",
AUD: "737646a56ab1df6ec9bddc7e5ca84eaf3b0768850f3ffb5d74f1534911fe3893",
Expand Down Expand Up @@ -275,6 +279,7 @@ func TestUpdateAccessApplication(t *testing.T) {
"aud": "737646a56ab1df6ec9bddc7e5ca84eaf3b0768850f3ffb5d74f1534911fe3893",
"name": "Admin Site",
"domain": "test.example.com/admin",
"self_hosted_domains": ["test.example.com/admin", "test.example.com/admin2"],
"type": "self_hosted",
"session_duration": "24h",
"allowed_idps": ["f174e90a-fafe-4643-bbbc-4a0ed4fc8415"],
Expand All @@ -297,6 +302,7 @@ func TestUpdateAccessApplication(t *testing.T) {
ID: "480f4f69-1a28-4fdd-9240-1ed29f0ac1db",
Name: "Admin Site",
Domain: "test.example.com/admin",
SelfHostedDomains: []string{"test.example.com/admin", "test.example.com/admin2"},
Type: "self_hosted",
SessionDuration: "24h",
AUD: "737646a56ab1df6ec9bddc7e5ca84eaf3b0768850f3ffb5d74f1534911fe3893",
Expand Down

0 comments on commit 81c4fb1

Please sign in to comment.