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

Could not able to click Create PassKey button- ( Mozilla,Ubuntu 22.04.1 LTS) #351

Closed
2 tasks done
rainfall-datta opened this issue Nov 5, 2022 · 10 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@rainfall-datta
Copy link

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Describe the bug

After giving login to 8888 port , I got pass key after adding passkey i landed to My Profile but "Create a PassKey" Button at right is disable,
On Mouse over showing " Web Authn is not supporting to this browser"

image

Could not able to "Create Pass Key" - ( Mozilla, Ubuntu-20.04 LTS)

Reproducing the bug

git clone https://github.com/teamhanko/hanko.git
Then, in the newly created hanko folder, just run:

docker compose -f deploy/docker-compose/quickstart.yaml -p "hanko-quickstart" up --build

Logs

No response

Configuration

No response

Hanko Version

HANKO-Beta 0.3.0

OS

Other

OS Version

Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04

Browser Version

FireFox - 106.0.4

Environment

Docker Compose

Additional Context

No response

@rainfall-datta rainfall-datta added the bug Something isn't working label Nov 5, 2022
@rainfall-datta rainfall-datta changed the title Could not able to generateKey- ( Mozilla,Ubuntu 22.04.1 LTS) Could not able to click Create PassKey button- ( Mozilla,Ubuntu 22.04.1 LTS) Nov 5, 2022
@rainfall-rakesh
Copy link

Hanko Team, Just as side note we have tried installing the Hanko on local Windows 11 system and accessing the same using Chrome browser, it worked fine.

Our suspicion is hosting on Ubuntu is causing it.. but we are not sure...

@FlxMgdnz
Copy link
Member

FlxMgdnz commented Nov 5, 2022

Unfortunately, multi-device/synced passkeys are not yet supported on Ubuntu. There's nothing we can do about this until Ubuntu implements a platform authenticator.

As soon as we ship #331, it should at least be possible with Ubuntu/Firefox to create single-device passkeys on physical Security Keys.

@rainfall-rakesh
Copy link

@FlxMgdnz
Thanks for response...

As per your comment, looks like the hosting on ubunto is causing it, is that correct?

Just to confirm and get clear understanding. I am wondering why or for what hanko depends on any server side component for webauthn?

Also can you point us to any doc that gives supported platforms?

Any insights will be helpful to us to plan future strategy...

@FlxMgdnz
Copy link
Member

FlxMgdnz commented Nov 6, 2022

Hosting on Ubuntu should not be a problem at all, there are no specific requirements on the server side.

Creating a passkey requires WebAuthn to be available on the client side, though. In your case, you can host Hanko on Ubuntu, but passkeys would only be usable on non-Ubuntu clients.

@rainfall-rakesh
Copy link

Yes that makes sense. However we are puzzled because the pass key button is disabled when we host it on Ubuntu and try to access using windows client using Chrome.

This works perfectly fine when hosted on windows locally and accessed using local client.

Any idea why this would happen?

@FreddyDevelop
Copy link
Contributor

Did you serve the hanko-quickstart over https while hosting it on Ubuntu?

The Web Authentication API only works in a secure context which is either localhost or https. If you want to host the hanko-quickstart on a different machine you must serve it over https to be able to use passkeys.

@rainfall-datta
Copy link
Author

Yes we have hosted that on Https and tried but internally quick start and element containers communicate over http, so it was giving secure protocol issue over hanko element container access

@rainfall-rakesh
Copy link

Hi Hanko Team,
Do you have any reference docker-compose file for https setup?

@FreddyDevelop
Copy link
Contributor

No, currently we don't have any docker-compose file with https setup.

@FlxMgdnz
Copy link
Member

Closing this for now. Please reach out if you have any more issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants