webauthn

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 0

README

Webauthn

nice examples.

atsushi-matsui

Use ngrok for your https needs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebAuthNUser

type WebAuthNUser struct {
	RageUser *proto_oidc_models.RageUser
}

func NewWebAuthNUser

func NewWebAuthNUser(rageUser *proto_oidc_models.RageUser) *WebAuthNUser

func (*WebAuthNUser) WebAuthnCredentials

func (s *WebAuthNUser) WebAuthnCredentials() []go_webauthn.Credential

WebAuthnCredentials provides the list of Credential objects owned by the user.

func (*WebAuthNUser) WebAuthnDisplayName

func (s *WebAuthNUser) WebAuthnDisplayName() string

WebAuthnDisplayName provides the name attribute of the user account during registration and is a human-palatable name for the user account, intended only for display. For example, "Alex Müller" or "田中倫". The Relying Party SHOULD let the user choose this, and SHOULD NOT restrict the choice more than necessary.

Specification: §5.4.3. User Account Parameters for Credential Generation (https://www.w3.org/TR/webauthn/#dom-publickeycredentialuserentity-displayname)

func (*WebAuthNUser) WebAuthnID

func (s *WebAuthNUser) WebAuthnID() []byte

WebAuthnID provides the user handle of the user account. A user handle is an opaque byte sequence with a maximum size of 64 bytes, and is not meant to be displayed to the user.

To ensure secure operation, authentication and authorization decisions MUST be made on the basis of this id member, not the displayName nor name members. See Section 6.1 of [RFC8266].

It's recommended this value is completely random and uses the entire 64 bytes.

Specification: §5.4.3. User Account Parameters for Credential Generation (https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-id)

func (*WebAuthNUser) WebAuthnIcon

func (s *WebAuthNUser) WebAuthnIcon() string

WebAuthnIcon is a deprecated option. Deprecated: this has been removed from the specification recommendation. Suggest a blank string.

func (*WebAuthNUser) WebAuthnName

func (s *WebAuthNUser) WebAuthnName() string

WebAuthnName provides the name attribute of the user account during registration and is a human-palatable name for the user account, intended only for display. For example, "Alex Müller" or "田中倫". The Relying Party SHOULD let the user choose this, and SHOULD NOT restrict the choice more than necessary.

Specification: §5.4.3. User Account Parameters for Credential Generation (https://w3c.github.io/webauthn/#dictdef-publickeycredentialuserentity)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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