-
-
Notifications
You must be signed in to change notification settings - Fork 149
Add SAML options to auth0_connection resource #244
Conversation
Only support the options that are both readable and writable. Added an acceptance test and documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions based on my suggestions to the go library changes.
I didn't test these - I just typed them in. Hopefully, I got it mostly right.
Thanks again for making the PR.
Co-authored-by: jbauth0 <49204697+jbauth0@users.noreply.github.com>
Co-authored-by: jbauth0 <49204697+jbauth0@users.noreply.github.com>
Co-authored-by: jbauth0 <49204697+jbauth0@users.noreply.github.com>
Co-authored-by: jbauth0 <49204697+jbauth0@users.noreply.github.com>
Co-authored-by: jbauth0 <49204697+jbauth0@users.noreply.github.com>
Co-authored-by: jbauth0 <49204697+jbauth0@users.noreply.github.com>
Co-authored-by: jbauth0 <49204697+jbauth0@users.noreply.github.com>
auth0/structure_auth0_connection.go
Outdated
"signing_cert": o.GetSigningCert(), | ||
"protocol_binding": o.GetProtocolBinding(), | ||
"debug": o.GetDebug(), | ||
"idpinitiated": o.GetIdpInitiated(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be flattened as well?
auth0/structure_auth0_connection.go
Outdated
ClientID: String(d, "client_id"), | ||
ClientProtocol: String(d, "client_protocol"), | ||
ClientAuthorizequery: String(d, "client_authorizequery"), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect there is an error here. String(d, "client_id")
should be run inside a Set(d, "idpinitiated").Elem(...)
block.
} | ||
} | ||
} | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a test for updates? Some common issues tend to surface which get caught with update tests. Also please test the idpinitiated
block.
auth0/resource_auth0_connection.go
Outdated
"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", | ||
}, true), | ||
}, | ||
"idpinititated": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make this a little more readable:
"idpinititated": { | |
"idp_inititated": { |
auth0/resource_auth0_connection.go
Outdated
Type: schema.TypeString, | ||
Optional: true, | ||
}, | ||
"client_authorizequery": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"client_authorizequery": { | |
"client_authorize_query": { |
Awesome work @kgunbin thank you for this! Watch out for a new release soon. |
Yes - thank you for all your work @kgunbin! |
Based on go-auth0/auth0#118
Proposed Changes
Acceptance Test Output
Community Note