Terbium-135

Terbium-135

WebAuthnComponents DOMException raised

I am trying to run that library on a server behind an apache2 proxy.

So far I learned that the relying party gives an origin error as long as there is also a port number been added.
The apache2 proxy does that and since the library is coded to use the full URL:

    challenge =
      Wax.new_registration_challenge(
        attestation: attestation,
        origin: endpoint.url,
        rp_id: :auto,
        trusted_attestation_types: [:none, :basic]
      )

the registration fails.

While the registration of a key is working now I am getting another error on authentication…

Phoenix log:

[debug] HANDLE EVENT "authenticate" in MyAppWeb.AuthenticationLive
  Component: WebauthnComponents.AuthenticationComponent
  Parameters: %{"value" => ""}
[debug] Replied in 529µs
[debug] HANDLE EVENT "error" in MyAppWeb.AuthenticationLive
  Component: WebauthnComponents.AuthenticationComponent
  Parameters: %{"message" => "The operation failed for an unknown transient reason", "name" => "UnknownError", "stack" => ""}
[debug] Replied in 327µs
[warning] [unhandled_message: {MyAppWeb.AuthenticationLive, {:error, %{"message" => "The operation failed for an unknown transient reason", "name" => "UnknownError", "stack" => ""}}}]

Console log:

DOMException: The operation failed for an unknown transient reason [authentication_hook.js:82:14](https:/XXXX/deps/webauthn_components/priv/static/authentication_hook.js)
WebAuthn error: DOMException: The operation failed for an unknown transient reason

Help/hints/thoughts very much appreciated
Perhaps I am missing something simple and obvious

First Post!

type1fool

type1fool

Hey @Terbium-135, sorry I didn’t see this sooner. Thank you for reaching out for help.

This is not a helpful error. If the error is caused by the port in the URL, there may be reason to find an alternative for setting :origin.

To make sure I’m alerted to issues like this, I’d ask you to open an issue in GitHub:

That will also ensure you’re updated when comments are added and when related PRs are opened or merged.

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

Other popular topics Top

Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New

We're in Beta

About us Mission Statement