• Resolved timmitra

    (@timmitra)


    HI

    I’m trying out the wp-webauthn plugin. The Registration fails saying – The extension “sodium” is not available.

    We have enabled the php-sodium library on the server. Is there anything else we need to do or check?

    2022-06-07 23:39:51][c5cb68] ajax_create_response: Credential ID unique check passed
    [2022-06-07 23:39:51][c5cb68] ajax_create_response: (ERROR)The extension "sodium" is not available. Please install it to use this method
    [2022-06-07 23:39:51][c5cb68] Traceback:
                                  1) /chroot/home/timmitra/timmitra.com/html/wp-admin/admin-ajax.php(176): do_action('wp_ajax_wwa_cre...')
                                  2) /chroot/home/timmitra/timmitra.com/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
                                  3) /chroot/home/timmitra/timmitra.com/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
                                  4) /chroot/home/timmitra/timmitra.com/html/wp-includes/class-wp-hook.php(287): wwa_ajax_create_response('')
                                  5) /chroot/home/timmitra/timmitra.com/html/wp-content/plugins/wp-webauthn/wwa-ajax.php(476): Webauthn\Server->loadAndCheckAttestationResponse('{"id":"zowccyOk...', Object(Webauthn\PublicKeyCredentialCreationOptions), Object(Nyholm\Psr7\ServerRequest))
                                  6) /chroot/home/timmitra/timmitra.com/html/wp-content/plugins/wp-webauthn/vendor/web-auth/webauthn-lib/src/Server.php(248): Webauthn\Server->getAttestationStatementSupportManager()
                                  7) /chroot/home/timmitra/timmitra.com/html/wp-content/plugins/wp-webauthn/vendor/web-auth/webauthn-lib/src/Server.php(334): Webauthn\AttestationStatement\AndroidSafetyNetAttestationStatementSupport->__construct()
                                  8) /chroot/home/timmitra/timmitra.com/html/wp-content/plugins/wp-webauthn/vendor/web-auth/webauthn-lib/src/AttestationStatement/AndroidSafetyNetAttestationStatementSupport.php(97): Webauthn\AttestationStatement\AndroidSafetyNetAttestationStatementSupport->initJwsVerifier()
    [2022-06-07 23:39:51][c5cb68] ajax_create_response: (ERROR)Challenge not verified, exit
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Axton

    (@axton)

    Hi timmitra,

    WP-WebAuthn detects sodium by checking whether the corresponding functions are available. Please make sure the extension is enabled in php.ini.

    Sorry for the late response since the email notification is lost somehow.

    Thread Starter timmitra

    (@timmitra)

    Hi

    The server admins have added Sodium support to the server.
    I’m running php 7.3.33 and I can see Sodium listed in phpInfo.

    Registering an Authenticator still fails.

    Can you be more specific about the php.ini entry?

    no rush, when you can
    Thanks

    Plugin Author Axton

    (@axton)

    Hi,

    Sorry for the late response I was in a holiday in last few days.

    This plug-in simply detects if the function sodium_crypto_sign_detached provided by Sodium exists (function_exists('sodium_crypto_sign_detached')). If you are sure this function works you can just ignore the warning. But this should work on PHP 7.2+ if Sodium is installed. More info is needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The extension “sodium” is not available’ is closed to new replies.