GithubHelp home page GithubHelp logo

library reports lack of support to webauthn in mobile chrome but webauthn seems to work if using reference site about simplewebauthn HOT 8 CLOSED

joaomelo avatar joaomelo commented on September 26, 2024
library reports lack of support to webauthn in mobile chrome but webauthn seems to work if using reference site

from simplewebauthn.

Comments (8)

joaomelo avatar joaomelo commented on September 26, 2024 1

ok @MasterKale. I will try to think of a way to overcome this use of the IP. thank you very much.

from simplewebauthn.

joaomelo avatar joaomelo commented on September 26, 2024 1

For the record, I couldn't make it work with ngrok, but when I did a full publish to an internet environment, both registration and authentication went fine. Thanks again.

from simplewebauthn.

MasterKale avatar MasterKale commented on September 26, 2024

Hello @joaomelo, can you provide a couple more bits of info to help diagnose this?

  1. What is your local development URL?
  2. Can you provide the full error stack trace you're seeing in the console? There should also be a cause property on errors raised within startAuthentication() that will be any error raised by the navigator.credentials.get() call

from simplewebauthn.

joaomelo avatar joaomelo commented on September 26, 2024

Hi @MasterKale.

Thank you very much for quickly responding; I updated the issue with more context. I hope I was as able to provide the information you requested.

Best regards.
JM

from simplewebauthn.

MasterKale avatar MasterKale commented on September 26, 2024

Go to the local dev site (HTTP://192...***)

I'll bet this is the problem. WebAuthn can only be called from secure contexts which include:

Unfortunately you'll need to figure out how to get your dev instance available at one of those two forms of valid URLs - accessing it via IP address won't support use of WebAuthn.

from simplewebauthn.

spendres avatar spendres commented on September 26, 2024

@joaomelo
You can try ngrok for dev which will give you a valid https url and tunnel to your dev machine.

from simplewebauthn.

joaomelo avatar joaomelo commented on September 26, 2024

@joaomelo You can try ngrok for dev which will give you a valid https url and tunnel to your dev machine.

sure will @spendres, thank you.

from simplewebauthn.

MasterKale avatar MasterKale commented on September 26, 2024

Closing this out as it seems resolved.

from simplewebauthn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.