Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTH-5745 add default relay state for saas applications #1477

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/1477.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
access_application: Add support for default_relay_state in saas apps
```
1 change: 1 addition & 0 deletions access_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ type SaasApplication struct {
IDPEntityID string `json:"idp_entity_id,omitempty"`
NameIDFormat string `json:"name_id_format,omitempty"`
SSOEndpoint string `json:"sso_endpoint,omitempty"`
DefaultRelayState string `json:"default_relay_state,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
CustomAttributes []SAMLAttributeConfig `json:"custom_attributes,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions access_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ func TestCreateSaasAccessApplications(t *testing.T) {
"consumer_service_url": "https://saas.example.com",
"sp_entity_id": "dash.example.com",
"name_id_format": "id",
"default_relay_state": "https://saas.example.com",
"custom_attributes": [
{
"name": "test1",
Expand Down Expand Up @@ -697,6 +698,7 @@ func TestCreateSaasAccessApplications(t *testing.T) {
ConsumerServiceUrl: "https://saas.example.com",
SPEntityID: "dash.example.com",
NameIDFormat: "id",
DefaultRelayState: "https://saas.example.com",
CustomAttributes: []SAMLAttributeConfig{
{
Name: "test1",
Expand Down
Loading