authentication

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

Package authentication enabling the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertionResponse

type AssertionResponse struct {
	Response
}

class: AuthenticatorAssertionResponse

func AssertionResponseFromJS

func AssertionResponseFromJS(value js.Value) *AssertionResponse

AssertionResponseFromJS is casting a js.Value into AssertionResponse.

func AssertionResponseFromWrapper

func AssertionResponseFromWrapper(input core.Wrapper) *AssertionResponse

AssertionResponseFromJS is casting from something that holds a js.Value into AssertionResponse.

func (*AssertionResponse) AuthenticatorData

func (_this *AssertionResponse) AuthenticatorData() *javascript.ArrayBuffer

AuthenticatorData returning attribute 'authenticatorData' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*AssertionResponse) Signature

func (_this *AssertionResponse) Signature() *javascript.ArrayBuffer

Signature returning attribute 'signature' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*AssertionResponse) UserHandle

func (_this *AssertionResponse) UserHandle() *javascript.ArrayBuffer

UserHandle returning attribute 'userHandle' with type javascript.ArrayBuffer (idl: ArrayBuffer).

type Attachment

type Attachment int

enum: AuthenticatorAttachment

const (
	Platform Attachment = iota
	CrossPlatform
)

func AttachmentFromJS

func AttachmentFromJS(value js.Value) Attachment

AttachmentFromJS is converting a javascript value into a Attachment enum value.

func (*Attachment) JSValue

func (this *Attachment) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (Attachment) Value

func (this Attachment) Value() string

Value is converting this into javascript defined string value

type AttestationConveyancePreference

type AttestationConveyancePreference int

enum: AttestationConveyancePreference

const (
	None AttestationConveyancePreference = iota
	Indirect
	Direct
)

func AttestationConveyancePreferenceFromJS

func AttestationConveyancePreferenceFromJS(value js.Value) AttestationConveyancePreference

AttestationConveyancePreferenceFromJS is converting a javascript value into a AttestationConveyancePreference enum value.

func (*AttestationConveyancePreference) JSValue

func (this *AttestationConveyancePreference) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AttestationConveyancePreference) Value

Value is converting this into javascript defined string value

type AttestationResponse

type AttestationResponse struct {
	Response
}

class: AuthenticatorAttestationResponse

func AttestationResponseFromJS

func AttestationResponseFromJS(value js.Value) *AttestationResponse

AttestationResponseFromJS is casting a js.Value into AttestationResponse.

func AttestationResponseFromWrapper

func AttestationResponseFromWrapper(input core.Wrapper) *AttestationResponse

AttestationResponseFromJS is casting from something that holds a js.Value into AttestationResponse.

func (*AttestationResponse) AttestationObject

func (_this *AttestationResponse) AttestationObject() *javascript.ArrayBuffer

AttestationObject returning attribute 'attestationObject' with type javascript.ArrayBuffer (idl: ArrayBuffer).

type AuthenticationExtensionsClientInputs

type AuthenticationExtensionsClientInputs struct {
	Appid         string
	TxAuthSimple  string
	TxAuthGeneric *TxAuthGenericArg
	AuthnSel      []*Union
	Exts          bool
	Uvi           bool
	Loc           bool
	Uvm           bool
}

dictionary: AuthenticationExtensionsClientInputs

func AuthenticationExtensionsClientInputsFromJS

func AuthenticationExtensionsClientInputsFromJS(value js.Value) *AuthenticationExtensionsClientInputs

AuthenticationExtensionsClientInputsFromJS is allocating a new AuthenticationExtensionsClientInputs object and copy all values in the value javascript object.

func (*AuthenticationExtensionsClientInputs) JSValue

JSValue is allocating a new javascript object and copy all values

type AuthenticationExtensionsClientOutputs

type AuthenticationExtensionsClientOutputs struct {
	Appid         bool
	TxAuthSimple  string
	TxAuthGeneric *javascript.ArrayBuffer
	AuthnSel      bool
	Exts          []string
	Uvi           *javascript.ArrayBuffer
	Loc           *sensor.Coordinates
	Uvm           [][]uint
}

dictionary: AuthenticationExtensionsClientOutputs

func AuthenticationExtensionsClientOutputsFromJS

func AuthenticationExtensionsClientOutputsFromJS(value js.Value) *AuthenticationExtensionsClientOutputs

AuthenticationExtensionsClientOutputsFromJS is allocating a new AuthenticationExtensionsClientOutputs object and copy all values in the value javascript object.

func (*AuthenticationExtensionsClientOutputs) JSValue

JSValue is allocating a new javascript object and copy all values

type AuthenticatorBiometricPerfBounds

type AuthenticatorBiometricPerfBounds struct {
	FAR float32
	FRR float32
}

dictionary: authenticatorBiometricPerfBounds

func AuthenticatorBiometricPerfBoundsFromJS

func AuthenticatorBiometricPerfBoundsFromJS(value js.Value) *AuthenticatorBiometricPerfBounds

AuthenticatorBiometricPerfBoundsFromJS is allocating a new AuthenticatorBiometricPerfBounds object and copy all values in the value javascript object.

func (*AuthenticatorBiometricPerfBounds) JSValue

func (_this *AuthenticatorBiometricPerfBounds) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type CollectedClientData

type CollectedClientData struct {
	Type         string
	Challenge    string
	Origin       string
	TokenBinding *TokenBinding
}

dictionary: CollectedClientData

func CollectedClientDataFromJS

func CollectedClientDataFromJS(value js.Value) *CollectedClientData

CollectedClientDataFromJS is allocating a new CollectedClientData object and copy all values in the value javascript object.

func (*CollectedClientData) JSValue

func (_this *CollectedClientData) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type Response

type Response struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: AuthenticatorResponse

func ResponseFromJS

func ResponseFromJS(value js.Value) *Response

ResponseFromJS is casting a js.Value into Response.

func ResponseFromWrapper

func ResponseFromWrapper(input core.Wrapper) *Response

ResponseFromJS is casting from something that holds a js.Value into Response.

func (*Response) ClientDataJSON

func (_this *Response) ClientDataJSON() *javascript.ArrayBuffer

ClientDataJSON returning attribute 'clientDataJSON' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*Response) JSValue

func (_this *Response) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type SelectionCriteria

type SelectionCriteria struct {
	AuthenticatorAttachment Attachment
	RequireResidentKey      bool
	UserVerification        UserVerificationRequirement
}

dictionary: AuthenticatorSelectionCriteria

func SelectionCriteriaFromJS

func SelectionCriteriaFromJS(value js.Value) *SelectionCriteria

SelectionCriteriaFromJS is allocating a new SelectionCriteria object and copy all values in the value javascript object.

func (*SelectionCriteria) JSValue

func (_this *SelectionCriteria) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type TokenBinding

type TokenBinding struct {
	Status TokenBindingStatus
	Id     string
}

dictionary: TokenBinding

func TokenBindingFromJS

func TokenBindingFromJS(value js.Value) *TokenBinding

TokenBindingFromJS is allocating a new TokenBinding object and copy all values in the value javascript object.

func (*TokenBinding) JSValue

func (_this *TokenBinding) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type TokenBindingStatus

type TokenBindingStatus int

enum: TokenBindingStatus

const (
	PresentTokenBindingStatus TokenBindingStatus = iota
	SupportedTokenBindingStatus
)

func TokenBindingStatusFromJS

func TokenBindingStatusFromJS(value js.Value) TokenBindingStatus

TokenBindingStatusFromJS is converting a javascript value into a TokenBindingStatus enum value.

func (*TokenBindingStatus) JSValue

func (this *TokenBindingStatus) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (TokenBindingStatus) Value

func (this TokenBindingStatus) Value() string

Value is converting this into javascript defined string value

type Transport

type Transport int

enum: AuthenticatorTransport

const (
	TransportUsb Transport = iota
	TransportNfc
	TransportBle
	TransportInternal
)

func TransportFromJS

func TransportFromJS(value js.Value) Transport

TransportFromJS is converting a javascript value into a Transport enum value.

func (*Transport) JSValue

func (this *Transport) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (Transport) Value

func (this Transport) Value() string

Value is converting this into javascript defined string value

type TxAuthGenericArg

type TxAuthGenericArg struct {
	ContentType string
	Content     *javascript.ArrayBuffer
}

dictionary: txAuthGenericArg

func TxAuthGenericArgFromJS

func TxAuthGenericArgFromJS(value js.Value) *TxAuthGenericArg

TxAuthGenericArgFromJS is allocating a new TxAuthGenericArg object and copy all values in the value javascript object.

func (*TxAuthGenericArg) JSValue

func (_this *TxAuthGenericArg) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

type UserVerificationRequirement

type UserVerificationRequirement int

enum: UserVerificationRequirement

const (
	Required UserVerificationRequirement = iota
	Preferred
	Discouraged
)

func UserVerificationRequirementFromJS

func UserVerificationRequirementFromJS(value js.Value) UserVerificationRequirement

UserVerificationRequirementFromJS is converting a javascript value into a UserVerificationRequirement enum value.

func (*UserVerificationRequirement) JSValue

func (this *UserVerificationRequirement) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (UserVerificationRequirement) Value

func (this UserVerificationRequirement) Value() string

Value is converting this into javascript defined string value

Jump to

Keyboard shortcuts

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