Skip to content
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

Use site_url() for the FIDO U2F AppId #270

Closed
onliniak opened this issue Feb 8, 2019 · 6 comments
Closed

Use site_url() for the FIDO U2F AppId #270

onliniak opened this issue Feb 8, 2019 · 6 comments
Labels

Comments

@onliniak
Copy link

onliniak commented Feb 8, 2019

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.

@kasparsd
Copy link
Collaborator

kasparsd commented Feb 8, 2019

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?

@onliniak
Copy link
Author

onliniak commented Feb 9, 2019

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.

@onliniak onliniak closed this as completed Feb 9, 2019
@joshbetz
Copy link
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.

@kasparsd
Copy link
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.

@kasparsd kasparsd reopened this Feb 11, 2019
@kasparsd kasparsd changed the title Destroy session, when diffrent WP_Blog and WP_Site Use site_url() for the FIDO U2F AppId Feb 12, 2019
@onliniak
Copy link
Author

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

@iandunn
Copy link
Member

iandunn commented Oct 20, 2022

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.

@iandunn iandunn closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants