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.
Hello! 👋
As of 3.4.0, this gem supports multiple allowed origins. 🎉
However:
WebAuthn.configuration.origin=is deprecated,WebAuthn.configuration.originis not.WebAuthn.configuration.origin=no longer assigns toWebAuthn.configuration.origin.Thus, calls to
WebAuthn.configuration.originare now broken (will always returnnil).I think this technically makes the switch to
WebAuthn.allowed_origins=a "breaking change." This makes sense –WebAuthn.configuration.originis 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
WebAuthn.configuration.origin(we can keepWebAuthn.configuration.origin=with the deprecation warning).