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

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
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> somethi...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New

Other popular topics Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
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
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

We're in Beta

About us Mission Statement