Class

# WebAuthenticationCredential

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

This class contains the data needed for PassKey (WebAuthn) registration and authentication. You will need to store the properties in this class so that you can create a <span class="title-ref">WebAuthenticationCredential</span> object and return it during the authentication process.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                                         | Type                               | Read-Only | Shared |
|------------------------------------------------------------------------------|------------------------------------|-----------|--------|
| `AuthenticationAttempts<webauthenticationcredential.authenticationattempts>` | `Integer</api/data_types/integer>` |           |        |
| `DisplayName<webauthenticationcredential.displayname>`                       | `String</api/data_types/string>`   |           |        |
| `ID<webauthenticationcredential.id>`                                         | `String</api/data_types/string>`   |           |        |
| `PublicKey<webauthenticationcredential.publickey>`                           | `String</api/data_types/string>`   |           |        |

## Property descriptions

<div id="webauthenticationcredential.authenticationattempts">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebAuthenticationCredential.AuthenticationAttempts

**AuthenticationAttempts** As `Integer</api/data_types/integer>`

> Some PassKey authenticators increase this value with each validation attempt. Should an authenticator provide this value, the Xojo Web framework will use it to ensure tha the authenticator has not been cloned.

<div id="webauthenticationcredential.displayname">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebAuthenticationCredential.DisplayName

**DisplayName** As `String</api/data_types/string>`

> The name that will be displayed when the PassKey is used to login to a web application.

<div id="webauthenticationcredential.id">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebAuthenticationCredential.ID

**ID** As `String</api/data_types/string>`

> A unique identifier generated by the authenticator during registration which is used during authentication.

<div id="webauthenticationcredential.publickey">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebAuthenticationCredential.PublicKey

**PublicKey** As `String</api/data_types/string>`

> The Base64-encoded public key used in validating the PassKey.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | Web |
| **Operating Systems** | All |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `WebUserAuthentication</api/web/webuserauthentication>` class, PassKeys example project

</div>
