diff --git a/.changelog/1477.txt b/.changelog/1477.txt new file mode 100644 index 00000000000..fad08d0c6c5 --- /dev/null +++ b/.changelog/1477.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +access_application: Add support for default_relay_state in saas apps +``` \ No newline at end of file diff --git a/access_application.go b/access_application.go index 6e62b2de2eb..98b240ae743 100644 --- a/access_application.go +++ b/access_application.go @@ -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"` diff --git a/access_application_test.go b/access_application_test.go index 6904b7c6938..ed0916e03a9 100644 --- a/access_application_test.go +++ b/access_application_test.go @@ -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", @@ -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",