-
-
Notifications
You must be signed in to change notification settings - Fork 128
Add mappings for the SAML type connection #118
Conversation
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.
Just a few minor suggestions. Otherwise, I think this looks good and it is certainly needed.
Thanks!
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>
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.
Thank you for this @kgunbin!
I made some suggestions with regards to naming and casing, otherwise I think it looks quite alright to me.
Co-authored-by: Alex Kalyvitis <alexkappa@github.com>
@@ -227,7 +227,7 @@ func (m *Management) request(method, uri string, v interface{}) error { | |||
return newError(res.Body) | |||
} | |||
|
|||
if res.StatusCode != http.StatusNoContent { | |||
if res.StatusCode != http.StatusNoContent && res.StatusCode != http.StatusAccepted { |
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 you give some context over this check? What caused a response of status accepted? Just curious..
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.
The tests were failing on the deletion step, and according to https://auth0.com/docs/api/management/v2#!/Connections/delete_connections_by_id it is expected that DELETE
can respond with 202 instead of 204
I assume that would better come as a separate PR, but without this change I was unable to get tests green for alexkappa/terraform-provider-auth0#244
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.
Wow, I missed that! Thanks! And no worries, we can keep it in with this PR.
Many thanks for working on this @kgunbin! |
I've cut v4.4.0 if you would like to update alexkappa/terraform-provider-auth0#244. |
This PR adds the options for the SAML connection type.