util

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package util contains some common utilities or constants that are used by multiple u2fd tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGetAssertionSuccessInWebAuthnIo

func CheckGetAssertionSuccessInWebAuthnIo(ctx context.Context, conn *chrome.Conn) error

CheckGetAssertionSuccessInWebAuthnIo checks Get Assertion succeeded by polling whether webauthn.io has redirected to the /dashboard path.

func CheckMakeCredentialSuccessInWebAuthnIo

func CheckMakeCredentialSuccessInWebAuthnIo(ctx context.Context, conn *chrome.Conn) error

CheckMakeCredentialSuccessInWebAuthnIo checks Make Credential succeeded by polling js attributes on webauthn.io.

func SetUpUserPIN

func SetUpUserPIN(ctx context.Context, cr *chrome.Chrome, PIN, password string, autosubmit bool) (*chrome.TestConn, error)

SetUpUserPIN sets up a test user with a specific PIN.

func WebAuthnInWebAuthnIo

func WebAuthnInWebAuthnIo(ctx context.Context, cr *chrome.Chrome, br *browser.Browser, authCallback func(context.Context, *uiauto.Context) error) error

WebAuthnInWebAuthnIo performs the WebAuthn procedure in the external site webauthn.io.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL