Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/webauthn/relying_party.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def initialize(
end

attr_accessor :algorithms,
:encoding,
:allowed_origins,
:allowed_top_origins,
:id,
Expand All @@ -60,6 +59,8 @@ def initialize(
:acceptable_attestation_types,
:legacy_u2f_appid

attr_reader :encoding

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


attr_reader :attestation_root_certificates_finders

# This is the user-data encoder.
Expand All @@ -68,6 +69,13 @@ def encoder
@encoder ||= WebAuthn::Encoder.new(encoding)
end

attr_writer :encoder

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?


def encoding=(encoding)
@encoding = encoding
@encoder = nil
end

def attestation_root_certificates_finders=(finders)
if !finders.respond_to?(:each)
finders = [finders]
Expand Down
Loading