92 lines
9.1 KiB
HTML
92 lines
9.1 KiB
HTML
<!DOCTYPE html SYSTEM "about:legacy-compat">
|
|
<html lang="en-US" data-preset="contrast" data-primary-color="#307FFF"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="robots" content="noindex"><meta name="built-on" content="2026-03-17T15:41:28.697519897"><title>Initiate passkey authentication challenge | Copenhagen Truck Wash API</title><script type="application/json" id="virtual-toc-data">[{"id":"endpoint","level":0,"title":"Endpoint","anchor":"#endpoint"},{"id":"operation","level":0,"title":"Operation","anchor":"#operation"},{"id":"authentication","level":0,"title":"Authentication","anchor":"#authentication"},{"id":"request-body","level":0,"title":"Request Body","anchor":"#request-body"},{"id":"responses","level":0,"title":"Responses","anchor":"#responses"}]</script><script type="application/json" id="topic-shortcuts"></script><link href="https://resources.jetbrains.com/writerside/apidoc/6.26.0-b913/app.css" rel="stylesheet"><meta name="msapplication-TileColor" content="#000000"><link rel="apple-touch-icon" sizes="180x180" href="https://jetbrains.com/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="https://jetbrains.com/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="https://jetbrains.com/favicon-16x16.png"><meta name="msapplication-TileImage" content="https://resources.jetbrains.com/storage/ui/favicons/mstile-144x144.png"><meta name="msapplication-square70x70logo" content="https://resources.jetbrains.com/storage/ui/favicons/mstile-70x70.png"><meta name="msapplication-square150x150logo" content="https://resources.jetbrains.com/storage/ui/favicons/mstile-150x150.png"><meta name="msapplication-wide310x150logo" content="https://resources.jetbrains.com/storage/ui/favicons/mstile-310x150.png"><meta name="msapplication-square310x310logo" content="https://resources.jetbrains.com/storage/ui/favicons/mstile-310x310.png"><meta name="image" content=""><!-- Open Graph --><meta property="og:title" content="Initiate passkey authentication challenge | Copenhagen Truck Wash API"><meta property="og:description" content=""><meta property="og:image" content=""><meta property="og:site_name" content="Copenhagen Truck Wash API Help"><meta property="og:type" content="website"><meta property="og:locale" content="en_US"><meta property="og:url" content="writerside-documentation/passkeychallenge.html"><!-- End Open Graph --><!-- Twitter Card --><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content=""><meta name="twitter:title" content="Initiate passkey authentication challenge | Copenhagen Truck Wash API"><meta name="twitter:description" content=""><meta name="twitter:creator" content=""><meta name="twitter:image:src" content=""><!-- End Twitter Card --><!-- Schema.org WebPage --><script type="application/ld+json">{
|
|
"@context": "http://schema.org",
|
|
"@type": "WebPage",
|
|
"@id": "writerside-documentation/passkeychallenge.html#webpage",
|
|
"url": "writerside-documentation/passkeychallenge.html",
|
|
"name": "Initiate passkey authentication challenge | Copenhagen Truck Wash API",
|
|
"description": "",
|
|
"image": "",
|
|
"inLanguage":"en-US"
|
|
}</script><!-- End Schema.org --><!-- Schema.org WebSite --><script type="application/ld+json">{
|
|
"@type": "WebSite",
|
|
"@id": "writerside-documentation/#website",
|
|
"url": "writerside-documentation/",
|
|
"name": "Copenhagen Truck Wash API Help"
|
|
}</script><!-- End Schema.org --></head><body data-id="passkeyChallenge" data-main-title="Initiate passkey authentication challenge" data-article-props="{"seeAlsoStyle":"links"}" data-template="article" data-breadcrumbs="API-Reference.topic|API Reference///Tag_Authentication.topic|Authentication///Tag_Authentication_Page_1.topic|Authentication - Page 1 of 1"><div class="wrapper"><main class="panel _main"><header class="panel__header"><div class="container"><h3>Copenhagen Truck Wash API Help</h3><div class="panel-trigger"></div></div></header><section class="panel__content"><div class="container"><article class="article" data-shortcut-switcher="inactive"><h1 data-toc="passkeyChallenge" id="passkeyChallenge.topic">Initiate passkey authentication challenge</h1><p id="z2oj80l_2">This endpoint documentation is generated directly from <code class="code" id="z2oj80l_8">openapi.yaml</code>.</p><section class="chapter"><h2 id="endpoint" data-toc="endpoint">Endpoint</h2><div class="code-block" data-lang="http">POST /auth/passkey/challenge</div></section><section class="chapter"><h2 id="operation" data-toc="operation">Operation</h2><p id="z2oj80l_10">Operation ID: <code class="code" id="z2oj80l_12">passkeyChallenge</code></p><p id="z2oj80l_11">Generates a WebAuthn PublicKeyCredentialRequestOptions payload. If customer_number is provided, allowCredentials will be populated with existing passkeys for that account. Otherwise, a challenge is issued for discoverable credentials.</p></section><section class="chapter"><h2 id="authentication" data-toc="authentication">Authentication</h2><p id="z2oj80l_13">No authentication required.</p></section><section class="chapter"><h2 id="request-body" data-toc="request-body">Request Body</h2><p id="z2oj80l_14">Required: yes.</p><p id="z2oj80l_15">Content type: <code class="code" id="z2oj80l_17">application/json</code></p><div class="code-block" data-lang="json">
|
|
{
|
|
"properties": {
|
|
"customer_number": {
|
|
"description": "Optional customer's e-conomic customer number",
|
|
"example": 12345,
|
|
"type": "integer"
|
|
},
|
|
"g_recaptcha_response": {
|
|
"description": "reCAPTCHA verification token",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"g_recaptcha_response"
|
|
],
|
|
"type": "object"
|
|
}
|
|
</div></section><section class="chapter"><h2 id="responses" data-toc="responses">Responses</h2><div class="table-wrapper"><table class="wide" id="z2oj80l_18"><thead><tr class="ijRowHead" id="z2oj80l_21"><th id="z2oj80l_24"><p>Status</p></th><th id="z2oj80l_25"><p>Description</p></th><th id="z2oj80l_26"><p>Content Types</p></th></tr></thead><tbody><tr id="z2oj80l_22"><td id="z2oj80l_27"><p>200</p></td><td id="z2oj80l_28"><p>Challenge generated</p></td><td id="z2oj80l_29"><p>application/json</p></td></tr><tr id="z2oj80l_23"><td id="z2oj80l_30"><p>400</p></td><td id="z2oj80l_31"></td><td id="z2oj80l_32"></td></tr></tbody></table></div><p id="z2oj80l_19">Schema for response <code class="code" id="z2oj80l_33">200</code> (<code class="code" id="z2oj80l_34">application/json</code>):</p><div class="code-block" data-lang="json">
|
|
{
|
|
"properties": {
|
|
"challenge_token": {
|
|
"description": "Temporary token binding the challenge to the login attempt",
|
|
"type": "string"
|
|
},
|
|
"publicKey": {
|
|
"properties": {
|
|
"allowCredentials": {
|
|
"items": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "Base64URL-encoded credential ID",
|
|
"type": "string"
|
|
},
|
|
"transports": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"type": {
|
|
"example": "public-key",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"challenge": {
|
|
"description": "Base64URL-encoded challenge",
|
|
"type": "string"
|
|
},
|
|
"rpId": {
|
|
"description": "Relying party ID (truckwash.io or localhost)",
|
|
"example": "truckwash.io",
|
|
"type": "string"
|
|
},
|
|
"timeout": {
|
|
"description": "Timeout in milliseconds",
|
|
"type": "integer"
|
|
},
|
|
"userVerification": {
|
|
"enum": [
|
|
"required",
|
|
"preferred",
|
|
"discouraged"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
</div></section><div class="last-modified">17 March 2026</div><div data-feedback-placeholder="true"></div><div class="navigation-links _bottom"><a href="logout.html" class="navigation-links__prev">Logout</a><a href="passkeyverify.html" class="navigation-links__next">Verify passkey authentication and start session</a></div></article><div id="disqus_thread"></div></div></section></main></div><script src="https://resources.jetbrains.com/writerside/apidoc/6.26.0-b913/app.js"></script></body></html> |