-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0] Webauthn gmp warning #29731
[4.0] Webauthn gmp warning #29731
Conversation
@PhilETaylor Maybe some general explanation about or PR descriptions: "Expected result" always shall describe what one expects, i.e. how it is with the PR applied, "Actual result" shall describe what one currently observes, i.e. how it is without the PR applied. Your description above currently mixes that up. |
This comment was marked as abuse.
This comment was marked as abuse.
Agree .. it's often subject of confusion. |
I'd actually change the detection code to use First, I've seen many hosts where Second, it's possible that the extension is enabled but the host disabled the functions. I have not seen that with GMP but I can't rule out outright stupidity when it comes to cheap hosting. |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
@PhilETaylor Normally we do it the other way round, i.e. |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
@PhilETaylor PHPCS is ok with it, so I am, too. Unfortunately I can't help with testing, because my local testing environment uses a self signed SSL certificate, and I haven't set up any webauthentication for me anywhere. And testing space on my domain which has a valid SSL cert is protected with password, so I am not sure if it would work there. |
This comment was marked as abuse.
This comment was marked as abuse.
@PhilETaylor You can't teach an old dog new tricks ;-) (have to go back to my vi editor) |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
There must be something wrong ... ;-) |
I have tested this item ✅ successfully on dba7e75 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29731. |
Self hosted alternative to Ngrok written in PHP: https://pociot.dev/28-introducing-expose-an-easy-to-use-tunneling-service-implemented-in-pure-php#introducing-expose-an-easy-to-use-tunneling-service-implemented-in-pure-php Apparently it took the PHP world by storm over the last couple of weeks. |
This comment was marked as abuse.
This comment was marked as abuse.
I have tested this item ✅ successfully on dba7e75 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29731. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29731. |
Thanks! |
…outs * '4.0-dev' of github.com:joomla/joomla-cms: (612 commits) [4.0] Smart Search: Fixing ordering, order direction and disabled button (joomla#29474) [4.0] Generate routed Modal links for iframes when not on the root (joomla#30007) [4.0] Get menu directly in com_tags menu route helper (joomla#30039) Remove collapse when resizing from mobile to desktop (joomla#30132) [4.0] Wrap component output in `main` element to make Cassiopeia more accessible (joomla#29870) [4.0] Webauthn gmp warning (joomla#29731) [4.0] Refactor to return early, remove if depths and throw NotAllowed (joomla#29694) [4.0] CLI help text (joomla#29811) Feature/draggable typo fixes (joomla#29987) [4.0] Removing unnecessary workaround in finder indexer (joomla#30037) [4.0] Optimizing Smart Search for larger content (joomla#30008) [4.0] Fix js ajax for pre update checker (joomla#29980) [4.0] Cassiopea: Fixing modals custom-select fields display (joomla#30097) [4.0][com_fields] Fix draggable sorting (joomla#30094) [4.0] Correct incorrect @return documentation (joomla#30092) [4.0] Menu items modal: adding missing filters (joomla#30087) short to long php open tags with echo (joomla#30089) Use new Toolbar (joomla#30085) [4.0] Center status/date created headers (joomla#29249) [4.0] Fix Cassiopea searchtools alignment in modals (joomla#30077) ... # Conflicts: # administrator/components/com_templates/src/View/Template/HtmlView.php # installation/sql/postgresql/base.sql # libraries/src/Application/AdministratorApplication.php # libraries/src/Application/SiteApplication.php
Add warning if GMP not loaded for Webauthn
Pull Request for Issue #29696 .
Summary of Changes
A very light touch change to reuse existing code to display a warning and remove the ability to add authenticators if the PHP extension GMP is not loaded.
Testing Instructions
Install Joomla 4 on a server (or docker container in my case) without GMP PHP Extension enabled (On a cPanel server you can toggle this, and its off by default in Easy Apache 4)
Ensure you access Joomla over a secure & valid SSL connection (learn ngrok if you need this, quick and easy)
Before PR
When adding an authenticator you get an internal server error
After PR
You get a error and no button allowing you to add a new authenticator (but you can still see the list of existing authenticators - if any - rename them, and delete them.)
Who else to ping for visibility ;-)
// @nikosdion