authenticators

package
v0.0.0-...-b9b5e9f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationResponse

type AuthenticationResponse struct {
	Birthdate           string `json:"birthdate,omitempty"`
	Email               string `json:"email,omitempty"`
	EmailVerified       bool   `json:"email_verified,omitempty"`
	FamilyName          string `json:"family_name,omitempty"`
	Gender              string `json:"gender,omitempty"`
	GivenName           string `json:"given_name,omitempty"`
	Locale              string `json:"locale,omitempty"`
	MiddleName          string `json:"middle_name,omitempty"`
	Name                string `json:"name,omitempty"`
	Nickname            string `json:"nickname,omitempty"`
	PhoneNumber         string `json:"phone_number,omitempty"`
	PhoneNumberVerified bool   `json:"phone_number_verified,omitempty"`
	Picture             string `json:"picture,omitempty"`
	PreferredUsername   string `json:"preferred_username,omitempty"`
	Profile             string `json:"profile,omitempty"`
	Sub                 string `json:"sub,omitempty"`
	UpdatedAt           int64  `json:"updated_at,omitempty"`
	Website             string `json:"website,omitempty"`
	Zoneinfo            string `json:"zoneinfo,omitempty"`
}

type Authenticator

type Authenticator interface {
	Authenticate(req *http.Request) (AuthenticationResponse, error)
}

func NewHydraAuthenticator

func NewHydraAuthenticator(hydraPublic public.ClientService) Authenticator

Jump to

Keyboard shortcuts

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