Skip to content

Commit

Permalink
tests: silence deprecation warning for fido2.features.webauthn_json_m…
Browse files Browse the repository at this point in the history
…apping.enabled

future function would change currently expected data representation

```
  You are using deprecated functionality which will change in the next major version of
  ...
  This changes the keys and values used by the webauthn data classes when accessed using
  the Mapping (dict) interface (eg. user_entity["id"] and the from_dict() methods) to be
  JSON-friendly and align with the current draft of the next WebAuthn Level specification.
  For the most part, this means that binary values (bytes) are represented as URL-safe
  base64 encoded strings instead.
```

also concerns
#13
  • Loading branch information
bodik committed Jun 9, 2023
1 parent c910521 commit 47efdd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/example_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
from flask import Flask, session, request, redirect, abort

import os
import fido2.features
fido2.features.webauthn_json_mapping.enabled = False


app = Flask(__name__, static_url_path="")
Expand Down

0 comments on commit 47efdd2

Please sign in to comment.