Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

auth0/structure_auth0_connection.go: Properly expand all SAML options #261

Merged
merged 1 commit into from
Aug 23, 2020
Merged
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: 2 additions & 1 deletion auth0/structure_auth0_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ func expandConnectionOptionsOIDC(d ResourceData) *management.ConnectionOptionsOI

func expandConnectionOptionsSAML(d ResourceData) *management.ConnectionOptionsSAML {
o := &management.ConnectionOptionsSAML{
Debug: Bool(d, "debug"),
SigningCert: String(d, "signing_cert"),
ProtocolBinding: String(d, "protocol_binding"),
TenantDomain: String(d, "tenant_domain"),
Expand All @@ -524,7 +525,7 @@ func expandConnectionOptionsSAML(d ResourceData) *management.ConnectionOptionsSA
SignSAMLRequest: Bool(d, "sign_saml_request"),
}

Set(d, "idp_initiated").Elem(func(d ResourceData) {
List(d, "idp_initiated").Elem(func(d ResourceData) {
o.IdpInitiated = &management.ConnectionOptionsSAMLIdpInitiated{
ClientID: String(d, "client_id"),
ClientProtocol: String(d, "client_protocol"),
Expand Down