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 ¶
- func IsUserVerifyingPlatformAuthenticatorAvailable() (_result *javascript.PromiseBool)
- type Credential
- type CredentialCreationOptions
- type CredentialData
- type CredentialMediationRequirement
- type CredentialRequestOptions
- type CredentialsContainer
- func (_this *CredentialsContainer) Create(options *CredentialCreationOptions) (_result *PromiseNilCredential)
- func (_this *CredentialsContainer) Get(options *CredentialRequestOptions) (_result *PromiseNilCredential)
- func (_this *CredentialsContainer) JSValue() js.Value
- func (_this *CredentialsContainer) PreventSilentAccess() (_result *javascript.PromiseVoid)
- func (_this *CredentialsContainer) Store(credential *Credential) (_result *PromiseCredential)
- type FederatedCredential
- type FederatedCredentialInit
- type FederatedCredentialRequestOptions
- type PasswordCredential
- type PasswordCredentialData
- type PromiseCredential
- func (_this *PromiseCredential) Catch(onRejected *PromiseCredentialOnRejected) (_result *PromiseCredential)
- func (_this *PromiseCredential) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCredential)
- func (_this *PromiseCredential) JSValue() js.Value
- func (_this *PromiseCredential) Then(onFulfilled *PromiseCredentialOnFulfilled, ...) (_result *PromiseCredential)
- type PromiseCredentialOnFulfilled
- type PromiseCredentialOnFulfilledFunc
- type PromiseCredentialOnRejected
- type PromiseCredentialOnRejectedFunc
- type PromiseNilCredential
- func (_this *PromiseNilCredential) Catch(onRejected *PromiseNilCredentialOnRejected) (_result *PromiseNilCredential)
- func (_this *PromiseNilCredential) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilCredential)
- func (_this *PromiseNilCredential) JSValue() js.Value
- func (_this *PromiseNilCredential) Then(onFulfilled *PromiseNilCredentialOnFulfilled, ...) (_result *PromiseNilCredential)
- type PromiseNilCredentialOnFulfilled
- type PromiseNilCredentialOnFulfilledFunc
- type PromiseNilCredentialOnRejected
- type PromiseNilCredentialOnRejectedFunc
- type PublicKeyCredential
- type PublicKeyCredentialCreationOptions
- type PublicKeyCredentialDescriptor
- type PublicKeyCredentialEntity
- type PublicKeyCredentialParameters
- type PublicKeyCredentialRequestOptions
- type PublicKeyCredentialRpEntity
- type PublicKeyCredentialType
- type PublicKeyCredentialUserEntity
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUserVerifyingPlatformAuthenticatorAvailable ¶
func IsUserVerifyingPlatformAuthenticatorAvailable() (_result *javascript.PromiseBool)
Types ¶
type Credential ¶
class: Credential
func CredentialFromJS ¶
func CredentialFromJS(value js.Wrapper) *Credential
CredentialFromJS is casting a js.Wrapper 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
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.Wrapper) *CredentialCreationOptions
CredentialCreationOptionsFromJS is allocating a new CredentialCreationOptions object and copy all values from input javascript object
func (*CredentialCreationOptions) JSValue ¶
func (_this *CredentialCreationOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type CredentialData ¶
type CredentialData struct {
Id string
}
dictionary: CredentialData
func CredentialDataFromJS ¶
func CredentialDataFromJS(value js.Wrapper) *CredentialData
CredentialDataFromJS is allocating a new CredentialData object and copy all values from input javascript object
func (*CredentialData) JSValue ¶
func (_this *CredentialData) JSValue() js.Value
JSValue is allocating a new javasript 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 ¶
func (this CredentialMediationRequirement) Value() string
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.Wrapper) *CredentialRequestOptions
CredentialRequestOptionsFromJS is allocating a new CredentialRequestOptions object and copy all values from input javascript object
func (*CredentialRequestOptions) JSValue ¶
func (_this *CredentialRequestOptions) JSValue() js.Value
JSValue is allocating a new javasript 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.Wrapper) *CredentialsContainer
CredentialsContainerFromJS is casting a js.Wrapper 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
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.Wrapper) *FederatedCredential
FederatedCredentialFromJS is casting a js.Wrapper 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.Wrapper) *FederatedCredentialInit
FederatedCredentialInitFromJS is allocating a new FederatedCredentialInit object and copy all values from input javascript object
func (*FederatedCredentialInit) JSValue ¶
func (_this *FederatedCredentialInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type FederatedCredentialRequestOptions ¶
dictionary: FederatedCredentialRequestOptions
func FederatedCredentialRequestOptionsFromJS ¶
func FederatedCredentialRequestOptionsFromJS(value js.Wrapper) *FederatedCredentialRequestOptions
FederatedCredentialRequestOptionsFromJS is allocating a new FederatedCredentialRequestOptions object and copy all values from input javascript object
func (*FederatedCredentialRequestOptions) JSValue ¶
func (_this *FederatedCredentialRequestOptions) JSValue() js.Value
JSValue is allocating a new javasript 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.Wrapper) *PasswordCredential
PasswordCredentialFromJS is casting a js.Wrapper 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.Wrapper) *PasswordCredentialData
PasswordCredentialDataFromJS is allocating a new PasswordCredentialData object and copy all values from input javascript object
func (*PasswordCredentialData) JSValue ¶
func (_this *PasswordCredentialData) JSValue() js.Value
JSValue is allocating a new javasript 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.Wrapper) *PromiseCredential
PromiseCredentialFromJS is casting a js.Wrapper 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
func (*PromiseCredential) Then ¶
func (_this *PromiseCredential) Then(onFulfilled *PromiseCredentialOnFulfilled, onRejected *PromiseCredentialOnRejected) (_result *PromiseCredential)
type PromiseCredentialOnFulfilled ¶
PromiseCredentialOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseCredentialOnFulfilledToJS ¶
func PromiseCredentialOnFulfilledToJS(callback PromiseCredentialOnFulfilledFunc) *PromiseCredentialOnFulfilled
type PromiseCredentialOnFulfilledFunc ¶
type PromiseCredentialOnFulfilledFunc func(value *Credential)
callback: PromiseTemplateOnFulfilled
func PromiseCredentialOnFulfilledFromJS ¶
func PromiseCredentialOnFulfilledFromJS(_value js.Value) PromiseCredentialOnFulfilledFunc
type PromiseCredentialOnRejected ¶
PromiseCredentialOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseCredentialOnRejectedToJS ¶
func PromiseCredentialOnRejectedToJS(callback PromiseCredentialOnRejectedFunc) *PromiseCredentialOnRejected
type PromiseCredentialOnRejectedFunc ¶
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.Wrapper) *PromiseNilCredential
PromiseNilCredentialFromJS is casting a js.Wrapper 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
func (*PromiseNilCredential) Then ¶
func (_this *PromiseNilCredential) Then(onFulfilled *PromiseNilCredentialOnFulfilled, onRejected *PromiseNilCredentialOnRejected) (_result *PromiseNilCredential)
type PromiseNilCredentialOnFulfilled ¶
PromiseNilCredentialOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilCredentialOnFulfilledToJS ¶
func PromiseNilCredentialOnFulfilledToJS(callback PromiseNilCredentialOnFulfilledFunc) *PromiseNilCredentialOnFulfilled
type PromiseNilCredentialOnFulfilledFunc ¶
type PromiseNilCredentialOnFulfilledFunc func(value *Credential)
callback: PromiseTemplateOnFulfilled
func PromiseNilCredentialOnFulfilledFromJS ¶
func PromiseNilCredentialOnFulfilledFromJS(_value js.Value) PromiseNilCredentialOnFulfilledFunc
type PromiseNilCredentialOnRejected ¶
PromiseNilCredentialOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilCredentialOnRejectedToJS ¶
func PromiseNilCredentialOnRejectedToJS(callback PromiseNilCredentialOnRejectedFunc) *PromiseNilCredentialOnRejected
type PromiseNilCredentialOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseNilCredentialOnRejectedFromJS ¶
func PromiseNilCredentialOnRejectedFromJS(_value js.Value) PromiseNilCredentialOnRejectedFunc
type PublicKeyCredential ¶
type PublicKeyCredential struct {
Credential
}
class: PublicKeyCredential
func PublicKeyCredentialFromJS ¶
func PublicKeyCredentialFromJS(value js.Wrapper) *PublicKeyCredential
PublicKeyCredentialFromJS is casting a js.Wrapper 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.Wrapper) *PublicKeyCredentialCreationOptions
PublicKeyCredentialCreationOptionsFromJS is allocating a new PublicKeyCredentialCreationOptions object and copy all values from input javascript object
func (*PublicKeyCredentialCreationOptions) JSValue ¶
func (_this *PublicKeyCredentialCreationOptions) JSValue() js.Value
JSValue is allocating a new javasript 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.Wrapper) *PublicKeyCredentialDescriptor
PublicKeyCredentialDescriptorFromJS is allocating a new PublicKeyCredentialDescriptor object and copy all values from input javascript object
func (*PublicKeyCredentialDescriptor) JSValue ¶
func (_this *PublicKeyCredentialDescriptor) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PublicKeyCredentialEntity ¶
dictionary: PublicKeyCredentialEntity
func PublicKeyCredentialEntityFromJS ¶
func PublicKeyCredentialEntityFromJS(value js.Wrapper) *PublicKeyCredentialEntity
PublicKeyCredentialEntityFromJS is allocating a new PublicKeyCredentialEntity object and copy all values from input javascript object
func (*PublicKeyCredentialEntity) JSValue ¶
func (_this *PublicKeyCredentialEntity) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PublicKeyCredentialParameters ¶
type PublicKeyCredentialParameters struct { Type PublicKeyCredentialType Alg int }
dictionary: PublicKeyCredentialParameters
func PublicKeyCredentialParametersFromJS ¶
func PublicKeyCredentialParametersFromJS(value js.Wrapper) *PublicKeyCredentialParameters
PublicKeyCredentialParametersFromJS is allocating a new PublicKeyCredentialParameters object and copy all values from input javascript object
func (*PublicKeyCredentialParameters) JSValue ¶
func (_this *PublicKeyCredentialParameters) JSValue() js.Value
JSValue is allocating a new javasript 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.Wrapper) *PublicKeyCredentialRequestOptions
PublicKeyCredentialRequestOptionsFromJS is allocating a new PublicKeyCredentialRequestOptions object and copy all values from input javascript object
func (*PublicKeyCredentialRequestOptions) JSValue ¶
func (_this *PublicKeyCredentialRequestOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PublicKeyCredentialRpEntity ¶
dictionary: PublicKeyCredentialRpEntity
func PublicKeyCredentialRpEntityFromJS ¶
func PublicKeyCredentialRpEntityFromJS(value js.Wrapper) *PublicKeyCredentialRpEntity
PublicKeyCredentialRpEntityFromJS is allocating a new PublicKeyCredentialRpEntity object and copy all values from input javascript object
func (*PublicKeyCredentialRpEntity) JSValue ¶
func (_this *PublicKeyCredentialRpEntity) JSValue() js.Value
JSValue is allocating a new javasript 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 ¶
dictionary: PublicKeyCredentialUserEntity
func PublicKeyCredentialUserEntityFromJS ¶
func PublicKeyCredentialUserEntityFromJS(value js.Wrapper) *PublicKeyCredentialUserEntity
PublicKeyCredentialUserEntityFromJS is allocating a new PublicKeyCredentialUserEntity object and copy all values from input javascript object
func (*PublicKeyCredentialUserEntity) JSValue ¶
func (_this *PublicKeyCredentialUserEntity) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values