fido2 library changed its api
This commit is contained in:
parent
1c3124155c
commit
fab4d831a6
5
auth.py
5
auth.py
|
@ -9,7 +9,8 @@ from datetime import datetime
|
||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
from fido2.client import ClientData
|
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, \
|
from fido2.ctap2 import AttestationObject, AuthenticatorData, \
|
||||||
AttestedCredentialData
|
AttestedCredentialData
|
||||||
from fido2 import cbor
|
from fido2 import cbor
|
||||||
|
@ -17,7 +18,7 @@ from fido2 import cbor
|
||||||
import config
|
import config
|
||||||
|
|
||||||
routes = web.RouteTableDef()
|
routes = web.RouteTableDef()
|
||||||
rp = RelyingParty(config.server_domain, 'Buckler')
|
rp = PublicKeyCredentialRpEntity(config.server_domain, 'Buckler')
|
||||||
server = Fido2Server(rp)
|
server = Fido2Server(rp)
|
||||||
|
|
||||||
def auth_required(func):
|
def auth_required(func):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user