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

Add custom deny fields to Access application #895

Merged

Conversation

Justin-Holmes
Copy link
Contributor

Requires a new cloudflare-go version with cloudflare/cloudflare-go#566 before this can be merged.

@@ -134,6 +142,8 @@ func resourceCloudflareAccessApplicationCreate(d *schema.ResourceData, meta inte
SessionDuration: d.Get("session_duration").(string),
AutoRedirectToIdentity: d.Get("auto_redirect_to_identity").(bool),
EnableBindingCookie: d.Get("enable_binding_cookie").(bool),
CustomDenyMessage: d.Get("custom_deny_message").(string),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we always want this appended to send zero values? or should we conditionally add it in?

Copy link
Contributor Author

@Justin-Holmes Justin-Holmes Dec 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to append zero values. I'm using the omitempty tag on those fields https://github.com/Justin-Holmes/cloudflare-go/blob/justin/access_custom_deny_fields/access_application.go#L26-L27, so I believe they'll be omitted from the request.

@Justin-Holmes Justin-Holmes force-pushed the justin/custom-deny-fields branch from 6193e75 to 162a477 Compare January 4, 2021 21:38
@Justin-Holmes Justin-Holmes changed the title [WIP] Add custom deny fields to Access application Add custom deny fields to Access application Jan 4, 2021
@Justin-Holmes Justin-Holmes marked this pull request as ready for review January 4, 2021 21:38
Copy link
Member

@jacobbednarz jacobbednarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wicked! thanks 🙇

@jacobbednarz jacobbednarz merged commit 1e824fe into cloudflare:master Jan 5, 2021
@Justin-Holmes Justin-Holmes deleted the justin/custom-deny-fields branch February 23, 2021 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants