Plugin per la gestione delle funzionalità WebAuthn in ShogunCore

Hierarchy (View Summary)

Implements

Constructors

Properties

_category?: PluginCategory

Categoria del plugin

core: null | ShogunCore = null

Riferimento all'istanza di ShogunCore

description: string = "Provides WebAuthn authentication functionality for ShogunCore"

Descrizione opzionale del plugin

name: string = "webauthn"

Nome univoco del plugin - deve essere implementato dalle sottoclassi

version: string = "1.0.0"

Versione del plugin - deve essere implementata dalle sottoclassi

webauthn: null | Webauthn = null

Methods

  • Verifica che il plugin sia stato inizializzato prima di usare il core

    Returns ShogunCore

    L'istanza di ShogunCore non null

    Error se il plugin non è stato inizializzato

  • Private

    Assicura che il modulo WebAuthn sia inizializzato

    Returns Webauthn

  • Autentica un utente con WebAuthn

    Parameters

    • username: string

      Nome utente

    • salt: null | string

      Salt per l'autenticazione

    • Optionaloptions: any

      Opzioni per l'operazione

    Returns Promise<CredentialResult>

    Promise con il risultato dell'autenticazione

  • Distrugge il plugin e libera le risorse

    Returns void

  • Verifica se WebAuthn è supportato nel browser corrente

    Returns boolean

    true se WebAuthn è supportato, false altrimenti

  • Login with WebAuthn This is the recommended method for WebAuthn authentication

    Parameters

    • username: string

      Username

    Returns Promise<AuthResult>

    Authentication result

    Authenticates user using WebAuthn credentials. Requires browser support for WebAuthn and existing credentials.

  • Legacy method for WebAuthn login - use login() instead

    Parameters

    • username: string

    Returns Promise<AuthResult>

    Use login(username) instead

  • Register new user with WebAuthn This is the recommended method for WebAuthn registration

    Parameters

    • username: string

      Username

    Returns Promise<AuthResult>

    Registration result

    Creates a new user account using WebAuthn credentials. Requires browser support for WebAuthn.

  • Legacy method for WebAuthn signup - use signUp() instead

    Parameters

    • username: string

    Returns Promise<AuthResult>

    Use signUp(username) instead