fido2 library changed its api

This commit is contained in:
iou1name 2020-04-09 07:58:29 -04:00
parent 1c3124155c
commit fab4d831a6

View File

@ -9,7 +9,8 @@ from datetime import datetime
from aiohttp import web
from fido2.client import ClientData
from fido2.server import Fido2Server, RelyingParty
from fido2.server import Fido2Server
from fido2.webauthn import PublicKeyCredentialRpEntity
from fido2.ctap2 import AttestationObject, AuthenticatorData, \
AttestedCredentialData
from fido2 import cbor
@ -17,7 +18,7 @@ from fido2 import cbor
import config
routes = web.RouteTableDef()
rp = RelyingParty(config.server_domain, 'Buckler')
rp = PublicKeyCredentialRpEntity(config.server_domain, 'Buckler')
server = Fido2Server(rp)
def auth_required(func):