cURL
curl --request POST \ --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/webauthn/register/options \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "principalId": "user_abc123" } '
{ "challengeId": "<string>", "challenge": "<string>", "rp": { "name": "<string>", "id": "<string>" }, "user": { "id": "<string>", "name": "<string>", "displayName": "<string>" }, "pubKeyCredParams": [ { "type": "<string>", "alg": 123 } ], "authenticatorSelection": { "userVerification": "required" }, "timeout": 123 }
Generate FIDO2/WebAuthn registration options for a principal. Returns a challenge and PublicKeyCredentialCreationOptions that the browser passes to navigator.credentials.create().
Developer API key
The end-user's principal ID
"user_abc123"
Registration options
Server-side challenge reference
Base64url-encoded challenge
Show child attributes