Prepare FIDO device for registration. It returns registration options for WebAuthn.
PUT
/auth/fido
curl
curl -X PUT "http://api.example.com/auth/fido" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
import requests
url = "http://api.example.com/auth/fido"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
params = {}
payload = None
response = requests.put(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
curl \
--request PUT 'http://api.example.com/auth/fido' \
--header "Authorization: $API_KEY"