-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Description
Current state
- we have additional origins with format
android:apk-key-hash:xxxxxxto support android devices - this results in an error log e.g.
[com.yubico.webauthn.OriginMatcher] Allowed origin is not a valid URL; skipping port/subdomain matching: []
Code reference: https://github.com/Yubico/java-webauthn-server/blob/main/webauthn-server-core/src/main/java/com/yubico/webauthn/OriginMatcher.java#L37
Desired state
- The
RelyingPartyalready uses awarnlog when first setting up (see code) which is sensible - The
OriginMatchershould not log at all during the course of regular usage (inisAllowed),- At most it should be a
debuglog
- At most it should be a
In summary: warn when setting up, but not on the actual hot path
Rationale
- That same
OriginMatcherclass is happy to match for exact string match (allowedOriginString.equals(origin))),- This indicates it is not incorrect to configure such origins.
RelyingPartyonly considers the same string formats a warning (not an error)- Therefore it should not be an error in the
OriginMatcher
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels