Skip to content

feat(setup): validation for url/base_url#521

Merged
Breee merged 2 commits intomainfrom
feat/validation
Mar 16, 2026
Merged

feat(setup): validation for url/base_url#521
Breee merged 2 commits intomainfrom
feat/validation

Conversation

@Breee
Copy link
Copy Markdown
Collaborator

@Breee Breee commented Mar 13, 2026

Summary

Fixes #519 by adding stronger validation and normalization for Keycloak url / admin_url and base_path handling.

Changes

  • Validate required url and optional admin_url as absolute URLs.
  • Reject malformed URL values (including query/fragment).
  • Normalize trailing slashes on URL fields.
  • Validate and normalize base_path:
    • "/" is normalized to "" to prevent double-slash request paths.
    • trailing slash is trimmed for non-root paths.

Additional Updates

  • Added unit tests covering URL/base path validation and normalization.
  • Updated docs and examples with guidance for valid url/base_path values.

@Breee Breee merged commit 80c9b4c into main Mar 16, 2026
13 checks passed
@Breee Breee deleted the feat/validation branch March 16, 2026 09:06
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.

[BUG] Request with a non-normalized path blocked in other request then addresses (400 Bad Request)

1 participant