browser

package
v2.36.15 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_TIMEOUT float64 = 300000

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BrowserType           string
	BrowserExecutablePath string
	Headless              bool
	// Setup alternative directory to download playwright browsers to
	BrowserDriverDir string
	Timeout          int
	BrowserAutoFill  bool
}

Client client for browser based Identity Provider

func New

func New(idpAccount *cfg.IDPAccount) (*Client, error)

New create new browser based client

func (*Client) Authenticate

func (cl *Client) Authenticate(loginDetails *creds.LoginDetails) (string, error)

func (*Client) Validate

func (cl *Client) Validate(loginDetails *creds.LoginDetails) error

Jump to

Keyboard shortcuts

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