credential

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: 5 Imported by: 1

Documentation

Overview

Package credential is enabling a website to request a user’s credentials from a user agent, and to help the user agent correctly store user credentials for future use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserVerifyingPlatformAuthenticatorAvailable

func IsUserVerifyingPlatformAuthenticatorAvailable() (_result *javascript.PromiseBool)

Types

type Credential

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

class: Credential

func CredentialFromJS

func CredentialFromJS(value js.Value) *Credential

CredentialFromJS is casting a js.Value into Credential.

func CredentialFromWrapper

func CredentialFromWrapper(input core.Wrapper) *Credential

CredentialFromJS is casting from something that holds a js.Value into Credential.

func (*Credential) Id

func (_this *Credential) Id() string

Id returning attribute 'id' with type string (idl: USVString).

func (*Credential) JSValue

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

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

func (*Credential) Type

func (_this *Credential) Type() string

Type returning attribute 'type' with type string (idl: DOMString).

type CredentialCreationOptions

type CredentialCreationOptions struct {
	Signal    *domcore.AbortSignal
	Password  *Union
	Federated *FederatedCredentialInit
	PublicKey *PublicKeyCredentialCreationOptions
}

dictionary: CredentialCreationOptions

func CredentialCreationOptionsFromJS

func CredentialCreationOptionsFromJS(value js.Value) *CredentialCreationOptions

CredentialCreationOptionsFromJS is allocating a new CredentialCreationOptions object and copy all values in the value javascript object.

func (*CredentialCreationOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type CredentialData

type CredentialData struct {
	Id string
}

dictionary: CredentialData

func CredentialDataFromJS

func CredentialDataFromJS(value js.Value) *CredentialData

CredentialDataFromJS is allocating a new CredentialData object and copy all values in the value javascript object.

func (*CredentialData) JSValue

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

JSValue is allocating a new javascript object and copy all values

type CredentialMediationRequirement

type CredentialMediationRequirement int

enum: CredentialMediationRequirement

const (
	SilentCredentialMediationRequirement CredentialMediationRequirement = iota
	OptionalCredentialMediationRequirement
	RequiredCredentialMediationRequirement
)

func CredentialMediationRequirementFromJS

func CredentialMediationRequirementFromJS(value js.Value) CredentialMediationRequirement

CredentialMediationRequirementFromJS is converting a javascript value into a CredentialMediationRequirement enum value.

func (*CredentialMediationRequirement) JSValue

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

JSValue is converting this enum into a javascript object

func (CredentialMediationRequirement) Value

Value is converting this into javascript defined string value

type CredentialRequestOptions

type CredentialRequestOptions struct {
	Mediation CredentialMediationRequirement
	Signal    *domcore.AbortSignal
	Password  bool
	Federated *FederatedCredentialRequestOptions
	PublicKey *PublicKeyCredentialRequestOptions
}

dictionary: CredentialRequestOptions

func CredentialRequestOptionsFromJS

func CredentialRequestOptionsFromJS(value js.Value) *CredentialRequestOptions

CredentialRequestOptionsFromJS is allocating a new CredentialRequestOptions object and copy all values in the value javascript object.

func (*CredentialRequestOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type CredentialsContainer

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

class: CredentialsContainer

func CredentialsContainerFromJS

func CredentialsContainerFromJS(value js.Value) *CredentialsContainer

CredentialsContainerFromJS is casting a js.Value into CredentialsContainer.

func CredentialsContainerFromWrapper

func CredentialsContainerFromWrapper(input core.Wrapper) *CredentialsContainer

CredentialsContainerFromJS is casting from something that holds a js.Value into CredentialsContainer.

func (*CredentialsContainer) Create

func (_this *CredentialsContainer) Create(options *CredentialCreationOptions) (_result *PromiseNilCredential)

func (*CredentialsContainer) Get

func (_this *CredentialsContainer) Get(options *CredentialRequestOptions) (_result *PromiseNilCredential)

func (*CredentialsContainer) JSValue

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

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

func (*CredentialsContainer) PreventSilentAccess

func (_this *CredentialsContainer) PreventSilentAccess() (_result *javascript.PromiseVoid)

func (*CredentialsContainer) Store

func (_this *CredentialsContainer) Store(credential *Credential) (_result *PromiseCredential)

type FederatedCredential

type FederatedCredential struct {
	Credential
}

class: FederatedCredential

func FederatedCredentialFromJS

func FederatedCredentialFromJS(value js.Value) *FederatedCredential

FederatedCredentialFromJS is casting a js.Value into FederatedCredential.

func FederatedCredentialFromWrapper

func FederatedCredentialFromWrapper(input core.Wrapper) *FederatedCredential

FederatedCredentialFromJS is casting from something that holds a js.Value into FederatedCredential.

func NewFederatedCredential

func NewFederatedCredential(data *FederatedCredentialInit) (_result *FederatedCredential)

func (*FederatedCredential) IconURL

func (_this *FederatedCredential) IconURL() string

IconURL returning attribute 'iconURL' with type string (idl: USVString).

func (*FederatedCredential) Name

func (_this *FederatedCredential) Name() string

Name returning attribute 'name' with type string (idl: USVString).

func (*FederatedCredential) Protocol

func (_this *FederatedCredential) Protocol() *string

Protocol returning attribute 'protocol' with type string (idl: DOMString).

func (*FederatedCredential) Provider

func (_this *FederatedCredential) Provider() string

Provider returning attribute 'provider' with type string (idl: USVString).

type FederatedCredentialInit

type FederatedCredentialInit struct {
	Id       string
	Name     string
	IconURL  string
	Origin   string
	Provider string
	Protocol string
}

dictionary: FederatedCredentialInit

func FederatedCredentialInitFromJS

func FederatedCredentialInitFromJS(value js.Value) *FederatedCredentialInit

FederatedCredentialInitFromJS is allocating a new FederatedCredentialInit object and copy all values in the value javascript object.

func (*FederatedCredentialInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type FederatedCredentialRequestOptions

type FederatedCredentialRequestOptions struct {
	Providers []string
	Protocols []string
}

dictionary: FederatedCredentialRequestOptions

func FederatedCredentialRequestOptionsFromJS

func FederatedCredentialRequestOptionsFromJS(value js.Value) *FederatedCredentialRequestOptions

FederatedCredentialRequestOptionsFromJS is allocating a new FederatedCredentialRequestOptions object and copy all values in the value javascript object.

func (*FederatedCredentialRequestOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PasswordCredential

type PasswordCredential struct {
	Credential
}

class: PasswordCredential

func NewPasswordCredential

func NewPasswordCredential(data *PasswordCredentialData) (_result *PasswordCredential)

func PasswordCredentialFromJS

func PasswordCredentialFromJS(value js.Value) *PasswordCredential

PasswordCredentialFromJS is casting a js.Value into PasswordCredential.

func PasswordCredentialFromWrapper

func PasswordCredentialFromWrapper(input core.Wrapper) *PasswordCredential

PasswordCredentialFromJS is casting from something that holds a js.Value into PasswordCredential.

func (*PasswordCredential) IconURL

func (_this *PasswordCredential) IconURL() string

IconURL returning attribute 'iconURL' with type string (idl: USVString).

func (*PasswordCredential) Name

func (_this *PasswordCredential) Name() string

Name returning attribute 'name' with type string (idl: USVString).

func (*PasswordCredential) Password

func (_this *PasswordCredential) Password() string

Password returning attribute 'password' with type string (idl: USVString).

type PasswordCredentialData

type PasswordCredentialData struct {
	Id       string
	Name     string
	IconURL  string
	Origin   string
	Password string
}

dictionary: PasswordCredentialData

func PasswordCredentialDataFromJS

func PasswordCredentialDataFromJS(value js.Value) *PasswordCredentialData

PasswordCredentialDataFromJS is allocating a new PasswordCredentialData object and copy all values in the value javascript object.

func (*PasswordCredentialData) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PromiseCredential

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

class: Promise

func PromiseCredentialFromJS

func PromiseCredentialFromJS(value js.Value) *PromiseCredential

PromiseCredentialFromJS is casting a js.Value into PromiseCredential.

func PromiseCredentialFromWrapper

func PromiseCredentialFromWrapper(input core.Wrapper) *PromiseCredential

PromiseCredentialFromJS is casting from something that holds a js.Value into PromiseCredential.

func (*PromiseCredential) Catch

func (_this *PromiseCredential) Catch(onRejected *PromiseCredentialOnRejected) (_result *PromiseCredential)

func (*PromiseCredential) Finally

func (_this *PromiseCredential) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCredential)

func (*PromiseCredential) JSValue

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

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

func (*PromiseCredential) Then

func (_this *PromiseCredential) Then(onFulfilled *PromiseCredentialOnFulfilled, onRejected *PromiseCredentialOnRejected) (_result *PromiseCredential)

type PromiseCredentialOnFulfilled

type PromiseCredentialOnFulfilled js.Func

PromiseCredentialOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseCredentialOnFulfilledFunc

type PromiseCredentialOnFulfilledFunc func(value *Credential)

callback: PromiseTemplateOnFulfilled

func PromiseCredentialOnFulfilledFromJS

func PromiseCredentialOnFulfilledFromJS(_value js.Value) PromiseCredentialOnFulfilledFunc

type PromiseCredentialOnRejected

type PromiseCredentialOnRejected js.Func

PromiseCredentialOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseCredentialOnRejectedFunc

type PromiseCredentialOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseCredentialOnRejectedFromJS

func PromiseCredentialOnRejectedFromJS(_value js.Value) PromiseCredentialOnRejectedFunc

type PromiseNilCredential

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

class: Promise

func PromiseNilCredentialFromJS

func PromiseNilCredentialFromJS(value js.Value) *PromiseNilCredential

PromiseNilCredentialFromJS is casting a js.Value into PromiseNilCredential.

func PromiseNilCredentialFromWrapper

func PromiseNilCredentialFromWrapper(input core.Wrapper) *PromiseNilCredential

PromiseNilCredentialFromJS is casting from something that holds a js.Value into PromiseNilCredential.

func (*PromiseNilCredential) Catch

func (_this *PromiseNilCredential) Catch(onRejected *PromiseNilCredentialOnRejected) (_result *PromiseNilCredential)

func (*PromiseNilCredential) Finally

func (_this *PromiseNilCredential) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilCredential)

func (*PromiseNilCredential) JSValue

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

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

func (*PromiseNilCredential) Then

type PromiseNilCredentialOnFulfilled

type PromiseNilCredentialOnFulfilled js.Func

PromiseNilCredentialOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseNilCredentialOnFulfilledFunc

type PromiseNilCredentialOnFulfilledFunc func(value *Credential)

callback: PromiseTemplateOnFulfilled

func PromiseNilCredentialOnFulfilledFromJS

func PromiseNilCredentialOnFulfilledFromJS(_value js.Value) PromiseNilCredentialOnFulfilledFunc

type PromiseNilCredentialOnRejected

type PromiseNilCredentialOnRejected js.Func

PromiseNilCredentialOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseNilCredentialOnRejectedFunc

type PromiseNilCredentialOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseNilCredentialOnRejectedFromJS

func PromiseNilCredentialOnRejectedFromJS(_value js.Value) PromiseNilCredentialOnRejectedFunc

type PublicKeyCredential

type PublicKeyCredential struct {
	Credential
}

class: PublicKeyCredential

func PublicKeyCredentialFromJS

func PublicKeyCredentialFromJS(value js.Value) *PublicKeyCredential

PublicKeyCredentialFromJS is casting a js.Value into PublicKeyCredential.

func PublicKeyCredentialFromWrapper

func PublicKeyCredentialFromWrapper(input core.Wrapper) *PublicKeyCredential

PublicKeyCredentialFromJS is casting from something that holds a js.Value into PublicKeyCredential.

func (*PublicKeyCredential) GetClientExtensionResults

func (_this *PublicKeyCredential) GetClientExtensionResults() (_result *authentication.AuthenticationExtensionsClientOutputs)

func (*PublicKeyCredential) RawId

func (_this *PublicKeyCredential) RawId() *javascript.ArrayBuffer

RawId returning attribute 'rawId' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*PublicKeyCredential) Response

func (_this *PublicKeyCredential) Response() *authentication.Response

Response returning attribute 'response' with type authentication.Response (idl: AuthenticatorResponse).

type PublicKeyCredentialCreationOptions

type PublicKeyCredentialCreationOptions struct {
	Rp                     *PublicKeyCredentialRpEntity
	User                   *PublicKeyCredentialUserEntity
	Challenge              *Union
	PubKeyCredParams       []*PublicKeyCredentialParameters
	Timeout                uint
	ExcludeCredentials     []*PublicKeyCredentialDescriptor
	AuthenticatorSelection *authentication.SelectionCriteria
	Attestation            authentication.AttestationConveyancePreference
	Extensions             *authentication.AuthenticationExtensionsClientInputs
}

dictionary: PublicKeyCredentialCreationOptions

func PublicKeyCredentialCreationOptionsFromJS

func PublicKeyCredentialCreationOptionsFromJS(value js.Value) *PublicKeyCredentialCreationOptions

PublicKeyCredentialCreationOptionsFromJS is allocating a new PublicKeyCredentialCreationOptions object and copy all values in the value javascript object.

func (*PublicKeyCredentialCreationOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PublicKeyCredentialDescriptor

type PublicKeyCredentialDescriptor struct {
	Type       PublicKeyCredentialType
	Id         *Union
	Transports []authentication.Transport
}

dictionary: PublicKeyCredentialDescriptor

func PublicKeyCredentialDescriptorFromJS

func PublicKeyCredentialDescriptorFromJS(value js.Value) *PublicKeyCredentialDescriptor

PublicKeyCredentialDescriptorFromJS is allocating a new PublicKeyCredentialDescriptor object and copy all values in the value javascript object.

func (*PublicKeyCredentialDescriptor) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PublicKeyCredentialEntity

type PublicKeyCredentialEntity struct {
	Name string
	Icon string
}

dictionary: PublicKeyCredentialEntity

func PublicKeyCredentialEntityFromJS

func PublicKeyCredentialEntityFromJS(value js.Value) *PublicKeyCredentialEntity

PublicKeyCredentialEntityFromJS is allocating a new PublicKeyCredentialEntity object and copy all values in the value javascript object.

func (*PublicKeyCredentialEntity) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PublicKeyCredentialParameters

type PublicKeyCredentialParameters struct {
	Type PublicKeyCredentialType
	Alg  int
}

dictionary: PublicKeyCredentialParameters

func PublicKeyCredentialParametersFromJS

func PublicKeyCredentialParametersFromJS(value js.Value) *PublicKeyCredentialParameters

PublicKeyCredentialParametersFromJS is allocating a new PublicKeyCredentialParameters object and copy all values in the value javascript object.

func (*PublicKeyCredentialParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PublicKeyCredentialRequestOptions

type PublicKeyCredentialRequestOptions struct {
	Challenge        *Union
	Timeout          uint
	RpId             string
	AllowCredentials []*PublicKeyCredentialDescriptor
	UserVerification authentication.UserVerificationRequirement
	Extensions       *authentication.AuthenticationExtensionsClientInputs
}

dictionary: PublicKeyCredentialRequestOptions

func PublicKeyCredentialRequestOptionsFromJS

func PublicKeyCredentialRequestOptionsFromJS(value js.Value) *PublicKeyCredentialRequestOptions

PublicKeyCredentialRequestOptionsFromJS is allocating a new PublicKeyCredentialRequestOptions object and copy all values in the value javascript object.

func (*PublicKeyCredentialRequestOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PublicKeyCredentialRpEntity

type PublicKeyCredentialRpEntity struct {
	Name string
	Icon string
	Id   string
}

dictionary: PublicKeyCredentialRpEntity

func PublicKeyCredentialRpEntityFromJS

func PublicKeyCredentialRpEntityFromJS(value js.Value) *PublicKeyCredentialRpEntity

PublicKeyCredentialRpEntityFromJS is allocating a new PublicKeyCredentialRpEntity object and copy all values in the value javascript object.

func (*PublicKeyCredentialRpEntity) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PublicKeyCredentialType

type PublicKeyCredentialType int

enum: PublicKeyCredentialType

const (
	PublicKeyPublicKeyCredentialType PublicKeyCredentialType = iota
)

func PublicKeyCredentialTypeFromJS

func PublicKeyCredentialTypeFromJS(value js.Value) PublicKeyCredentialType

PublicKeyCredentialTypeFromJS is converting a javascript value into a PublicKeyCredentialType enum value.

func (*PublicKeyCredentialType) JSValue

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

JSValue is converting this enum into a javascript object

func (PublicKeyCredentialType) Value

func (this PublicKeyCredentialType) Value() string

Value is converting this into javascript defined string value

type PublicKeyCredentialUserEntity

type PublicKeyCredentialUserEntity struct {
	Name        string
	Icon        string
	Id          *Union
	DisplayName string
}

dictionary: PublicKeyCredentialUserEntity

func PublicKeyCredentialUserEntityFromJS

func PublicKeyCredentialUserEntityFromJS(value js.Value) *PublicKeyCredentialUserEntity

PublicKeyCredentialUserEntityFromJS is allocating a new PublicKeyCredentialUserEntity object and copy all values in the value javascript object.

func (*PublicKeyCredentialUserEntity) JSValue

func (_this *PublicKeyCredentialUserEntity) 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

Jump to

Keyboard shortcuts

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