Skip to content

Use site_url() for the FIDO U2F AppId #270

Closed

Description

@onliniak

Priority: Low, I use very rarely use option.

I propably find a error. I use TF 0.3, WP 5.0.3, Firefox 65, Yubikey 4 and Nginx.

When I select this same urls like example.com and example.com all works but if my site url is example.com and my blog url (WP admin and WP login) is abc.123.xyz I am not able to login. abc.123.xyz/wp-login show destroy session error and Firefox don't show fingerprint icon.

Activity

  1. kasparsd commented on Feb 8, 2019

    @kasparsd
    Collaborator

    Is that with the U2F key? The U2F protocol relies on the AppId which we set to the home_url() here:

    https://github.com/georgestephanis/two-factor/blob/f33778a5f72a08550cc7f25ab93f67bfd44c7c1d/providers/class.two-factor-fido-u2f.php#L90-L98

    And per home_url() docs:

    Retrieves the URL for the current site where the front end is accessible.

    So site_url() would actually be more appropriate.

    However, it has been like that for the past four years b5df9ba and it could introduce a regression if we change it right now.

    Maybe add a filter to allow changing that?

  2. onliniak commented on Feb 9, 2019

    @onliniak
    Author

    Yes, U2F key. By the way I find similar problem with OpenID plugin (I am stuck after login with message "put key" but without fingerprint icon).

    I understand, anyway it's extremal situations. Closed.

  3. joshbetz commented on Feb 11, 2019

    @joshbetz
    Collaborator

    However, it has been like that for the past four years b5df9ba and it could introduce a regression if we change it right now.

    In most cases the home_url() and site_url() are probably the same. In cases where they're not, this is almost certainly broken right now. It seems unlikely that fixing this will cause more problems.

  4. kasparsd commented on Feb 11, 2019

    @kasparsd
    Collaborator

    @joshbetz I agree! I know WP VIP has home_url() return the top-level domain and site_url() return the *.wordpress.com domain.

    Let's get this fixed.

  5. changed the title [-]Destroy session, when diffrent WP_Blog and WP_Site[/-] [+]Use site_url() for the FIDO U2F AppId[/+] on Feb 12, 2019
  6. onliniak commented on Feb 14, 2019

    @onliniak
    Author

    So, by coincidence, I pointed to a possible problem with wordpress.com? Good to know ...

  7. iandunn commented on Oct 20, 2022

    @iandunn
    Member

    U2F is deprecated and no longer works in Chrome, so the provider is being removed in #439 . Given that, there's probably no reason to keep this open anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions