composite

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompositeDeviceVerifier

func NewCompositeDeviceVerifier(verifiers map[client.DeviceType]device.Verifier) device.Verifier

NewCompositeDeviceVerifier returns a new device.Verifier that intelligently selects device.Verifier instance to verify a token using the client's user agent. It also provides a layer of protection against replay attacks by enforcing a single use per token value.

If an unknown device type is detected, or no device.Verifier is registered, then the device is deemed invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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