Skip to content

WebAuthn.configuration.origin readable but not assignable #481

@jas14

Description

@jas14

Hello! 👋

As of 3.4.0, this gem supports multiple allowed origins. 🎉

However:

  • While WebAuthn.configuration.origin= is deprecated, WebAuthn.configuration.origin is not.
  • WebAuthn.configuration.origin= no longer assigns to WebAuthn.configuration.origin.

Thus, calls to WebAuthn.configuration.origin are now broken (will always return nil).

I think this technically makes the switch to WebAuthn.allowed_origins= a "breaking change." This makes sense – WebAuthn.configuration.origin is nonsensical in the context of multiple allowed origins. But I think we need to communicate that to callers who may be using it.

Proposed solution

  • Remove WebAuthn.configuration.origin (we can keep WebAuthn.configuration.origin= with the deprecation warning).
  • Bump version to 4.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions