Class: Hanko::Api::Admin::WebauthnCredentials

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/hanko/api/admin/webauthn_credentials.rb

Overview

Admin resource for managing a user’s WebAuthn credentials. Inherits list, get, create, update, delete from BaseResource.

Instance Method Summary collapse

Methods inherited from BaseResource

#create, #delete, #get, #list, #update

Constructor Details

#initialize(connection, user_base_path) ⇒ WebauthnCredentials

Initialize the WebAuthn credentials resource scoped to a user.

Parameters:

  • the HTTP connection to use

  • the base path for the parent user (e.g. “/users/:id”)



14
15
16
# File 'lib/hanko/api/admin/webauthn_credentials.rb', line 14

def initialize(connection, user_base_path)
  super(connection, "#{user_base_path}/webauthn_credentials")
end