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

url validator asterisk fix #445

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Conversation

wesleymccollam
Copy link
Contributor

Resolves #435

CHANGELOG.md Outdated
@@ -1,6 +1,7 @@
# v1.2.1 (Unreleased)
### Bug Fixes
* Fix terraform import failure for certain `pingfederate_sp_idp_connection` configurations ([#442](https://github.com/pingidentity/terraform-provider-pingfederate/pull/442))
* Fix URL config validator where some asterisks in value returned \"Invalid URL Format\" ([#445](https://github.com/pingidentity/terraform-provider-pingfederate/pull/445))
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the backslashes from this

_, err := url.Parse(value.ValueString())
valueString := value.ValueString()

if strings.Contains(valueString, "*") {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd add a comment explaining this

@wesleymccollam wesleymccollam merged commit 03ad3dd into main Jan 7, 2025
15 checks passed
@wesleymccollam wesleymccollam deleted the url-config-validator-wildcard-fix branch January 7, 2025 15:53
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.

Wildcard port is not allowed in Format for Allowed _Origins in OAuth Server Setting Resource
2 participants