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 ¶
- type AssertionResponse
- type Attachment
- type AttestationConveyancePreference
- type AttestationResponse
- type AuthenticationExtensionsClientInputs
- type AuthenticationExtensionsClientOutputs
- type AuthenticatorBiometricPerfBounds
- type CollectedClientData
- type Response
- type SelectionCriteria
- type TokenBinding
- type TokenBindingStatus
- type Transport
- type TxAuthGenericArg
- type Union
- type UserVerificationRequirement
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 ¶
func (this AttestationConveyancePreference) Value() string
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 ¶
func (_this *AuthenticationExtensionsClientInputs) JSValue() js.Value
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 ¶
func (_this *AuthenticationExtensionsClientOutputs) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AuthenticatorBiometricPerfBounds ¶
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 ¶
class: AuthenticatorResponse
func ResponseFromJS ¶
ResponseFromJS is casting a js.Value into Response.
func ResponseFromWrapper ¶
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).
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
func TransportFromJS ¶
TransportFromJS is converting a javascript value into a Transport enum 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 ¶
func UnionFromJS ¶
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