• Resolved niezmywalny

    (@niezmywalny)


    Hi there!
    I have a issue with your plugin, which was working fine before, but the authentication during today’s login failed.
    I deactivated WP-WebAuthn from within DirectAdmin and logged into the site normally, but found that the yubikey verification during the test wasn’t working properly either. I deleted all the keys from the list and wanted to add a “new one” – fail again.
    I enabled the log collection, repeated the key addition and got this result.:

    [2022-10-08 19:57:11][69c653] ajax_create: Start
    [2022-10-08 19:57:11][69c653] ajax_create: name => "bleble", type => "cross-platform", usernameless => "false"
    [2022-10-08 19:57:11][69c653] ajax_create: user => "wordpress user"
    [2022-10-08 19:57:11][69c653] ajax_create: excludeCredentials => []
    [2022-10-08 19:57:11][69c653] ajax_create: user_verification => "false"
    [2022-10-08 19:57:11][69c653] ajax_create: Challenge sent
    [2022-10-08 19:57:13][ccdae3] ajax_create_response: Client response received
    [2022-10-08 19:57:13][ccdae3] ajax_create_response: name => "bleble", type => "cross-platform", usernameless => "false"
    [2022-10-08 19:57:13][ccdae3] ajax_create_response: data => {"id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","type":"public-key","rawId":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==","response":{"clientDataJSON":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=="}}
    [2022-10-08 19:57:13][ccdae3] ajax_create_response: (ERROR)Challenge not found in transient, exit
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Axton

    (@axton)

    Hi niezmywalny,

    Sorry for the late response. Looks like your WordPress transient is broken. WP-WebAuthn uses transient, a WordPress bulit-in feature, to safely store information temporarily across requests. But transient can be broken by some caching plugins sometimes. Have you installed any caching plugin recently?

    Thread Starter niezmywalny

    (@niezmywalny)

    Hi @axton!

    No worries.
    The database optimization on my site is handled by LiteSpeed Cache for WordPress, but it worked fine and there were no problems with sing in. WP-WebAuthn stopped working as I moved the database and website to a new server. Could some tables in the database have been corrupted?

    Plugin Author Axton

    (@axton)

    Hi niezmywalny,
    Yes transient is stored in the database (or in the memory, if there is a memory based caching plugin). I believe they are stored in wp_options with _transient_ prefix. Deleting all transients in your database or performing a clean install may work as a temporary work around. I’ll try to re-produce the error you have by following your steps anyway.

    Thread Starter niezmywalny

    (@niezmywalny)

    Hi @axton!

    I’ll check the database over the weekend and let you know.
    I have 3 sites in total and I use your plugin on all of them. Those sites that I moved to a new server – stopped working with your plugin. This site what was not moved still works fine with WP-WebAuthn. Maybe there is a problem with export and import database/transitions in phpmyadmin?

    BTW I hope my English is good enough to describe the problem?

    Plugin Author Axton

    (@axton)

    Hi niezmywalny,

    I’ve tested the plugin on a clean install and also a site moved from another (database exported by phpmyadmin as you mentioned), both work fine. Since transient is a WordPress builtin feature, I’m not really sure the reason for the error: too many possibilities. Really sorry about that. If you are willing to please contact me with email (i at yrc.me) or wordpress slack (check my profile) for a direct communication so I can figure out the problem.

    Hello niezmywalny,

    I recently ran into the same problem after accidentally disabling all the plugins (including WebAuthn and W3TC). I found this was caused by set transient failure with object cache enabled.

    I managed to work around by checking “Store transients in database” option, which may harm the performance a little bit but makes everything right. I’m not sure if the problem belongs to WordPress, cache engine or WP-WebAuthn, but I think similar workarounds may be helpful.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘(ERROR) Challenge not found in transient, exit’ is closed to new replies.