Repository navigation
stages/captcha: fix hcaptcha height - #20901
Merged
gergosimonyi merged 1 commit intoJul 6, 2026
Merged
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
GirlBossRush
approved these changes
Mar 17, 2026
Contributor
|
@harrisonfishco Well done! 👏🏻 The captcha components are especially thorny given our double-framing. I suspect there might be some edge cases remaining, but this looks like the right direction. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20901 +/- ##
==========================================
- Coverage 93.48% 93.42% -0.06%
==========================================
Files 991 991
Lines 56090 56090
==========================================
- Hits 52434 52404 -30
- Misses 3656 3686 +30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
GirlBossRush
pushed a commit
that referenced
this pull request
Jul 6, 2026
stages/captcha: fix hcaptcha height (#20901) Co-authored-by: Harrison Fishco <[email protected]>
GirlBossRush
pushed a commit
that referenced
this pull request
Jul 20, 2026
Co-authored-by: Harrison Fishco <[email protected]>
|
have this issue in 2026.5.6 and before |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
The hCaptcha has a nested iframe that changes height when progressing to the second step. The code change monitors inner iframes to find the correct height whenever the style or children change to correctly update the height.
According to the code, the nested iframes are similar to Google ReCaptcha. This code should be compatible, but I do not have an API key to test with. PLEASE TEST BEFORE MERGING
Example of hCaptcha "Step 1"

Example of hCaptcha "Step 2"

closes #18971
Checklist
ak test authentik/)make lint-fix)If an API change has been madeThe API schema has been updated (make gen-build)If changes to the frontend have been made
make web)If applicableThe documentation has been updatedThe documentation has been formatted (make docs)