Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Add support for crossOrigin/topOrigin verification during credential registration and authentication. [#486](https://github.com/cedarcode/webauthn-ruby/pull/486) [@nicolastemciuc]

### Changed

- Bump the default `credential_options_timeout` from `120_000` to `300_000` milliseconds (5 minutes). [#515](https://github.com/cedarcode/webauthn-ruby/pull/515) [@santiagorodriguez96]

### Removed

- Remove `TokenBinding` verification during credential registration and authentication. [#450](https://github.com/cedarcode/webauthn-ruby/pull/450) [@nicolastemciuc]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ WebAuthn.configure do |config|
# interaction with the user.
# This hint may be overridden by the browser.
# https://www.w3.org/TR/webauthn/#dom-publickeycredentialcreationoptions-timeout
# config.credential_options_timeout = 120_000
# config.credential_options_timeout = 300_000

# You can optionally specify a different Relying Party ID
# (https://www.w3.org/TR/webauthn/#relying-party-identifier)
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Instead of the [Global Configuration](../README.md#configuration) you place in `
# interaction with the user.
# This hint may be overridden by the browser.
# https://www.w3.org/TR/webauthn/#dom-publickeycredentialcreationoptions-timeout
# credential_options_timeout: 120_000
# credential_options_timeout: 300_000

# You can optionally specify a different Relying Party ID
# (https://www.w3.org/TR/webauthn/#relying-party-identifier)
Expand Down
2 changes: 1 addition & 1 deletion lib/webauthn/relying_party.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(
name: nil,
verify_attestation_statement: true,
verify_cross_origin: false,
credential_options_timeout: 120000,
credential_options_timeout: 300_000,
silent_authentication: false,
acceptable_attestation_types: ['None', 'Self', 'Basic', 'AttCA', 'Basic_or_AttCA', 'AnonCA'],
attestation_root_certificates_finders: [],
Expand Down
2 changes: 1 addition & 1 deletion spec/webauthn/credential_creation_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

context "client timeout" do
it "has a default client timeout" do
expect(creation_options.timeout).to(eq(120000))
expect(creation_options.timeout).to(eq(300000))
end

context "when client timeout is configured" do
Expand Down
2 changes: 1 addition & 1 deletion spec/webauthn/credential_request_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

context "client timeout" do
it "has a default client timeout" do
expect(request_options.timeout).to(eq(120000))
expect(request_options.timeout).to(eq(300000))
end

context "when client timeout is configured" do
Expand Down
4 changes: 2 additions & 2 deletions spec/webauthn/public_key_credential/creation_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

context "client timeout" do
it "has a default client timeout" do
expect(creation_options.timeout).to(eq(120000))
expect(creation_options.timeout).to(eq(300000))
end

context "when client timeout is configured" do
Expand Down Expand Up @@ -147,7 +147,7 @@
expect(hash[:pubKeyCredParams]).to eq(
[{ type: "public-key", alg: -7 }, { type: "public-key", alg: -37 }, { type: "public-key", alg: -257 }]
)
expect(hash[:timeout]).to eq(120_000)
expect(hash[:timeout]).to eq(300_000)
expect(hash[:challenge]).to be_truthy
expect(hash[:extensions]).to eq({})
expect(hash).not_to have_key(:excludeCredentials)
Expand Down
4 changes: 2 additions & 2 deletions spec/webauthn/public_key_credential/request_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

context "client timeout" do
it "has a default client timeout" do
expect(request_options.timeout).to(eq(120000))
expect(request_options.timeout).to(eq(300000))
end

context "when client timeout is configured" do
Expand Down Expand Up @@ -72,7 +72,7 @@

hash = options.as_json

expect(hash[:timeout]).to eq(120_000)
expect(hash[:timeout]).to eq(300_000)
expect(hash[:allowCredentials]).to eq([])
expect(hash[:extensions]).to eq({})
expect(hash[:challenge]).to be_truthy
Expand Down
Loading